Template:InfoboxStart: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
Let's make that non-optional for now
Comment that out for now. It's not being used anywhere -- the few pages that don't have uploaded files all pass nofile=true to suppress it --, and we don't want it showing up on pattern infobox templates themselves.
Line 3: Line 3:
Display "request pattern file" box if no pattern files exist and "nofile" was not passed to suppress this
Display "request pattern file" box if no pattern files exist and "nofile" was not passed to suppress this


--> {{#if: {{{zip|}}}{{{mc|}}}{{{life105|}}}{{{life106|}}}{{{plaintext|}}}{{{rle|}}}{{{nofile|}}} | | {{requestpatternfile}} }}<!--
--><!-- {{#if: {{{zip|}}}{{{mc|}}}{{{life105|}}}{{{life106|}}}{{{plaintext|}}}{{{rle|}}}{{{nofile|}}} | | {{requestpatternfile}} }} --><!--


Begin infobox proper
Begin infobox proper

Revision as of 13:11, 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.