Difference between revisions of "Template:PrintTopicSubtitle"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
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 question was formulated.
 
  
 
</noinclude><includeonly><!--
 
</noinclude><includeonly><!--
-->{{#if:{{{authors|}}}{{{year formulated|}}}|<!--
+
-->{{#if: {{{topic|}}}<!--
  -->This question was first formulated<!--
+
  --><!--
--><!-- add the author if given
+
-->|This question was first formulated<!--
-->{{#if:{{{authors|}}}|<!--
+
  --><!-- add the authors if given
  -->&#32;by&#32;<!--
+
  -->{{#vardefine: varAuthors|{{PrintTopicAuthors|topic={{{topic|}}}|link=all|pretty=true}}|}}<!--
   -->{{#arraydefine:authorsArray|{{{authors|}}} }}<!--
+
   -->{{#if: {{#var: varAuthors}}<!--
  -->{{#arrayunique:authorsArray}}<!--
+
  --><!--
  -->{{#arrayprint:authorsArray||@@@@|[[@@@@]]|print=pretty}}<!--
+
  -->|&#32;by&#32;{{#var: varAuthors}}<!--
-->}}<!--
+
  -->}}<!--
--><!--add year formulated if given
+
  --><!--add year formulated if given
-->{{#if:{{{year formulated|}}}|&#32;in&#32;{{{year formulated|}}}.|.}}<!--
+
  -->{{#if: {{#show: {{{topic|}}}|?Formulate Year|link=none}}|&#32;in&#32;{{#show: {{{topic|}}}|?Formulate Year|link=none}}.|.}}<!--
-->|}}</includeonly>
+
--><!--
 +
-->}}<!-- if topic
 +
--></includeonly>

Revision as of 20:48, 4 September 2016

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.