Difference between revisions of "Template:PrintTermCustomQuestionsHeaders"
Jump to navigation
Jump to search
(Created page with "<noinclude> This template is used to print a list of question that have the term as their subject. Each question is printed as its own heading with a link to the question's pa...") |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
* <code><nowiki>|term=</nowiki></code> - the term. | * <code><nowiki>|term=</nowiki></code> - the term. | ||
* <code><nowiki>|subfield=</nowiki></code> - {Ontology, Dynamics, etc.}. Default is dynamics. | * <code><nowiki>|subfield=</nowiki></code> - {Ontology, Dynamics, etc.}. Default is dynamics. | ||
+ | * <code><nowiki>|bullets=</nowiki></code> - if ''yes'', a bullet-list of answers will be produced. Otherwise, | ||
+ | * <code><nowiki>|linebreak=</nowiki></code> - if ''yes'', each community will start from a new line; if ''no'' (default), a mere space will be added between sentences. | ||
'''unused for now:''' | '''unused for now:''' | ||
− | |||
− | |||
* <code><nowiki>|communitiesfirst=</nowiki></code> - if ''yes'', the communities will be mentioned first in the sentence. If ''no'' (default) the name of the theory will appear first. | * <code><nowiki>|communitiesfirst=</nowiki></code> - if ''yes'', the communities will be mentioned first in the sentence. If ''no'' (default) the name of the theory will appear first. | ||
Line 21: | Line 21: | ||
-->{{#arraydefine: varQuestions<!-- | -->{{#arraydefine: varQuestions<!-- | ||
-->|{{#ask:<!-- | -->|{{#ask:<!-- | ||
− | -->[[Category | + | -->[[Category:Topic]]<!-- |
-->[[Subfield::{{{subfield|Dynamics}}}]]<!-- | -->[[Subfield::{{{subfield|Dynamics}}}]]<!-- | ||
+ | -->[[Inherited::false]]<!-- | ||
-->[[Subject::{{{term|}}}]]<!-- | -->[[Subject::{{{term|}}}]]<!-- | ||
-->|headers=hide<!-- | -->|headers=hide<!-- | ||
Line 36: | Line 37: | ||
-->{{#arrayprint: varQuestions||varQuestion<!-- | -->{{#arrayprint: varQuestions||varQuestion<!-- | ||
-->|<!-- | -->|<!-- | ||
− | -->===[[varQuestion]]===<nowiki/> | + | --><nowiki/> |
+ | ===[[varQuestion]]=== | ||
+ | <nowiki/> | ||
<!-- | <!-- | ||
+ | --><!-- print the current answers | ||
+ | --><!-- | ||
+ | -->{{PrintTopicAcceptedTheoriesFormulations<!-- | ||
+ | -->|topic=varQuestion<!-- | ||
+ | -->|default=The question has no accepted answer. <!-- | ||
+ | -->|bullets={{{bullets|}}}<!-- | ||
+ | -->|linebreak={{{linebreak|}}}<!-- | ||
+ | -->|link=yes<!-- | ||
+ | -->}}<!-- print | ||
--><!-- | --><!-- | ||
− | + | -->}}<!-- arrayprint | |
− | |||
− | |||
− | -->}}<!--arrayprint | ||
--><!-- | --><!-- | ||
--><!-- | --><!-- |
Latest revision as of 16:53, 26 January 2023
This template is used to print a list of question that have the term as their subject. Each question is printed as its own heading with a link to the question's page. Under the heading, the current answers are printed.
The template is a work in progress.
NOTE: As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.
Parameters:
|term=
- the term.|subfield=
- {Ontology, Dynamics, etc.}. Default is dynamics.|bullets=
- if yes, a bullet-list of answers will be produced. Otherwise,|linebreak=
- if yes, each community will start from a new line; if no (default), a mere space will be added between sentences.
unused for now:
|communitiesfirst=
- if yes, the communities will be mentioned first in the sentence. If no (default) the name of the theory will appear first.