Template:Resource: Difference between revisions

Template page
m (ifeq verwenden)
(infobox template)
Line 19: Line 19:
</noinclude><includeonly>
</noinclude><includeonly>
{{#ifeq:{{{preview image|}}}|Yes|{{#if:{{{image|}}}|[[Has image::{{{image|}}}| ]]}}}}
{{#ifeq:{{{preview image|}}}|Yes|{{#if:{{{image|}}}|[[Has image::{{{image|}}}| ]]}}}}
{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #eee; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
{{infobox start
! style="text-align: center; background-color:#cccccc;" colspan="2" |<big>{{{name}}}</big>
|headercolor=#cccccc
|-
|name={{{name}}}
!style="text-align: center;" colspan="2" | {{#if:{{{image|}}}|[[File:{{{image|}}}|frameless]]|[[Has no image::true| ]]}}
|image={{{image|}}}
|-
|description={{{description|}}}
|
}}<!--
| [[Has description::{{{description|}}}]]
 
|-
-->
{{#if:{{{location|}}}|{{!}}Ort}}
{{#if:{{{location|}}} | {{infobox row | name=Ort | value=[[Has location::{{{location|}}}]] }}}}<!--
{{#if:{{{location|}}}|{{!}}[[Has location::{{{location|}}}]]}}
-->
|-
{{infobox row | name=Besitzstatus | value=[[Has ownership::{{{ownership|}}}| ]]
|Besitzstatus[[Has ownership::{{{ownership|}}}| ]]
{{#switch: {{{ownership|}}}
{{#switch: {{{ownership|}}}
  | private = {{!}}<span style="color: red">privat</span>
  | private = <span style="color: red">privat</span>
  | lent = {{!}}<span style="color: orange">Leihgabe</span>
  | lent = <span style="color: orange">Leihgabe</span>
  | club = {{!}}<span style="color: green">Club-Eigentum</span>
  | club = <span style="color: green">Club-Eigentum</span>
  | {{!}}<span style="color: red; font-weight: bold;">???</span>
  | <span style="color: red; font-weight: bold;">???</span>
}}
}}}}<!--
|-
-->
{{#if:{{{contact|}}}|{{!}}Kontakt}}
{{#if:{{{contact|}}}     | {{infobox row | name=Kontakt | value={{{contact|}}} }}}}
{{#if:{{{contact|}}}|{{!}}{{{contact|}}}}}
{{#if:{{{contactnick|}}} | {{infobox row | name=Kontakt | value={{U|{{{contactnick}}}}} }}}}<!--
|-
-->
{{#if:{{{contactnick|}}}|{{!}}Kontakt}}
{{#if:{{{use|}}} | {{infobox row | name=Benutzung | value=[[Usage condition::{{{use|}}}| ]]
{{#if:{{{contactnick|}}}|{{!}}{{U|{{{contactnick}}}}}}}
|-
{{#if:{{{use|}}}|{{!}}Benutzung[[Usage condition::{{{use|}}}| ]]}}
{{#switch: {{{use|}}}
{{#switch: {{{use|}}}
  | free = {{!}}<span style="color: green">frei</span>
  | free   = <span style="color: green">frei</span>
  | ask = {{!}}<span style="color: orange">Nachfragen</span>
  | ask     = <span style="color: orange">Nachfragen</span>
  | rtfm = {{!}}<span style="color: orange">RTFM</span>
  | rtfm   = <span style="color: orange">RTFM</span>
  | no = {{!}}<span style="color: red">Nein</span>
  | no     = <span style="color: red">Nein</span>
  | careful = {{!}}<span style="color: orange">vorsichtig</span>
  | careful = <span style="color: orange">vorsichtig</span>
  | payment = {{!}}<span style="color: orange">gegen Spende</span>
  | payment = <span style="color: orange">gegen Spende</span>
}}
}}}}
|}
|}
[[Category:Resources]]
[[Category:Resources]]
</includeonly>
</includeonly>

Revision as of 12:33, 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.