Template:Resource: Difference between revisions

From Chaosdorf Wiki
Jump to navigation Jump to search
m (korrektes ifeq.)
(#switch, labelzfoo)
Line 1: Line 1:
<noinclude>
<noinclude>
This is the 'Resource' template.
Benutzung via [[Form:Resource]] oder in diesem Format. Orientiert sich ein wenig an [http://kariert.org labelz].
It should be used via [[Form:Resource]] or in the following format:


  <nowiki>
  <nowiki>
Line 8: Line 7:
  | image      = </nowiki>''(optional)'' Name des Bilds (ohne File: davor)<nowiki>
  | image      = </nowiki>''(optional)'' Name des Bilds (ohne File: davor)<nowiki>
  | location    = </nowiki>''(optional)'' Ort im Club<nowiki>
  | location    = </nowiki>''(optional)'' Ort im Club<nowiki>
  | ownership  = </nowiki>Besitzstatus (Spende, Leihgabe, Privat etc.)<nowiki>
  | ownership  = </nowiki>Besitzstatus (private/lent/club)<nowiki>
  | contact    = </nowiki>''(optional)'' Ansprechpartner für $foo (z.B. Besitzer falls Leihgabe/Privat)<nowiki>
  | contact    = </nowiki>''(optional)'' Ansprechpartner für $foo (z.B. Besitzer falls Leihgabe/Privat)<nowiki>
  | contactnick = </nowiki>''(optional)'' wie oben, aber verlinkt auf Wiki-Userpage<nowiki>
  | contactnick = </nowiki>''(optional)'' wie oben, aber verlinkt auf Wiki-Userpage<nowiki>
| use        = </nowiki>''(optional)'' free/ask/rtfm/no/careful/payment<nowiki>
| may be      = </nowiki>''(optional)'' destroyed/borrowed/moved<nowiki>
| broken      = </nowiki>''(optional)'' remove/repair/rebuy/notify<nowiki>
| annoying    = </nowiki>''(optional)'' remove/notify/ignore<nowiki>
  }}
  }}
</nowiki>
</nowiki>
Line 27: Line 30:
{{#if:{{{location|}}}|{{!}}[[Has location::{{{location|}}}]]}}
{{#if:{{{location|}}}|{{!}}[[Has location::{{{location|}}}]]}}
|-
|-
{{#if:{{{ownership|}}}|{{!}}Besitzstatus}}
|Besitzstatus[[Has ownership::{{{ownership|}}}| ]]}}
{{#ifeq:{{{ownership|}}}|private|{{!}}<span style="color: red">privat</span>|}}<!--
{{#switch: {{{ownership|}}}
-->{{#ifeq:{{{ownership|}}}|lent|{{!}}<span style="color: orange">Leihgabe</span>|}}<!--
| private = {{!}}<span style="color: red">privat</span>
-->{{#ifeq:{{{ownership|}}}|club|{{!}}<span style="color: green">Club-Eigentum</span>|}}<!--
| lent = {{!}}<span style="color: orange">Leihgabe</span>
-->{{#ifeq:{{{ownership|}}}|unknown|{{!}}<span style="color: red; font-weight: bold;">???</span>|}}<!--
| club = {{!}}<span style="color: green">Club-Eigentum</span>
-->{{#if:{{{ownership|}}}|[[Has ownership::{{{ownership|}}}| ]]}}
| {{!}}<span style="color: red; font-weight: bold;">???</span>
}}
|-
|-
{{#if:{{{contact|}}}|{{!}}Kontakt}}
{{#if:{{{contact|}}}|{{!}}Kontakt}}
Line 40: Line 44:
{{#if:{{{contactnick|}}}|{{!}}{{U|{{{contactnick}}}}}}}
{{#if:{{{contactnick|}}}|{{!}}{{U|{{{contactnick}}}}}}}
|-
|-
{{#if:{{{use|}}}|{{!}}Benutzung}}
{{#ifeq:{{{use|}}}|free|{{!}}<span style="color:
|}
|}
[[Category:Resources]]
[[Category:Resources]]
</includeonly>
</includeonly>

Revision as of 21:20, 1 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) destroyed/borrowed/moved
 | broken      = (optional) remove/repair/rebuy/notify
 | annoying    = (optional) remove/notify/ignore
 }}

Edit the page to see the template text.