Difference between revisions of "Template:PrintTheoryReasons"
Jump to navigation
Jump to search
(Created page with "<noinclude> Use this template to print the reasons for the theory. '''NOTE:''' As any "printing" template, it doesn't store any values anywhere, but merely prints them on the...") |
|||
Line 10: | Line 10: | ||
* <code><nowiki>|outro=</nowiki></code> - text that is appended to the output, if at least some results exist. | * <code><nowiki>|outro=</nowiki></code> - text that is appended to the output, if at least some results exist. | ||
* <code><nowiki>|default=</nowiki></code> - if, for any reason, the query returns no results, this will be printed instead. | * <code><nowiki>|default=</nowiki></code> - if, for any reason, the query returns no results, this will be printed instead. | ||
+ | * <code><nowiki>|showedit=</nowiki></code> - if non empty, edit and delete buttons will be printed next to each reason. | ||
</noinclude><includeonly><!-- | </noinclude><includeonly><!-- | ||
-->{{#if: {{{theory|}}} <!-- | -->{{#if: {{{theory|}}} <!-- | ||
− | -->|{{#ask:<!-- | + | -->|{{#if: {{{showedit|}}} <!-- |
− | -->[[Category:Reason]]<!-- | + | -->|<!-- if the edit/delete buttons must be shown |
− | + | -->{{#ask:<!-- | |
− | + | -->[[Category:Reason]]<!-- | |
− | + | -->[[Conclusion::{{{theory|}}}]]<!-- | |
− | + | -->|format=template<!-- | |
− | + | -->|?Title<!-- | |
− | + | -->|?Description<!-- | |
− | + | -->|?Formulated Year<!-- | |
− | + | -->|?Diagram File<!-- | |
− | + | -->|?Resource<!-- | |
− | + | -->|limit={{{limit|10000}}}<!-- | |
− | + | -->|intro={{{intro|}}}<!-- | |
− | + | -->|outro={{{outro|}}}<!-- | |
− | + | -->|default={{{default|}}}<!-- | |
− | -->}}<!-- | + | -->|link=none<!-- |
+ | -->|template=TheoryReason-text-format-showedit<!-- | ||
+ | -->}}<!-- ask | ||
+ | -->|<!-- if no need to show the edit/delete buttons | ||
+ | -->{{#ask:<!-- | ||
+ | -->[[Category:Reason]]<!-- | ||
+ | -->[[Conclusion::{{{theory|}}}]]<!-- | ||
+ | -->|format=template<!-- | ||
+ | -->|?Title<!-- | ||
+ | -->|?Description<!-- | ||
+ | -->|?Formulated Year<!-- | ||
+ | -->|?Diagram File<!-- | ||
+ | -->|?Resource<!-- | ||
+ | -->|limit={{{limit|10000}}}<!-- | ||
+ | -->|intro={{{intro|}}}<!-- | ||
+ | -->|outro={{{outro|}}}<!-- | ||
+ | -->|default={{{default|}}}<!-- | ||
+ | -->|link=none<!-- | ||
+ | -->|template=TheoryReason-text-format<!-- | ||
+ | -->}}<!-- ask | ||
+ | -->}}<!-- if show edits | ||
-->|{{{default|}}}<!-- | -->|{{{default|}}}<!-- | ||
− | -->}}</includeonly> | + | -->}}<!-- if theory |
+ | --></includeonly> |
Latest revision as of 21:24, 3 December 2022
Use this template to print the reasons for the theory.
NOTE: As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.
Parameters:
|theory=
- the theory reasons for which should be printed.|limit=
- the number of examples to print. If empty, all reasons will be printed.|intro=
- initial text that precedes the output, if at least some results exist.|outro=
- text that is appended to the output, if at least some results exist.|default=
- if, for any reason, the query returns no results, this will be printed instead.|showedit=
- if non empty, edit and delete buttons will be printed next to each reason.