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...")
 
 
(5 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
Current syntax:
 
Current syntax:
 
<pre><nowiki>
 
<pre><nowiki>
{{Machine|name={{PAGENAME}}|voltage=...|image=...}}
+
{{Machine|name={{PAGENAME}}|voltage=...|power=...|image=...}}
 
</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; let me know when it is.)
 
</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; clear: right; margin-bottom: 1.5em; border: 1px solid #000;"
 
|-
 
|-
 
| 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" style="text-align: center;" | {{{image|''no image''}}}
{{!}} colspan="2" {{!}} {{{image}}}}}
 
 
|-
 
|-
{{#if: {{{voltage|}}}|
+
| '''Nominal Voltage:'''
{{!}} '''Nominal Voltage'''
+
| {{{voltage|???}}}V
{{!}} {{{voltage}}}}}
 
 
|-
 
|-
 +
| '''Nominal Power:'''
 +
| {{{power|???}}}W
 
|}
 
|}
 
[[Category:Machines]]
 
[[Category:Machines]]

Latest revision as of 20:29, 26 November 2017

Describes a machine.

Current syntax:

{{Machine|name={{PAGENAME}}|voltage=...|power=...|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; let me know when it is.)

Machine
no image
Nominal Voltage:  ???V
Nominal Power:  ???W