Difference between revisions of "Template:PrintTopicSubtitle"
Jump to navigation
Jump to search
(Created page with "<noinclude> This template is used to format the sentence indicating the authors of a question and the year it was first formulated. Parameters: * <code><nowiki>|authors=</now...") |
|||
(16 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
− | This template is used to | + | This template is used to print the sentence indicating the authors of a question and the year it was first formulated. |
− | Parameters: | + | '''NOTE:''' As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page. |
− | * <code><nowiki>| | + | |
− | + | '''Parameters:''' | |
− | < | + | * <code><nowiki>|topic=</nowiki></code> - the fullpagename of the topic. |
− | + | ||
+ | </noinclude><includeonly><!-- | ||
+ | -->{{#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.