Template:Resource: Difference between revisions

From Chaosdorf Wiki
Jump to navigation Jump to search
m (korrektes ifeq.)
m (Label "gefixt")
(25 intermediate revisions by 2 users not shown)
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, unused)'' destroyed/borrowed/moved<nowiki>
| broken      = </nowiki>''(optional, unused)'' remove/repair/rebuy/notify<nowiki>
| annoying    = </nowiki>''(optional, unused)'' remove/notify/ignore<nowiki>
  }}
  }}
</nowiki>
</nowiki>
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>
</noinclude><includeonly><!--
{{#if:{{{image|}}}|[[Has image::{{{image|}}}| ]]}}
-->{{#if:{{{image|}}}|[[Has image::{{{image|}}}| ]]|[[Has no image::true| ]]}}<!--
{| 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;"
-->{{#ifeq: {{{has label|}}} | Yes | [[Has label::Yes| ]] | [[Has label::No| ]] }}<!--
! style="text-align: center; background-color:#cccccc;" colspan="2" |<big>{{{name}}}</big>
-->{{#ifeq: {{#titleparts: {{PAGENAME}} | |-1 }} | en | [[Duplicate::Yes| ]] | [[Duplicate::No| ]] }}<!--
|-
-->{{#if: {{{resource category|}}} | [[Resource category::{{{resource category}}}| ]] | [[Resource category::Sonstiges| ]] }}<!--
!style="text-align: center;" colspan="2" | {{#if:{{{image|}}}|[[File:{{{image|}}}|frameless]]}}
 
|-
-->{{infobox start
|
|headercolor=#000080
| [[Has description::{{{description|}}}]]
|darkheader=1
|-
|name=[[Resource name::{{{name}}}]]
{{#if:{{{location|}}}|{{!}}Ort}}
|image={{{image|}}}
{{#if:{{{location|}}}|{{!}}[[Has location::{{{location|}}}]]}}
|description={{{description|}}}
|-
}}<!--
{{#if:{{{ownership|}}}|{{!}}Besitzstatus}}
 
{{#ifeq:{{{ownership|}}}|private|{{!}}<span style="color: red">privat</span>|}}<!--
-->{{ifnotempty|{{{location|}}} | {{infobox row | name=Ort | value={{#arraymap:{{{location|}}}|,|x|[[Has location::x]]}} }}}}<!--
-->{{#ifeq:{{{ownership|}}}|lent|{{!}}<span style="color: orange">Leihgabe</span>|}}<!--
-->{{infobox row | name=Besitzstatus | value=[[Has ownership::{{{ownership|}}}| ]]{{Ownership|{{{ownership|}}}}} }}<!--
-->{{#ifeq:{{{ownership|}}}|club|{{!}}<span style="color: green">Club-Eigentum</span>|}}<!--
 
-->{{#ifeq:{{{ownership|}}}|unknown|{{!}}<span style="color: red; font-weight: bold;">???</span>|}}<!--
-->{{ifnotempty|{{{contact|}}}     | {{infobox row | name=Kontakt  | value={{{contact|}}}            }}}}<!--
-->{{#if:{{{ownership|}}}|[[Has ownership::{{{ownership|}}}| ]]}}
-->{{ifnotempty|{{{contactnick|}}} | {{infobox row | name=Kontakt  | value={{#arraymap:{{{contactnick|}}}|,|x|{{U|x}}}} }}}}<!--
|-
-->{{ifnotempty|{{{use|}}}         | {{infobox row | name=Benutzung | value=[[Usage condition::{{{use|}}}| ]]{{Usage condition|{{{use|}}}}} }}}}<!--
{{#if:{{{contact|}}}|{{!}}Kontakt}}
 
{{#if:{{{contact|}}}|{{!}}{{{contact|}}}}}
-->{{#ifeq: {{{has label|}}} | Yes|| {{infobox row | name=Label    | value={{Wikilabel|Bitte ausdrucken|{{PAGENAME}}}} }}}}<!--
|-
 
{{#if:{{{contactnick|}}}|{{!}}Kontakt}}
-->
{{#if:{{{contactnick|}}}|{{!}}{{U|{{{contactnick}}}}}}}
|-
|}
|}
[[Category:Resources]]
[[Category:Resources]]
</includeonly>
</includeonly>

Revision as of 22: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.