Difference between revisions of "Template:PrintTopicSubtitle"
Jump to navigation
Jump to search
(7 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
'''Parameters:''' | '''Parameters:''' | ||
− | * <code><nowiki>| | + | * <code><nowiki>|topic=</nowiki></code> - the fullpagename of the topic. |
− | |||
</noinclude><includeonly><!-- | </noinclude><includeonly><!-- | ||
− | -->{{#if:{{{ | + | -->{{#if: {{{topic|}}}<!-- |
− | --> | + | --><!-- |
− | --><!-- | + | -->|<!-- |
− | + | -->{{#vardefine: varTypeText|{{#ifeq: {{#show: {{{topic|}}}|?Topic Type|link=none}}|Definitional|term was first used|question was first formulated}} }}<!-- | |
− | -->< | + | --><!-- |
− | -->{{# | + | -->In the scientonomic context, this {{#var: varTypeText}}<!-- |
− | -->{{# | + | --><!-- add the authors if given |
− | + | -->{{#vardefine: varAuthors|{{PrintTopicAuthors|topic={{{topic|}}}|link=all|pretty=true}}|}}<!-- | |
− | + | -->{{#if: {{#var: varAuthors}}<!-- | |
− | + | --><!-- | |
− | + | -->| by {{#var: varAuthors}}<!-- | |
− | --> | + | -->}}<!-- |
+ | --><!--add year formulated if given | ||
+ | -->{{#if: {{#show: {{{topic|}}}|?Formulated Year|link=none}}| in {{#show: {{{topic|}}}|?Formulated Year|link=none}}.|.}}<!-- | ||
+ | --><!-- | ||
+ | -->}}<!-- if topic | ||
+ | --></includeonly> |
Latest revision as of 21:50, 8 February 2023
This template is used to print the sentence indicating the authors of a question and the year it was first formulated.
NOTE: As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.
Parameters:
|topic=
- the fullpagename of the topic.