Difference between revisions of "Template:Book"

From Chaosdorf Wiki
Jump to navigation Jump to search
(infobox start ist intelligenter als gedacht. :3)
 
(16 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{infobox start
+
<includeonly>{{infobox start
 
  |headercolor=#ffffff
 
  |headercolor=#ffffff
 
  |name={{PAGENAME}}
 
  |name={{PAGENAME}}
Line 9: Line 9:
 
-->{{ifnotempty|{{{owner|}}}      | {{infobox row | name=User      | value={{U|{{{owner|}}}}}            }}}}<!--
 
-->{{ifnotempty|{{{owner|}}}      | {{infobox row | name=User      | value={{U|{{{owner|}}}}}            }}}}<!--
  
-->{{ifnotempty|{{{ownership|}}}  | {{infobox row | name=Besitzstatus | value=[[Has ownership::{{{ownership|}}}| ]]<!--
+
-->{{ifnotempty|{{{ownership|}}}  | {{infobox row | name=Eigentum | value=[[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</span>
 
  | <span style="color: red; font-weight: bold;">???</span>
 
  | <span style="color: red; font-weight: bold;">???</span>
 
}}}}}}<!--
 
}}}}}}<!--
  
-->{{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|{{FULLPAGENAME}}}} }}}}<!--
| 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>
+
-->[[May be lent::{{{may be lent|Yes}}}| ]]<!--
}}}}}}
+
-->{{#ifeq: {{{has label|}}} | Yes | [[Has label::Yes| ]] | [[Has label::No| ]] }}
|}
 
  
 
{{#if:{{{lent|}}}|'''Ausgeliehen''' von {{U|{{{lent|}}}}}[[Lent by::{{{lent|}}}| ]]}} {{#if:{{{lent|}}}| am {{{lent at|}}}}}
 
{{#if:{{{lent|}}}|'''Ausgeliehen''' von {{U|{{{lent|}}}}}[[Lent by::{{{lent|}}}| ]]}} {{#if:{{{lent|}}}| am {{{lent at|}}}}}
 
+
</includeonly>
{{#if:{{{lent|}}}|
 
{{#autoedit:form=book
 
| target=Book:{{PAGENAME}}
 
| link type=button
 
| link text=zurückgeben
 
| Book[lent]=
 
| Book[lent at]=now
 
| namespace=Book
 
| reload
 
}}
 
|
 
{{#autoedit:form=book
 
| target=Book:{{PAGENAME}}
 
| link type=button
 
| link text=ausleihen
 
| Book[lent]={{#USERNAME:}}
 
| Book[lent at]=now
 
| namespace=Book
 
| reload
 
}}
 
}}
 

Latest revision as of 21:35, 15 November 2018