Difference between revisions of "Template:PrintTopicSubtitle"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This template is used to format the sentence indicating the authors of a question and the year it was first formulated.
+
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>|authors=</nowiki></code> - a comma separated list of the authors of the modification .
+
 
* <code><nowiki>|year formulated=</nowiki></code> - the year when the modification was published.
+
'''Parameters:'''
</noinclude>
+
* <code><nowiki>|topic=</nowiki></code> - the fullpagename of the topic.
<includeonly>{{#if:{{#expr:{{{authors|}}}or{{{year formulated|}}}}}|This questions was first formulated in the scientonomic context{{#if:{{{authors|}}}| by {{#arraymap:{{{authors|}}}|,|varAuthor|[[Has author::varAuthor]]}}}}{{#if:{{{year formulated|}}}| in {{{year formulated|}}}|.}}|}}</includeonly>
+
 
 +
</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}}<!--
 +
  --><!--
 +
  -->|&#32;by&#32;{{#var: varAuthors}}<!--
 +
  -->}}<!--
 +
  --><!--add year formulated if given
 +
  -->{{#if: {{#show: {{{topic|}}}|?Formulated Year|link=none}}|&#32;in&#32;{{#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.