Template:CiteCGoLMC: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
Confocal (talk | contribs)
category moved
Confocal (talk | contribs)
change link to wiki article to keep the old linking of templatified pages, simplify formatting, add test case
 
Line 1: Line 1:
<includeonly>[[Nathaniel Johnston]], [[Dave Greene]]. ''[https://conwaylife.com/book/ Conway's Game of Life: Mathematics and Construction]'' (2022).{{#if:{{{section|}}}|&nbsp;{{{section|}}}|}}{{#if:{{{page|}}}|{{#if:{{{section|}}}|,|}}&nbsp;pp.&nbsp;{{{page|}}}.|.}}{{#switch:{{NAMESPACENUMBER}}|0|102=[[Category:Pages that cite Conway's Game of Life: Mathematics and Construction]]}}</includeonly><noinclude>This is a template for citing [[Conway's Game of Life: Mathematics and Construction]], a [https://conwaylife.com/book/ textbook] written by Nathaniel Johnston and Dave Greene. It accepts two parameters: '''section''' and '''page'''.  
<includeonly>[[Nathaniel Johnston]], [[Dave Greene]]. ''[[Conway's Game of Life: Mathematics and Construction]]'' (2022)<!--
-->{{#if:{{{section|}}}|,&nbsp;{{{section|}}}|}}<!--
-->{{#if:{{{page|}}}|,&nbsp;pp.&nbsp;{{{page|}}}|}}<!--
-->.{{#switch:{{NAMESPACENUMBER}}|0|102=[[Category:Pages that cite Conway's Game of Life: Mathematics and Construction]]}}</includeonly><noinclude>This is a template for citing [[Conway's Game of Life: Mathematics and Construction]], a [https://conwaylife.com/book/ textbook] written by Nathaniel Johnston and Dave Greene. It accepts two parameters: '''section''' and '''page'''.
 
== Examples ==
 
'''You type:'''
 
<tt><nowiki>* {{citeCGoLMC}}</nowiki></tt>
 
'''You see:'''
* {{citeCGoLMC}}


'''You type:'''
'''You type:'''


<tt><nowiki>* {{citeCGoLMC|section=Section 1.1}}</nowiki></tt>
<tt><nowiki>* {{citeCGoLMC|section=1.1}}</nowiki></tt>


'''You see:'''
'''You see:'''
* {{citeCGoLMC|section=Section 1.1}}
* {{citeCGoLMC|section=1.1}}


'''You type:'''
'''You type:'''


<tt><nowiki>* {{citeCGoLMC|section=Section 1.1|page=5}}</nowiki></tt>
<tt><nowiki>* {{citeCGoLMC|section=1.1|page=5}}</nowiki></tt>


'''You see:'''
'''You see:'''
* {{citeCGoLMC|section=Section 1.1|page=5}}
* {{citeCGoLMC|section=1.1|page=5}}


'''You type:'''
'''You type:'''
Line 31: Line 43:
'''You type:'''
'''You type:'''


<tt><nowiki>There exist Gardens of Eden in Conway’s Game of Life.<ref>{{citeCGoLMC|section=Section 1.7|page=21-22}}</ref></nowiki></tt>
<tt><nowiki>There exist Gardens of Eden in Conway’s Game of Life.<ref>{{citeCGoLMC|section=1.7|page=21-22}}</ref></nowiki></tt>


'''You see:'''
'''You see:'''
There exist Gardens of Eden in Conway’s Game of Life.<ref>{{citeCGoLMC|section=Section 1.7|page=21-22}}</ref>
There exist Gardens of Eden in Conway’s Game of Life.<ref>{{citeCGoLMC|section=1.7|page=21-22}}</ref>


== References ==
== References ==

Latest revision as of 05:53, 22 December 2022

This is a template for citing Conway's Game of Life: Mathematics and Construction, a textbook written by Nathaniel Johnston and Dave Greene. It accepts two parameters: section and page.

Examples

You type:

* {{citeCGoLMC}}

You see:

You type:

* {{citeCGoLMC|section=1.1}}

You see:

You type:

* {{citeCGoLMC|section=1.1|page=5}}

You see:

You type:

* {{citeCGoLMC|section=Appendix B.1|page=437-440}}

You see:

You type:

* {{citeCGoLMC|page=36}}

You see:

You type:

There exist Gardens of Eden in Conway’s Game of Life.<ref>{{citeCGoLMC|section=1.7|page=21-22}}</ref>

You see: There exist Gardens of Eden in Conway’s Game of Life.[1]

References