Difference between revisions of "Template:Book"

From Chaosdorf Wiki
Jump to navigation Jump to search
m (.)
 
(23 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#if:{{{description|}}}|* Subtitle: [[Has description::{{{description|}}}]]}}
+
<includeonly>{{infobox start
* Author: [[Has author::{{{author|}}}]]
+
  |headercolor=#ffffff
* ISBN: [[Has ISBN::{{{isbn|}}}]]
+
  |name={{PAGENAME}}
* Ownership: [[Has ownership::{{{ownership|}}}| ]]<!--
+
|description={{{description|}}}
-->{{#switch: {{{ownership|}}}
+
}}<!--
  | private = <span style="color: red">private</span>
 
| lent = <span style="color: orange">lent</span>
 
  | club = <span style="color: green">public</span>
 
| {{!}}<span style="color: red; font-weight: bold;">???</span>
 
}} {{#if:{{{owner|}}}| by {{U|{{{owner|}}}}}}}
 
  
{{#if:{{{lent|}}}|'''Lent''' by {{U|{{{lent|}}}}}[[Lent by::{{{lent|}}}| ]]}} {{#if:{{{lent|}}}| at {{{lent at|}}}}}
+
-->{{ifnotempty|{{{author|}}}     | {{infobox row | name=Autor    | value=[[Has author::{{{author|}}}]] }}}}<!--
 +
-->{{ifnotempty|{{{isbn|}}}       | {{infobox row | name=ISBN      | value=[[Has ISBN::{{{isbn|}}}]]     }}}}<!--
 +
-->{{ifnotempty|{{{owner|}}}       | {{infobox row | name=User      | value={{U|{{{owner|}}}}}           }}}}<!--
  
Aktionen:
+
-->{{ifnotempty|{{{ownership|}}}  | {{infobox row | name=Eigentum | value=[[Has ownership::{{{ownership|}}}| ]]<!--
{{#autoedit:form=book
+
  -->{{#switch: {{{ownership|}}}
| target=Book:{{PAGENAME}}
+
  | private = <span style="color: red">privat</span>
  | link type=button
+
  | lent = <span style="color: orange">Leihgabe</span>
  | link text=ausleihen
+
  | club = <span style="color: green">Club</span>
  | Book[lent]={{#USERNAME:}}
+
  | <span style="color: red; font-weight: bold;">???</span>
  | Book[lent at]=now
+
}}}}}}<!--
  | namespace=Book
+
 
| reload
+
-->{{ifnotempty|{{{use|}}}        | {{infobox row | name=Benutzung | value=[[Usage condition::{{{use|}}}| ]]{{Usage condition|{{{use|}}}}} }}}}<!--
}}
+
 
{{#autoedit:form=book
+
-->{{#ifeq: {{{has label|}}} |Yes || {{infobox row | name=Label    | value={{Wikilabel|Bitte ausdrucken|{{FULLPAGENAME}}}} }}}}<!--
| target=Book:{{PAGENAME}}
+
 
| link type=button
+
-->
| link text=zurückgeben
+
|}<!--
| Book[lent]=
+
 
| Book[lent at]=now
+
-->[[May be lent::{{{may be lent|Yes}}}| ]]<!--
| namespace=Book
+
-->{{#ifeq: {{{has label|}}} | Yes | [[Has label::Yes| ]] | [[Has label::No| ]] }}
| reload
+
 
}}
+
{{#if:{{{lent|}}}|'''Ausgeliehen''' von {{U|{{{lent|}}}}}[[Lent by::{{{lent|}}}| ]]}} {{#if:{{{lent|}}}| am {{{lent at|}}}}}
 +
</includeonly>

Latest revision as of 20:35, 15 November 2018