Difference between revisions of "Template:PrintTheoryFormulation"
Jump to navigation
Jump to search
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
− | This template is used to format the sentence that this formulation is an attempt to answers | + | This template is used to format the sentence that this formulation is an attempt to answers such-and-such questions or that the term is defined as such-and-such. |
'''NOTE:''' As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page. | '''NOTE:''' As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page. | ||
Line 6: | Line 6: | ||
'''Parameters:''' | '''Parameters:''' | ||
* <code><nowiki>|theory=</nowiki></code> - the fullpagename of the theory. | * <code><nowiki>|theory=</nowiki></code> - the fullpagename of the theory. | ||
+ | * <code><nowiki>|skipquestions=</nowiki></code> - if not empty, the statement of questions will be omitted. | ||
</noinclude><includeonly><!-- | </noinclude><includeonly><!-- | ||
Line 12: | Line 13: | ||
--><!-- get the formulation/definition | --><!-- get the formulation/definition | ||
-->{{#vardefine: varText|{{#show: {{{theory|}}}|?Formulation Text}}|}}<!-- | -->{{#vardefine: varText|{{#show: {{{theory|}}}|?Formulation Text}}|}}<!-- | ||
− | |||
− | |||
− | |||
--><!-- | --><!-- | ||
-->{{#ifeq: {{#show: {{{theory|}}}|?Theory Type}}|Definition<!-- | -->{{#ifeq: {{#show: {{{theory|}}}|?Theory Type}}|Definition<!-- | ||
-->|<!-- definition | -->|<!-- definition | ||
− | -->This | + | --><!-- get the topic |
+ | -->{{#vardefine: varTopic|{{#show: {{{theory|}}}|?Topic}}|}}<!-- | ||
+ | --><!-- | ||
+ | -->This is a definition of {{#var: varTopic}} that states "{{#var: varText}}"<!-- | ||
+ | --><!-- | ||
-->|<!-- nondefinition | -->|<!-- nondefinition | ||
− | -->{{PrintTheoryTopicQuestions|theory={{theory}}|intro=This is an answer to questions|intro one=This is an answer to the question|link=all|pretty=true}} that states "{{#var: varText}}"<!-- | + | --><!-- |
+ | -->{{#if: {{{skipquestions|}}}<!-- | ||
+ | -->|<!-- | ||
+ | --><!-- print without questions | ||
+ | -->This is a theory that states "{{#var: varText}}"<!-- | ||
+ | --><!-- | ||
+ | -->|<!-- | ||
+ | --><!-- print with questions | ||
+ | -->{{PrintTheoryTopicQuestions|theory={{{theory}}}|intro=This is an answer to questions |intro one=This is an answer to the question |link=all|pretty=true}} that states "{{#var: varText}}"<!-- | ||
+ | --><!-- | ||
+ | -->}}<!-- if | ||
+ | --><!-- | ||
-->}}<!-- ifeq | -->}}<!-- ifeq | ||
--><!-- | --><!-- | ||
-->}}<!-- if theory | -->}}<!-- if theory | ||
--></includeonly> | --></includeonly> |
Latest revision as of 15:18, 27 December 2022
This template is used to format the sentence that this formulation is an attempt to answers such-and-such questions or that the term is defined as such-and-such.
NOTE: As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.
Parameters:
|theory=
- the fullpagename of the theory.|skipquestions=
- if not empty, the statement of questions will be omitted.