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.
 
Anguy the Archer (talk | contribs)
No edit summary
Line 9: Line 9:
<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; 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"
{{!}} 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" {{!}} {{#ifexist:Template: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.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}} }}
{{!}} 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}} }}
{{!}}}
{{!}}}
</table></th></tr>
</table></th></tr>

Revision as of 23:25, 18 June 2011

A Game of Thrones
{{Chapter info/{{{book}}}/{{{chapter}}}|Chapter info/Title}}
Chapter chronology
{{Chapter info/{{{book}}}/{{{chapter}}}|Chapter info/Link}}

Template for use in POV chapter articles of the A Song of Ice and Fire series.

Usage

{{Infobox Chapter
| book    = <!-- AGoT, ACoK, ASoS, AFfC, ADwD, ... -->
| chapter = <!-- Chapter number. Use 0 for for a prologue. -->
}}