Template:PatternDiscovery: Difference between revisions
Jump to navigation
Jump to search
Apple Bottom (talk | contribs) Let's factor out some common code from the infobox templates |
Experimental change to templates per agreement at https://conwaylife.com/forums/viewtopic.php?p=166781#p166781 -- issue not considered resolved until (at minimum) review in a week or two Tag: Undo |
||
| (15 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><tr> | <includeonly><!-- | ||
Display discoverer(s) and year of discovery | |||
--><tr> | |||
<th valign="top"> Discovered by </th> | <th valign="top"> Discovered by </th> | ||
<td> {{#if: {{{discoverer|}}} | [[{{{discoverer|}}}]] | Unknown }}{{#if: {{{discoverer2|}}} | <br />[[{{{discoverer2|}}}]] | }}{{#if: {{{discoverer3|}}} | <br />[[{{{discoverer3|}}}]] | }}{{#if: {{{discoverer4|}}} | <br />[[{{{discoverer4|}}}]] | }}{{#if: {{{discoverer5|}}} | <br />[[{{{discoverer5|}}}]] | }} </td></tr> | <td> {{#if: {{{discoverer|}}} | {{nowrap|[[{{{discoverer|}}}]]}} | Unknown }}{{#if: {{{discoverer2|}}} | <br />{{nowrap|[[{{{discoverer2|}}}]]}} | }}{{#if: {{{discoverer3|}}} | <br />{{nowrap|[[{{{discoverer3|}}}]]}} | }}{{#if: {{{discoverer4|}}} | <br />{{nowrap|[[{{{discoverer4|}}}]]}} | }}{{#if: {{{discoverer5|}}} | <br />{{nowrap|[[{{{discoverer5|}}}]]}} | }} </td></tr> | ||
<tr> | <tr> | ||
<th> Year of discovery </th> | <th> {{nowrap|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><!-- | ||
<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. | |||
[[Category:Infobox | Categories | ||
-->{{#if:{{NAMESPACE}}|| | |||
{{#if: {{{discoverer|}}} | [[Category:Patterns found by {{{discoverer|}}}]] | [[Category:Patterns with unknown discoverer]] }}{{#if: {{{discoverer2|}}} | [[Category:Patterns found by {{{discoverer2|}}}]] }}{{#if: {{{discoverer3|}}} | [[Category:Patterns found by {{{discoverer3|}}}]] }}{{#if: {{{discoverer4|}}} | [[Category:Patterns found by {{{discoverer4|}}}]] }}{{#if: {{{discoverer5|}}} | [[Category:Patterns found by {{{discoverer5|}}}]] }}{{#if: {{{discoveryear|}}} | [[Category:Patterns found in {{{discoveryear|}}}]] | [[Category:Patterns with unknown discovery year]] }} | |||
}}<!-- | |||
Documentation | |||
--></includeonly><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. | |||
[[Category:Infobox subtemplates]] | |||
</noinclude> | |||
Latest revision as of 15:18, 10 September 2023
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.