Template:InfoboxStart: Difference between revisions
Jump to navigation
Jump to search
Apple Bottom (talk | contribs) Reorder the various LifeViewer config snippets to fix issues on BNE14T30, per private communication with User:Dvgrn |
Apple Bottom (talk | contribs) m Whitespace...? |
||
| Line 16: | Line 16: | ||
<td colspan="2" class="infobox_img"><table class="img_border" cellpadding="0"><tr><td>{{#if: {{{zip|}}}{{{mc|}}}{{{life105|}}}{{{life106|}}}{{{plaintext|}}}{{{rle|}}}{{{nofile|}}} | {{#ifexist:RLE:{{{pname}}}|{{LV:Viewer|{{RLE:{{{pname}}}}} | <td colspan="2" class="infobox_img"><table class="img_border" cellpadding="0"><tr><td>{{#if: {{{zip|}}}{{{mc|}}}{{{life105|}}}{{{life106|}}}{{{plaintext|}}}{{{rle|}}}{{{nofile|}}} | {{#ifexist:RLE:{{{pname}}}|{{LV:Viewer|{{RLE:{{{pname}}}}} | ||
{{LifeViewer config/default}}{{#ifexist:Template:LifeViewer config/{{{defaultconfig|}}} | | {{LifeViewer config/default}}{{#ifexist:Template:LifeViewer config/{{{defaultconfig|}}} | | ||
{{LifeViewer config/{{{defaultconfig|}}}}}{{#tag:nowiki|{{{viewerconfig|}}}}} }} | [[Image:{{{pname|}}}.png|{{{name}}} image]] }} | [[Image:{{{pname|}}}.png|{{{name}}} image]] }} | [[Image:UnknownPattern.png|{{{name}}} image]] }}</td></tr></table></td></tr><!-- | {{LifeViewer config/{{{defaultconfig|}}}}} | ||
{{#tag:nowiki|{{{viewerconfig|}}}}} }} | [[Image:{{{pname|}}}.png|{{{name}}} image]] }} | [[Image:{{{pname|}}}.png|{{{name}}} image]] }} | [[Image:UnknownPattern.png|{{{name}}} image]] }}</td></tr></table></td></tr><!-- | |||
Display animated image link (if any) | Display animated image link (if any) | ||
Revision as of 09:28, 1 May 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.