Difference between revisions of "Template:PrintTopicSubtitle"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
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.
 +
 
 +
'''Parameters:'''
 
* <code><nowiki>|authors=</nowiki></code> - a comma separated list of the authors of the modification .
 
* <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.
 
* <code><nowiki>|year formulated=</nowiki></code> - the year when the modification was published.
</noinclude><includeonly>{{#if:{{{authors|}}}{{{year formulated|}}}|This questions was first formulated in the scientonomic context{{#if:{{{authors|}}}|<nowiki> </nowiki>by {{#arraymap:{{{authors|}}}|,|varAuthor|[[Has author::varAuthor]]}} }}{{#if:{{{year formulated|}}}|<nowiki> </nowiki>in {{{year formulated|}}}.|.}}|}}</includeonly>
+
 
 +
</noinclude><includeonly><!--
 +
-->{{#if:{{{authors|}}}{{{year formulated|}}}|<!--
 +
-->This questions was first formulated in the scientonomic context<!--
 +
--><!-- add the author if present
 +
-->{{#if:{{{authors|}}}|<!--
 +
  --><nowiki> </nowiki>by<nowiki> </nowiki><!--
 +
  -->{{#arraydefine:authorsArray|{{{authors|}}} }}<!--
 +
  -->{{#arrayunique:authorsArray}}<!--
 +
  -->{{#arrayprint:authorsArray||@@@@|[[@@@@]]|print=pretty}}<!--
 +
-->}}<!--
 +
--><!--add year formulated if given
 +
-->{{#if:{{{year formulated|}}}|<nowiki> </nowiki>in {{{year formulated|}}}.|.}}<!--
 +
-->|}}</includeonly>

Revision as of 19:41, 13 August 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:

  • |authors= - a comma separated list of the authors of the modification .
  • |year formulated= - the year when the modification was published.