Template:CiteCGoLMC: Difference between revisions
Jump to navigation
Jump to search
Remove nobullet parameter -- no need to add it to new templates. It is a backward compatibility workaround for existing templates with large number of transclusions. |
change link to wiki article to keep the old linking of templatified pages, simplify formatting, add test case |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>[[Nathaniel Johnston]], [[Dave Greene]]. ''[ | <includeonly>[[Nathaniel Johnston]], [[Dave Greene]]. ''[[Conway's Game of Life: Mathematics and Construction]]'' (2022)<!-- | ||
-->{{#if:{{{section|}}}|, {{{section|}}}|}}<!-- | |||
-->{{#if:{{{page|}}}|, pp. {{{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= | <tt><nowiki>* {{citeCGoLMC|section=1.1}}</nowiki></tt> | ||
'''You see:''' | '''You see:''' | ||
* {{citeCGoLMC|section= | * {{citeCGoLMC|section=1.1}} | ||
'''You type:''' | '''You type:''' | ||
<tt><nowiki>* {{citeCGoLMC|section= | <tt><nowiki>* {{citeCGoLMC|section=1.1|page=5}}</nowiki></tt> | ||
'''You see:''' | '''You see:''' | ||
* {{citeCGoLMC|section= | * {{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= | <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= | 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:
- Nathaniel Johnston, Dave Greene. Conway's Game of Life: Mathematics and Construction (2022), 1.1, pp. 5.
You type:
* {{citeCGoLMC|section=Appendix B.1|page=437-440}}
You see:
- Nathaniel Johnston, Dave Greene. Conway's Game of Life: Mathematics and Construction (2022), Appendix B.1, pp. 437-440.
You type:
* {{citeCGoLMC|page=36}}
You see:
- Nathaniel Johnston, Dave Greene. Conway's Game of Life: Mathematics and Construction (2022), pp. 36.
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
- ↑ Nathaniel Johnston, Dave Greene. Conway's Game of Life: Mathematics and Construction (2022), 1.7, pp. 21-22.