Template:PatternDiscovery: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
No edit summary
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
 
(8 intermediate revisions by 2 users not shown)
Line 5: Line 5:
--><tr>
--><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><!--
<td> {{#if: {{{discoveryear|}}} | [[:Category:Patterns found in {{{discoveryear|}}}|{{{discoveryear|}}}]] | Unknown }}  </td></tr><!--


Categories
Categories


-->{{#ifeq:{{NAMESPACE}}|User||{{#ifeq:{{NAMESPACE}}|Template||
-->{{#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]] }}
{{#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
Documentation

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.