Template: Infobox Chapter: Difference between revisions

From A Wiki of Ice and Fire
Jump to: navigation, search
Anguy the Archer (talk | contribs)
template for book chapter articles. Extensible, if those coat of arms currently visible there should be retained.
 
Abjiklam (talk | contribs)
added displaytitle
 
(30 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<table class="infobox" style="width: 20em; text-align: left">
{{DISPLAYTITLE:{{#invoke:Chapter displaytitle|main}}}}
<tr><th colspan="2" style="text-align:center; font-size:125%; font-weight:bold; background-color:{{work color|{{{book}}}}}">{{#switch:{{{book|AGoT}}}
{{Infobox
| AGoT = A Game of Thrones
| bodystyle      =  
| ACoK = A Clash of Kings
| titlestyle    = | title          =  
| ASoS = A Storm of Swords
| AFfC = A Feast for Crows
| ADwD = A Dance with Dragons
}}</th></tr>
<tr><th colspan="2" style="text-align:center; font-size:125%; font-weight:bold;">{{Chapter info/{{{book}}}/{{{chapter}}}|Chapter info/Title}}</th></tr>


<tr><th colspan="2" style="text-align:center">Chapter chronology</th></tr>
| abovestyle    = background-color:{{Work color|{{{book title}}}}}
<tr><th colspan="2"><table>
| above          = {{#if:{{{title|}}}|{{{title}}}|{{{pov}}} {{Roman|{{{pov count}}}}}}}
{{{!}} style="width:100%; background: transparent; text-align: center; font-size: 88%; line-height: 1.4em; vertical-align: top"
{{!}} style="width: 33%; padding: 0.2em 0.1em 0.2em 0" {{!}} {{#ifexist:Chapter info/{{{book}}}/{{#expr:{{{chapter}}}-1}} | {{Chapter info/{{{book}}}/{{#expr:{{{chapter}}}-1}}|Chapter info/Link}} }}
{{!}} style="width: 33%; padding: 0.2em 0.1em 0.2em 0.1em" {{!}} {{Chapter info/{{{book}}}/{{{chapter}}}|Chapter info/Link}}
{{!}} style="width: 33%; padding: 0.2em 0 0.2em 0.1em" {{!}} {{#ifexist:Chapter info/{{{book}}}/{{#expr:{{{chapter}}}-1}} | {{Chapter info/{{{book}}}/{{#expr:{{{chapter}}}+1}}|Chapter info/Link}} }}
{{!}}}
</table></th></tr>


</table><noinclude>
| subheaderstyle =
| subheader      = ''[[{{{book title}}}]]'' chapter


Template for use in POV chapter articles of the ''A Song of Ice and Fire'' series.
|  imagestyle  =
| captionstyle  =
|  image        = {{#invoke:InfoboxImage | InfoboxImage | image={{{book cover}}} | size=220px | maxsize=300px | sizedefault=frameless | alt={{{alt|}}} | border=yes}}
| caption        = {{{caption|}}}


==Usage==
| headerstyle    = background-color:{{Work color|{{{book title}}}}}
|  labelstyle    =  
|  datastyle    =  


<pre style="width:50em">
| label1 = POV
{{Infobox Chapter
| data1  = {{{pov|<noinclude>{{{pov}}}</noinclude>}}}
| book    = <!-- AGoT, ACoK, ASoS, AFfC, ADwD, ... -->
| label2 = Place
| chapter = <!-- Chapter number. Use 0 for for a prologue. -->
| data2  = {{{place|<noinclude>{{{place}}}</noinclude>}}}
}}
| label3 = Page
</pre>
| data3  = {{#if:{{{page|<noinclude>{{{page}}}</noinclude>}}}|{{{page}}} <small>([[Chapters Table of contents|Other versions]])</small>}}


</noinclude>
| header10 = Chapter chronology <small>([[Chapters|All]])</small>
| data11  = {{#if:{{{arc previous|<noinclude>arc previous</noinclude>}}}|{{{arc previous}}}<br>↑}}
| data12  = <table style="width:100%;"><tr>
<td style="width:33%; text-align:center; vertical-align:middle;">{{#if:{{{previous|<noinclude>previous</noinclude>}}}|{{{previous}}}}}</td>
<td style="vertical-align:middle; {{#if:{{{previous|<noinclude>previous</noinclude>}}}||visibility:hidden;}}">&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="vertical-align:middle; {{#if:{{{next|<noinclude>next</noinclude>}}}||visibility:hidden;}}">→&nbsp;</td>
<td style="width:33%; text-align:center; vertical-align:middle;">{{#if:{{{next|<noinclude>next</noinclude>}}}|{{{next}}}}}</td>
</tr></table>
| data13  = {{#if:{{{arc next|<noinclude>arc next</noinclude>}}}|↓<br>{{{arc next}}}}}
}}<noinclude>
{{documentation}}</noinclude>

Latest revision as of 14:19, 18 August 2026

{{{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}}}