Template:InfoboxStart: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
Factored out from Template:Stilllife, to be used by (ideally) all pattern templates.
 
Correct docs
Line 33: Line 33:


--></includeonly><noinclude>
--></includeonly><noinclude>
This template starts the infobox on the right hand side of pattern pages, and displays the pattern's name, image and LifeViewer (if any). It should not be used on its own, but only within other pattern infobox templates such as [[Template:Pattern]] and [[Template:Oscillator]].


This template displays a divider line 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]].
It supports the following parameters:


It supports the following parameters:
* '''typename''': a human-readable name of the type of pattern being displayed, e.g. "Still Life".
* '''defaultconfig''': the name of a subpage of [[Template:LifeViewer config]] holding the default LifeViewer configuration for this type of pattern, e.g. "stilllife".


* '''colspan''': number of table columns for the divider to span (default: 2)
All other parameters should simply be passed through by the transcluding template.


[[Category:Infobox templates]]
[[Category:Infobox templates]]
</noinclude>
</noinclude>

Revision as of 13:02, 21 February 2018

This template starts the infobox on the right hand side of pattern pages, and displays the pattern's name, image and LifeViewer (if any). It should not be used on its own, but only within other pattern infobox templates such as Template:Pattern and Template:Oscillator.

It supports the following parameters:

  • typename: a human-readable name of the type of pattern being displayed, e.g. "Still Life".
  • defaultconfig: the name of a subpage of Template:LifeViewer config holding the default LifeViewer configuration for this type of pattern, e.g. "stilllife".

All other parameters should simply be passed through by the transcluding template.