Template:PatternDiscovery: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
Let's factor out some common code from the infobox templates
 
mNo edit summary
Line 4: Line 4:
<tr>
<tr>
<th> Year of discovery </th>
<th> Year of discovery </th>
<td> {{#if: {{{discoveryear|}}} | [[:Category:Patterns found in {{{discoveryear|}}}|{{{discoveryear|}}}]] | Unknown }}  </td></tr></includeonly>
<td> {{#if: {{{discoveryear|}}} | [[:Category:Patterns found in {{{discoveryear|}}}|{{{discoveryear|}}}]] | Unknown }}  </td></tr></includeonly><noinclude>
<noinclude>This template displays the discoverers and year of discovery in the infobox on the right hand side of pattern pages. It should not be used on its own, but only within other pattern infobox templates such as [[Template:Pattern]] and [[Template:Oscillator]]. All of its parameters are passed in from the corresponding parameters of the template that calls it.
This template displays the discoverers and year of discovery in the infobox on the right hand side of pattern pages. It should not be used on its own, but only within other pattern infobox templates such as [[Template:Pattern]] and [[Template:Oscillator]]. All of its parameters are passed in from the corresponding parameters of the template that calls it.
[[Category:Infobox templates]]</noinclude>
 
[[Category:Infobox templates]]
</noinclude>

Revision as of 19:24, 18 February 2018

This template displays the discoverers and year of discovery in the infobox on the right hand side of pattern pages. It should not be used on its own, but only within other pattern infobox templates such as Template:Pattern and Template:Oscillator. All of its parameters are passed in from the corresponding parameters of the template that calls it.