Template: Infobox Chapter: Difference between revisions

From A Wiki of Ice and Fire
Jump to: navigation, search
Rhaenys Targaryen (talk | contribs)
m Reverted edits by Rhaenys Targaryen (talk) to last revision by Scafloc
Abjiklam (talk | contribs)
implemented with Infobox template
Line 1: Line 1:
<table class="infobox" style="width: 20em; text-align: left">
{{Infobox
<tr><th colspan="2" style="text-align:center; font-size:125%; font-weight:bold; background-color:{{Work color|{{{book title}}}}}">{{#if:{{{title|}}}|{{{title}}}|{{{pov}}} {{Roman|{{{pov count}}}}}}}</th></tr>
| bodystyle      =
<tr><th colspan="2" style="text-align:center; font-weight:bold;">''[[{{{book title}}}]]'' chapter</th></tr>
| titlestyle    = | title         =  
<tr><th colspan="2" style="text-align:center;">[[{{{book cover}}}|220px]]</th></tr>


{{#if:{{{pov|<noinclude>pov</noinclude>}}}|<tr><th>POV</th><td>{{{pov}}}</td></tr>}}
| abovestyle    = background-color:{{Work color|{{{book title}}}}}
{{#if:{{{place|<noinclude>place</noinclude>}}}|<tr><th>Place</th><td>{{{place}}}</td></tr>}}
| above          = {{#if:{{{title|}}}|{{{title}}}|{{{pov}}} {{Roman|{{{pov count}}}}}}}
{{#if:{{{page|<noinclude>pov</noinclude>}}}|<tr><th>Page</th><td>{{{page|}}}<small> ([[Chapters_Table_of_contents|Other versions]])</small></td></tr>}}


<tr><th colspan="2" style="text-align:center;">Chapter chronology <small>([[Chapters|All]])</small></th></tr>
| subheaderstyle =  
<tr><th colspan="2"><table style="width:100%; background: transparent; text-align: center; font-size: 88%; line-height: 1.4em; vertical-align: top">
| subheader      = ''[[{{{book title}}}]]'' chapter
{{#if:{{{arc previous|<noinclude>arc previous</noinclude>}}}|<!--
  --><tr><td style="width: 33%; padding: 0.2em 0.1em 0.2em 0" colspan="3">{{{arc previous}}}<br>↑</td></tr>}}
<tr>
  <td style="width: 33%; padding: 0.2em 0.1em 0.2em 0">{{{previous|<noinclude>previous</noinclude>}}}&nbsp;←</td>
  <td style="width: 33%; padding: 0.2em 0.1em 0.2em 0">{{{current|<noinclude>current</noinclude>}}}</td>
  <td style="width: 33%; padding: 0.2em 0.1em 0.2em 0">→&nbsp;{{{next|<noinclude>next</noinclude>}}}</td>
</tr>
{{#if:{{{arc next|<noinclude>arc next</noinclude>}}}|<!--
  --><tr><td style="width: 33%; padding: 0.2em 0.1em 0.2em 0" colspan="3">↓<br>{{{arc next}}}</td></tr>}}
</table></th></tr>
</table><noinclude>
Meta template. Don't use it directly.


==Usage==
|   imagestyle  =  
<pre>
| captionstyle  =  
{{Infobox Chapter
|   image        = {{#invoke:InfoboxImage | InfoboxImage | image={{{book cover}}} | size=220px | maxsize=300px | sizedefault=frameless | alt={{{alt|}}} | border=yes}}
| book title =
| caption        = {{{caption|}}}
| book cover =
| pov =
| place        =
| title =
| page =
| previous =
| current =
| next =
| arc previous =
| arc next =
}}</pre>
Example:
<pre>{{Infobox Chapter
| book title = Book title
| book cover = File:fullName
| pov = {{{pov}}}
| place        = {{{place}}}
| title = {{{title|}}}
| page = {{{page}}}
| previous = {{{previous|}}}
| current = {{{current}}}
| next = {{{next|}}}
| arc previous = {{{arc previous|}}}
| arc next = {{{arc next|}}}
}}</pre>


[[Category:Infobox templates|Chapter]]</noinclude>
| headerstyle    = background-color:{{Work color|{{{book title}}}}}
|  labelstyle    =
|  datastyle    =
 
| label1 = POV
| data1  = {{{pov|<noinclude>{{{pov}}}</noinclude>}}}
| label2 = Place
| data2  = {{{place|<noinclude>{{{place}}}</noinclude>}}}
| label3 = Page
| data3  = {{#if:{{{page|<noinclude>{{{page}}}</noinclude>}}}|{{{page}}} <small>([[Chapters Table of contents|Other versions]])</small>}}
 
| header10 = Chapter chronology <small>([[Chapters|All]])</small>
| data11  = <span style="font-size:85%;">{{#if:{{{arc previous|<noinclude>arc previous</noinclude>}}}|{{{arc previous}}}<br>↑}}</span>
| data12  = <table style="font-size:85%;"><tr>
<td style="width:33%; text-align:right; vertical-align:middle;">{{#if:{{{previous|<noinclude>previous</noinclude>}}}|{{{previous}}}&nbsp;←}}</td>
<td style="width:33%; text-align:center; vertical-align:middle; padding-right:0.1em; padding-left:0.1em;">{{{current|<noinclude>{{{current}}}</noinclude>}}}</td>
<td style="width:33%; text-align:left; vertical-align:middle;">{{#if:{{{next|<noinclude>next</noinclude>}}}|→&nbsp;{{{next}}}}}</td>
</tr></table>
| data13  = <span style="font-size:85%;">{{#if:{{{arc next|<noinclude>arc next</noinclude>}}}|↓<br>{{{arc next}}}}}</span>
}}<noinclude>
{{documentation}}</noinclude>

Revision as of 17:17, 3 September 2018

{{{pov}}}
[[{{{book title}}}]] chapter
[[File:{{{book cover}}}|220px|border]]
POV {{{pov}}}
Place {{{place}}}
Page {{{page}}} (Other versions)
Chapter chronology (All)
{{{arc previous}}}
{{{previous}}} ← {{{current}}} → {{{next}}}

{{{arc next}}}