Difference between revisions of "Template:PrintTopicSubtitle"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
 
(10 intermediate revisions by the same user not shown)
Line 5: Line 5:
  
 
'''Parameters:'''
 
'''Parameters:'''
* <code><nowiki>|authors=</nowiki></code> - a comma separated list of the authors of the modification .
+
* <code><nowiki>|topic=</nowiki></code> - the fullpagename of the topic.
* <code><nowiki>|year formulated=</nowiki></code> - the year when the modification was published.
 
  
 
</noinclude><includeonly><!--
 
</noinclude><includeonly><!--
-->{{#if:{{{authors|}}}{{{year formulated|}}}|<!--
+
-->{{#if: {{{topic|}}}<!--
  -->This questions was first formulated in the scientonomic context<!--
+
  --><!--
  --><!-- add the author if present
+
  -->|<!--
-->{{#if:{{{authors|}}}|<!--
+
  -->{{#vardefine: varTypeText|{{#ifeq: {{#show: {{{topic|}}}|?Topic Type|link=none}}|Definitional|term was first used|question was first formulated}} }}<!--
   --><nowiki> </nowiki>by<nowiki> </nowiki><!--
+
   --><!--
   -->{{#arraydefine:authorsArray|{{{authors|}}} }}<!--
+
  -->In the scientonomic context, this {{#var: varTypeText}}<!--
   -->{{#arrayunique:authorsArray}}<!--
+
  --><!-- add the authors if given
  -->{{#arrayprint:authorsArray||@@@@|[[@@@@]]|print=pretty}}<!--
+
   -->{{#vardefine: varAuthors|{{PrintTopicAuthors|topic={{{topic|}}}|link=all|pretty=true}}|}}<!--
-->}}<!--
+
   -->{{#if: {{#var: varAuthors}}<!--
--><!--add year formulated if given
+
  --><!--
-->{{#if:{{{year formulated|}}}|<nowiki> </nowiki>in {{{year formulated|}}}.|.}}<!--
+
  -->|&#32;by&#32;{{#var: varAuthors}}<!--
-->|}}</includeonly>
+
  -->}}<!--
 +
  --><!--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.