Template:Book

From Spearfish Lake Tales Wiki

(Difference between revisions)
Jump to: navigation, search
(changed presentation to infobox-style)
 
(13 intermediate revisions not shown)
Line 1: Line 1:
-
{|
+
<noinclude>Use this template at the top of a book (novel) article
-
|-
+
<br />Example: <code><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|link={{WROC}}.htm|bookimage=[[File:Rocin-vs.jpg]]|time=April to December 1971; 1992}}</nowiki></code>
-
|'''Title '''||{{{title|unknown}}}
+
== Parameters ==
-
|-
+
All parameters are options, default value in parenthesis
-
|'''Online at'''||{{{link | http://www.spearfishlaketales.com}}}
+
* title (<nowiki>{{PAGENAME}}</nowiki>): book title
-
|-
+
* link ({{WSLT}}): url of the book
-
|}
+
* bookimage (<nowiki>[[File:SLTL100.jpg]]</nowiki>): wiki link to cover image
-
 
+
* bookcharacters (<nowiki>[[:Category:{{PAGENAME}} Characters]]</nowiki>): wiki link to character index
-
<nowiki> Use by copying the block below: </nowiki>
+
* booklocations (<nowiki>[[:Category:{{PAGENAME}} Locations]]</nowiki>): wiki link to location index
 +
* time: time frame
 +
</noinclude>
 +
<includeonly>
 +
{| class="infobox" style="float:right; border:1px solid #aaaaaa;"
 +
|-
 +
! colspan="2" style="text-align:center; font-size:larger;" | ''{{{title|{{PAGENAME}}}}}''
 +
|-
 +
| colspan="2" style="text-align:center;" | {{{bookimage|[[File:SLTL100.jpg]]}}}
 +
|-
 +
| colspan="2" style="text-align:center;" | [{{{link|{{WSLT}}}}} Read this book]
 +
|-
 +
| colspan="2" style="text-align:center;" | {{{bookcharacters|[[:Category:{{{title|{{PAGENAME}} }}} Characters|Characters]]}}}
 +
|-
 +
| colspan="2" style="text-align:center;" | {{{booklocations|[[:Category:{{{title|{{PAGENAME}} }}} Locations|Locations]]}}}
 +
|-
 +
| colspan="2" style="text-align:center;" | [[:Category:{{{title|{{PAGENAME}} }}} Chapters|Chapters]]
 +
|-
 +
| {{#if:{{{time|}}}|'''Time frame''' {{!}}{{!}} {{{time}}}|}}
 +
|-
 +
| {{#if:{{{posted|}}}|'''First posted''' {{!}}{{!}} {{{posted}}}|}}
 +
|-
 +
|}
 +
[[Category:Book]]
 +
</includeonly>

Current revision as of 00:34, 4 August 2011

Use this template at the top of a book (novel) article
Example: {{Book|link={{WROC}}.htm|bookimage=[[File:Rocin-vs.jpg]]|time=April to December 1971; 1992}}

Parameters

All parameters are options, default value in parenthesis

  • title ({{PAGENAME}}): book title
  • link (http://www.spearfishlaketales.com): url of the book
  • bookimage ([[File:SLTL100.jpg]]): wiki link to cover image
  • bookcharacters ([[:Category:{{PAGENAME}} Characters]]): wiki link to character index
  • booklocations ([[:Category:{{PAGENAME}} Locations]]): wiki link to location index
  • time: time frame


Personal tools