Template:Book: Difference between revisions

From LarpWiki
Jump to navigation Jump to search
(Created)
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>__TOC__<div class="infobox book">
<div class="title"><!--
-->{{#if: {{{cover|}}} | [[File:{{{cover}}}|200x300px]]<br>|}}<!--
-->{{#if: {{{title|}}} | '''{{{title}}}'''|}}<br>{{#if: {{{publisher|}}}| ''[[{{{publisher}}}]]''|}} {{#if: {{{year|}}} | ''[[{{{year}}}]]''|}}<!--
--></div>
<div class="details divider">{{#if: {{{pages|}}} | <!--
-->* {{{pages}}} pages|}}{{#if: {{{isbn|}}} | <!--
-->* [http://en.wikipedia.org/wiki/Special:BookSources/{{{isbn}}} ISBN {{{isbn}}}]|}}{{#if: {{{isbnhc|}}} | <!--
-->* [http://en.wikipedia.org/wiki/Special:BookSources/{{{isbnhc}}} ISBN {{{isbnhc}}}] (Hardcover)|}}{{#if: {{{isbnpb|}}} | <!--
-->* [http://en.wikipedia.org/wiki/Special:BookSources/{{{isbnpb}}} ISBN {{{isbnpb}}}] (Paperback)|}}{{#if: {{{isbnd|}}} | <!--
-->* [http://en.wikipedia.org/wiki/Special:BookSources/{{{isbnd}}} ISBN {{{isbnd}}}] (Digital)|}}<!--
--></div>
<div class="attribution"><!--
-->{{#if: {{{editors|}}} |<div class="people">
'''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>
<noinclude>
<noinclude>
==Usage==
{{Book |image=RTLBcover.jpg |name=A book |year=2014 |author=Someone |publisher=Larp Wiki|isbn= |pages=23 }}
* cover = Cover image ("cover.jpg")
Please copy and paste the following into pages that talk about books
* title = Book title ("A Long Book")
* publisher = Publisher ("Rollespilsakademiet")
* sort = Sorting title ("Long Book, A")
* year = Year published ("2011")
* isbn = General ISBN
* isbnhc = Hardcover ISBN
* isbnpb = Paperback ISBN
* isbnd = Digital ISBN
* pages = Number of pages ("138")
* authors = Show authors? ("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.
<pre>
{{Book |image= |name= |year= |author= |publisher= |isbn= |language= |pages= }}
</pre>
==Useage==
<pre>
{{Book
|image=ImageName.jpg/gif/png if you don't have an image just leave it blank
|name=Item Title
|year=When was started or written, published, etc?
|author=who wrote it
|editor=who edited it
|publisher=publisher
|isbn=ISBN
|language= What language is it in?
|pages=how many pages
}}
</pre>


[[Category:Templates]]
[[Category:Templates]]
__NOTOC__
</noinclude>
</noinclude>
<includeonly>
{{BaseInfobox
|name={{{name|}}}
|css_class=media
|image={{{image|}}}
|tagline={{{motto|}}}
|key1=Author
|val1={{{author|}}}
|key2=Publisher
|val2={{{publisher|}}}
|key3=Year
|val3={{{year|}}}
|key4=ISBN
|val4={{{isbn|}}}
|key5=Language
|val5= {{{language|}}}
|key6=Pages
|val6= {{{pages|}}}
|category=Books
}}
</includeonly>

Latest revision as of 18:18, 1 January 2016




A book

RTLBcover.jpg
Author
Someone
Publisher
Larp Wiki
Year
2014
Pages
23


Please copy and paste the following into pages that talk about books

{{Book |image= |name= |year= |author= |publisher= |isbn= |language= |pages= }}

Useage

{{Book
|image=ImageName.jpg/gif/png if you don't have an image just leave it blank
|name=Item Title
|year=When was started or written, published, etc?
|author=who wrote it
|editor=who edited it
|publisher=publisher
|isbn=ISBN
|language= What language is it in?
|pages=how many pages
}}