Template:PartlistSMW: Difference between revisions

Template page
m (Test)
(SMW 3.x no longer prefixes queried variables with "?")
Line 2: Line 2:
''wird in [[Electronics]] verwendet, siehe dort.''
''wird in [[Electronics]] verwendet, siehe dort.''
</noinclude><includeonly>
</noinclude><includeonly>
| {{#if:{{{?Has image|}}}|[[File:{{{?Has image|}}}|100x100px|frameless]]}}
| {{#if:{{{Has image|}}}|[[File:{{{Has image|}}}|100x100px|frameless]]}}
| [[Part:{{{Part type|}}}|{{{Part type|}}}]]
| [[Part:{{{Part type|}}}|{{{Part type|}}}]]
| {{{?Part location|}}}
| {{{Part location|}}}
| {{#switch: {{{?Part amount|}}}
| {{#switch: {{{Part amount|}}}
   | -2 =
   | -2 =
   | -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
| {{#formlink:form=Part
   | link text = edit
   | link text = edit
   | link type = button
   | link type = button
   | target = Part:{{{?Part type|}}}
   | target = Part:{{{Part type|}}}
   | popup
   | popup
   }}
   }}
| {{{?Has description|}}}
| {{{Has description|}}}
|-
|-
</includeonly>
</includeonly>

Revision as of 14:21, 16 November 2019

wird in Electronics verwendet, siehe dort.