Template:PartlistSMW: Difference between revisions

Template page
m (Menge nur falls bekannt)
m (herp derp Formatierung)
Line 5: Line 5:
| [[Part:{{{?Part type|}}}|{{{?Part type|}}}]]
| [[Part:{{{?Part type|}}}|{{{?Part type|}}}]]
| {{{?Part location|}}}
| {{{?Part location|}}}
|
| {{#switch: {{{?Part amount|}}}
{{#switch: {{{?Part amount|}}}
  | -1 = ?
| -1 = ?
  | 0  = <span style="color: red; font-weight: bold;">0</span>
| 0  = <span style="color: red; font-weight: bold;">0</span>
  | 1  = <span style="color: orange">1</span>
| 1  = <span style="color: orange">1</span>
  | {{{?Part amount|}}}
| {{{?Part amount|}}}
  }}
}}
| {{#formlink:form=Part
|
  | link text = edit
{{#formlink:form=Part
  | link type = button
| link text = edit
  | target = Part:{{{?Part type|}}}
| link type = button
  | popup
| target = Part:{{{?Part type|}}}
  }}
| popup
}}
<!--{{#autoedit:form=Part
| target = Part:{{{?Part type|}}}
| link type = button
| link text = +1
| Part[amount] = {{#expr:{{{?Part amount|0}}} + 1}}
| namespace = Part
| reload
}}
{{#autoedit:form=Part
| target = Part:{{{?Part type|}}}
| link type = button
| link text = -1
| Part[amount] = {{#expr:{{{?Part amount|1}}} - 1}}
| namespace = Part
| reload
}}-->
| {{{?Has description|}}}
| {{{?Has description|}}}
|-
|-
</includeonly>
</includeonly>

Revision as of 08:34, 14 September 2012

wird in Electronics verwendet, siehe dort.