Difference between revisions of "Template:Machine"

From Electrical Age
Jump to: navigation, search
(Created page with "<noinclude> <div style="background-color: #dfd; border: 1px solid #070; margin: 1em; padding: 1em;"> Describes a machine. Current syntax: <pre><nowiki> {{Machine|name={{PAGEN...")
 
Line 8: Line 8:
 
</nowiki></pre>
 
</nowiki></pre>
  
Indicated parameters are defaults, except for those with "default" values <code>...</code>, which would be elided.
+
Indicated parameters are defaults, except for those with "default" values <code>...</code>, which would be elided. (NB: Elision won't work until the ParserFunctions extension is enabled. When that is enabled, roll this template back to before this edit.)
 
</div>
 
</div>
 
</noinclude>{| class="infobox" cellspacing="5" style="width: 26em; font-size: 90%; text-align: left; float: right; border: 1px solid #000;"
 
</noinclude>{| class="infobox" cellspacing="5" style="width: 26em; font-size: 90%; text-align: left; float: right; border: 1px solid #000;"
Line 14: Line 14:
 
| colspan="2" style="text-align: center; font-size: 150%;" | '''{{{name|{{PAGENAME}}}}}'''
 
| colspan="2" style="text-align: center; font-size: 150%;" | '''{{{name|{{PAGENAME}}}}}'''
 
|-
 
|-
{{#if: {{{image|}}}|
+
| colspan="2" | {{{image}}}
{{!}} colspan="2" {{!}} {{{image}}}}}
 
 
|-
 
|-
{{#if: {{{voltage|}}}|
+
| '''Nominal Voltage:'''
{{!}} '''Nominal Voltage'''
+
| {{{voltage}}}
{{!}} {{{voltage}}}}}
 
 
|-
 
|-
 
|}
 
|}
 
[[Category:Machines]]
 
[[Category:Machines]]

Revision as of 20:13, 26 November 2017

Describes a machine.

Current syntax:

{{Machine|name={{PAGENAME}}|voltage=...|image=...}}

Indicated parameters are defaults, except for those with "default" values ..., which would be elided. (NB: Elision won't work until the ParserFunctions extension is enabled. When that is enabled, roll this template back to before this edit.)

Machine
{{{image}}}
Nominal Voltage: {{{voltage}}}