Template:Book

From Spearfish Lake Tales Wiki

(Difference between revisions)
Jump to: navigation, search
(playing with table alignment)
(changed presentation to infobox-style)
 
Line 1: Line 1:
-
<center>
+
<noinclude>Use this template at the top of a book (novel) article
-
{| cellpadding="5"
+
<br />Example: <code><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|link={{WROC}}.htm|bookimage=[[File:Rocin-vs.jpg]]|time=April to December 1971; 1992}}</nowiki></code>
 +
== Parameters ==
 +
All parameters are options, default value in parenthesis
 +
* 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
 +
* 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;"  
  |-
  |-
-
  | align = "center" colspan="2" |{{{bookimage|[[File:SLTL100.jpg]]}}}  
+
  ! colspan="2" style="text-align:center; font-size:larger;" | ''{{{title|{{PAGENAME}}}}}''
  |-
  |-
-
  | align="right" |'''Title'''|| align="left" |{{{title|unknown}}}
+
  | colspan="2" style="text-align:center;" | {{{bookimage|[[File:SLTL100.jpg]]}}}
  |-
  |-
-
  | align="right" |'''Online at'''|| align="left" |{{{link | http://www.spearfishlaketales.com}}}
+
  | colspan="2" style="text-align:center;" | [{{{link|{{WSLT}}}}} Read this book]
  |-
  |-
-
  | align="right" |'''Book Characters Index at'''|| align="left" |{{{bookcharacters |[[:Category:Characters|Characters]]}}}
+
  | 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}}}|}}
  |-
  |-
-
| align="right" |'''Book Locations Index at'''|| align="left" |{{{booklocations |[[:Category:Locations|Locations]]}}}
 
  |}
  |}
-
</center>
+
[[Category:Book]]
-
 
+
</includeonly>
-
 
+
-
 
+
-
<includeonly>[[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