Template: Infobox Chapter: Difference between revisions

From A Wiki of Ice and Fire
Jump to: navigation, search
Anguy the Archer (talk | contribs)
No edit summary
Anguy the Archer (talk | contribs)
Generalization from template:Infobox Chapter ADwD
Line 1: Line 1:
<table class="infobox" style="width: 20em; text-align: left">
<table class="infobox" style="width: 20em; text-align: left">
<tr><th colspan="2" style="text-align:center; font-size:125%; font-weight:bold; background-color:{{work color|{{{book}}}}}">{{#switch:{{{book|AGoT}}}
<tr><th colspan="2" style="text-align:center; font-size:125%; font-weight:bold; background-color:{{Work color|{{{book title}}}}}">{{{title|{{{pov}}} {{Roman|{{{pov count}}}}}}}}</th></tr>
| AGoT = A Game of Thrones
<tr><th colspan="2" style="text-align:center; font-weight:bold;">''[[{{{book title}}}]]'' chapter</th></tr>
| ACoK = A Clash of Kings
<tr><th colspan="2" style="text-align:center;">[[{{{book cover}}}|220px]]</th></tr>
| ASoS = A Storm of Swords
 
| AFfC = A Feast for Crows
<tr><th>POV</th><td>[[{{{pov pagename|{{POV to pagename|{{{pov}}}}}}}}]]</td></tr>
| ADwD = A Dance with Dragons
<tr><th>Page</th><td>{{#if:{{{bantam hc page|}}}|{{{bantam hc page}}} <small>(Bantam HC)</small>}}</td></tr>
}}</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>
<tr><th colspan="2" style="text-align:center;">Chapter chronology</th></tr>
<tr><th colspan="2"><table>
<tr><th colspan="2"><table style="width:100%; background: transparent; text-align: center; font-size: 88%; line-height: 1.4em; vertical-align: top">
{{{!}} style="width:100%; background: transparent; text-align: center; font-size: 88%; line-height: 1.4em; vertical-align: top"
{{#if:{{{arc previous|{{#ifexist:{{{pov}}} {{Roman|{{#expr:{{{pov count}}}-1}}}} ({{{book title}}})|1}}}}}|
{{!}} style="width: 33%; padding: 0.2em 0.1em 0.2em 0" {{!}} {{#ifexist:Template:Chapter info/{{{book}}}/{{#expr:{{{chapter}}}-1}} | {{Chapter info/{{{book}}}/{{#expr:{{{chapter}}}-1}}|Chapter info/Link}} }}
  <tr>
{{!}} style="width: 33%; padding: 0.2em 0.1em 0.2em 0.1em" {{!}} {{Chapter info/{{{book}}}/{{{chapter}}}|Chapter info/Link}}
    <td style="width: 33%; padding: 0.2em 0.1em 0.2em 0" colspan="3">[[{{{arc previous|{{{pov}}} {{Roman|{{#expr:{{{pov count}}}-1}}}}}}} ({{{book title}}})|{{{arc previous|{{{pov}}} {{Roman|{{#expr:{{{pov count}}}-1}}}}}}}]]<br>↑</td>
{{!}} style="width: 33%; padding: 0.2em 0 0.2em 0.1em" {{!}} {{#ifexist:Template:Chapter info/{{{book}}}/{{#expr:{{{chapter}}}-1}} | {{Chapter info/{{{book}}}/{{#expr:{{{chapter}}}+1}}|Chapter info/Link}} }}
  </tr>
{{!}}}
}}
  <tr>
    <td style="width: 33%; padding: 0.2em 0.1em 0.2em 0">{{#if:{{{previous|}}}|[[{{{previous}}} ({{{book title}}})|{{{previous}}}]]&nbsp;←}}</td>
    <td style="width: 33%; padding: 0.2em 0.1em 0.2em 0">[[{{{title|{{{pov}}} {{Roman|{{{pov count}}}}}}}} ({{{book title}}})|{{{title|{{{pov}}} {{Roman|{{{pov count}}}}}}}}]]</td>
    <td style="width: 33%; padding: 0.2em 0.1em 0.2em 0">{{#if:{{{next|}}}|→&nbsp;[[{{{next}}} ({{{book title}}})|{{{next}}}]]}}</td>
  </tr>
{{#if:{{{arc next|{{#ifexist:{{{pov}}} {{Roman|{{#expr:{{{pov count}}}+1}}}} ({{{book title}}})|1}}}}}|
  <tr>
    <td style="width: 33%; padding: 0.2em 0.1em 0.2em 0" colspan="3">↓<br>[[{{{arc next|{{{pov}}} {{Roman|{{#expr:{{{pov count}}}+1}}}}}}} ({{{book title}}})|{{{arc next|{{{pov}}} {{Roman|{{#expr:{{{pov count}}}+1}}}}}}}]]</td>
  </tr>
}}
</table></th></tr>
</table></th></tr>


</table><noinclude>
</table><noinclude>


Template for use in POV chapter articles of the ''A Song of Ice and Fire'' series.
Meta template. Don't use it directly.
 
==Usage==
 
<pre style="width:50em">
{{Infobox Chapter
| book    = <!-- AGoT, ACoK, ASoS, AFfC, ADwD, ... -->
| chapter = <!-- Chapter number. Use 0 for for a prologue. -->
}}
</pre>


</noinclude>
</noinclude>

Revision as of 16:50, 20 July 2011

{{{pov}}}
[[{{{book title}}}]] chapter
[[{{{book cover}}}|220px]]
POV[[ ]]
Page
Chapter chronology
[[{{{pov}}} ({{{book title}}})|{{{pov}}} ]]

Meta template. Don't use it directly.