Template:Resource: Difference between revisions

From Chaosdorf Wiki
Jump to navigation Jump to search
m (template syntax)
(ifnotempty template)
Line 26: Line 26:
}}<!--
}}<!--


-->
-->{{ifnotempty|{{{location|}}} | {{infobox row | name=Ort | value=[[Has location::{{{location|}}}]] }}}}<!--
{{#if:{{{location|}}} | {{infobox row | name=Ort | value=[[Has location::{{{location|}}}]] }}}}<!--
-->{{infobox row | name=Besitzstatus | value=[[Has ownership::{{{ownership|}}}| ]]
-->
{{infobox row | name=Besitzstatus | value=[[Has ownership::{{{ownership|}}}| ]]
{{#switch: {{{ownership|}}}
{{#switch: {{{ownership|}}}
  | private = <span style="color: red">privat</span>
  | private = <span style="color: red">privat</span>
Line 36: Line 34:
  | <span style="color: red; font-weight: bold;">???</span>
  | <span style="color: red; font-weight: bold;">???</span>
}}}}<!--
}}}}<!--
-->
 
{{#if:{{{contact|}}}    | {{infobox row | name=Kontakt | value={{{contact|}}} }}}}
-->{{ifnotempty|{{{contact|}}}    | {{infobox row | name=Kontakt   | value={{{contact|}}}           }}}}<!--
{{#if:{{{contactnick|}}} | {{infobox row | name=Kontakt | value={{U|{{{contactnick}}}}} }}}}<!--
-->{{ifnotempty|{{{contactnick|}}} | {{infobox row | name=Kontakt   | value={{U|{{{contactnick}}}}}   }}}}<!--
-->
-->{{ifnotempty|{{{use|}}}         | {{infobox row | name=Benutzung | value=[[Usage condition::{{{use|}}}| ]]
{{#if:{{{use|}}} | {{infobox row | name=Benutzung | value=[[Usage condition::{{{use|}}}| ]]
{{#switch: {{{use|}}}
{{#switch: {{{use|}}}
  | free    = <span style="color: green">frei</span>
  | free    = <span style="color: green">frei</span>

Revision as of 15:03, 17 July 2012

Benutzung via Form:Resource oder in diesem Format. Orientiert sich ein wenig an labelz.

 {{Resource
 | description = Beschreibung
 | image       = (optional) Name des Bilds (ohne File: davor)
 | location    = (optional) Ort im Club
 | ownership   = Besitzstatus (private/lent/club)
 | contact     = (optional) Ansprechpartner für $foo (z.B. Besitzer falls Leihgabe/Privat)
 | contactnick = (optional) wie oben, aber verlinkt auf Wiki-Userpage
 | use         = (optional) free/ask/rtfm/no/careful/payment
 | may be      = (optional, unused) destroyed/borrowed/moved
 | broken      = (optional, unused) remove/repair/rebuy/notify
 | annoying    = (optional, unused) remove/notify/ignore
 }}

Edit the page to see the template text.