Template:Book: Difference between revisions

From LarpWiki
Jump to navigation Jump to search
(Created)
 
m (Fixed)
Line 1: Line 1:
<includeonly>__TOC__<div class="infobox book">
<includeonly>{{BaseInfobox
<div class="title"><!--
|image={{{image|}}}
-->{{#if: {{{cover|}}} | [[File:{{{cover}}}|200x300px]]<br>|}}<!--
|title={{{title|}}}
-->{{#if: {{{title|}}} | '''{{{title}}}'''|}}<br>{{#if: {{{publisher|}}}| ''[[{{{publisher}}}]]''|}} {{#if: {{{year|}}} | ''[[{{{year}}}]]''|}}<!--
|key1=Author(s)
--></div>
|val1={{{Authors|}}}
<div class="details divider">{{#if: {{{pages|}}} | <!--
|key2=Editor(s)
-->* {{{pages}}} pages|}}{{#if: {{{isbn|}}} | <!--
|val2={{{editors|}}}
-->* [http://en.wikipedia.org/wiki/Special:BookSources/{{{isbn}}} ISBN {{{isbn}}}]|}}{{#if: {{{isbnhc|}}} | <!--
|publisher=[[{{{publisher|}}}]]
-->* [http://en.wikipedia.org/wiki/Special:BookSources/{{{isbnhc}}} ISBN {{{isbnhc}}}] (Hardcover)|}}{{#if: {{{isbnpb|}}} | <!--
|key3=year
-->* [http://en.wikipedia.org/wiki/Special:BookSources/{{{isbnpb}}} ISBN {{{isbnpb}}}] (Paperback)|}}{{#if: {{{isbnd|}}} | <!--
|val3={{{year|}}}
-->* [http://en.wikipedia.org/wiki/Special:BookSources/{{{isbnd}}} ISBN {{{isbnd}}}] (Digital)|}}<!--
|key4=ISBN
--></div>
|val4={{{isbn|}}}
<div class="attribution"><!--
|key5=Pages
-->{{#if: {{{editors|}}} |<div class="people">
|val5={{{pages|}}}
'''Editor(s)'''
 
{{ #vardefine: i | 1 }}{{
  #while:
  | {{ #ifexpr: {{ #var: i }} <= 100 | true }}
  |<nowiki/>
{{#if: {{{editor{{ #var: i }}|}}} | * [[{{{editor{{ #var: i }}}}}]]|}} {{ #vardefine: i | {{ #expr: {{ #var: i }} + 1 }} }}
}}
</div>|}}
{{#if: {{{authors|}}} |<div class="people">
'''Author(s)'''
{{ #vardefine: j | 1 }}{{
  #while:
  | {{ #ifexpr: {{ #var: j }} <= 100 | true }}
  |<nowiki/>
{{#if: {{{author{{ #var: j }}|}}} | * [[{{{author{{ #var: j }}}}}]]|}} {{ #vardefine: j | {{ #expr: {{ #var: j }} + 1 }} }}
}}
}}
</div>|}}<!--
--></div></div><!--
-->{{#if: {{{sort|}}} |[[Category:Books|{{{sort}}}]]|[[Category:Books]]}}<!--
-->{{#if: {{{year|}}} |[[Category:{{{year}}}]]}}<!--
-->{{#if: {{{country|}}} |[[Category:{{{country}}}]]}}
</includeonly>
</includeonly>
<noinclude>
<noinclude>
==Usage==
==Usage==
* cover = Cover image ("cover.jpg")
* image = Cover image ("cover.jpg")
* title = Book title ("A Long Book")
* title = Book title ("A Long Book")
* publisher = Publisher ("Rollespilsakademiet")
* publisher = Publisher ("Rollespilsakademiet")
* sort = Sorting title ("Long Book, A")
* year = Year published ("2011")
* year = Year published ("2011")
* isbn = General ISBN
* isbn = General ISBN
* isbnhc = Hardcover ISBN
* isbnpb = Paperback ISBN
* isbnd = Digital ISBN
* pages = Number of pages ("138")
* pages = Number of pages ("138")
* authors = Show authors? ("yes", "no" or blank)
* authors = Show authors? ("yes", "no" or blank)
* editors = Show editors? ("yes", "no" or blank)
* editors = Show editors? ("yes", "no" or blank)
* author1, author2, ..., author100 = All authors
* editor1, editor2, ..., editor100 = All editors


Template from [http://nordiclarp.org/wiki/Main_Page Nordiclarp wiki]. CC-by.


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 20:29, 4 January 2015


Usage

  • image = Cover image ("cover.jpg")
  • title = Book title ("A Long Book")
  • publisher = Publisher ("Rollespilsakademiet")
  • year = Year published ("2011")
  • isbn = General ISBN
  • pages = Number of pages ("138")
  • authors = Show authors? ("yes", "no" or blank)
  • editors = Show editors? ("yes", "no" or blank)