Template:Resource: Difference between revisions

From Chaosdorf Wiki
Jump to navigation Jump to search
(ifnotempty template)
m (Label "gefixt")
(15 intermediate revisions by 2 users not shown)
Line 17: Line 17:
</nowiki>
</nowiki>
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>
</noinclude><includeonly><!--
{{#ifeq:{{{preview image|}}}|Yes|{{#if:{{{image|}}}|[[Has image::{{{image|}}}| ]]}}}}
-->{{#if:{{{image|}}}|[[Has image::{{{image|}}}| ]]|[[Has no image::true| ]]}}<!--
{{infobox start
-->{{#ifeq: {{{has label|}}} | Yes | [[Has label::Yes| ]] | [[Has label::No| ]] }}<!--
  |headercolor=#cccccc
-->{{#ifeq: {{#titleparts: {{PAGENAME}} | |-1 }} | en | [[Duplicate::Yes| ]] | [[Duplicate::No| ]] }}<!--
  |name={{{name}}}
-->{{#if: {{{resource category|}}} | [[Resource category::{{{resource category}}}| ]] | [[Resource category::Sonstiges| ]] }}<!--
 
-->{{infobox start
  |headercolor=#000080
|darkheader=1
  |name=[[Resource name::{{{name}}}]]
  |image={{{image|}}}
  |image={{{image|}}}
  |description={{{description|}}}
  |description={{{description|}}}
}}<!--
}}<!--


-->{{ifnotempty|{{{location|}}} | {{infobox row | name=Ort | value=[[Has location::{{{location|}}}]] }}}}<!--
-->{{ifnotempty|{{{location|}}} | {{infobox row | name=Ort | value={{#arraymap:{{{location|}}}|,|x|[[Has location::x]]}} }}}}<!--
-->{{infobox row | name=Besitzstatus | value=[[Has ownership::{{{ownership|}}}| ]]
-->{{infobox row | name=Besitzstatus | value=[[Has ownership::{{{ownership|}}}| ]]{{Ownership|{{{ownership|}}}}} }}<!--
{{#switch: {{{ownership|}}}
| private = <span style="color: red">privat</span>
| lent = <span style="color: orange">Leihgabe</span>
| club = <span style="color: green">Club-Eigentum</span>
| <span style="color: red; font-weight: bold;">???</span>
}}}}<!--


-->{{ifnotempty|{{{contact|}}}    | {{infobox row | name=Kontakt  | value={{{contact|}}}            }}}}<!--
-->{{ifnotempty|{{{contact|}}}    | {{infobox row | name=Kontakt  | value={{{contact|}}}            }}}}<!--
-->{{ifnotempty|{{{contactnick|}}} | {{infobox row | name=Kontakt  | value={{U|{{{contactnick}}}}}   }}}}<!--
-->{{ifnotempty|{{{contactnick|}}} | {{infobox row | name=Kontakt  | value={{#arraymap:{{{contactnick|}}}|,|x|{{U|x}}}} }}}}<!--
-->{{ifnotempty|{{{use|}}}        | {{infobox row | name=Benutzung | value=[[Usage condition::{{{use|}}}| ]]
-->{{ifnotempty|{{{use|}}}        | {{infobox row | name=Benutzung | value=[[Usage condition::{{{use|}}}| ]]{{Usage condition|{{{use|}}}}}  }}}}<!--
{{#switch: {{{use|}}}
 
| free    = <span style="color: green">frei</span>
-->{{#ifeq: {{{has label|}}} | Yes|| {{infobox row | name=Label    | value={{Wikilabel|Bitte ausdrucken|{{PAGENAME}}}} }}}}<!--
| ask    = <span style="color: orange">Nachfragen</span>
 
| rtfm    = <span style="color: orange">RTFM</span>
-->
| no      = <span style="color: red">Nein</span>
| careful = <span style="color: orange">vorsichtig</span>
| payment = <span style="color: orange">gegen Spende</span>
}}}} }}
|}
|}
[[Category:Resources]]
[[Category:Resources]]
</includeonly>
</includeonly>

Revision as of 23:46, 27 May 2020

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.