Template: Infobox Chapter: Difference between revisions
From A Wiki of Ice and Fire
mNo edit summary |
update for the currently used chapter naming convention |
||
| Line 1: | Line 1: | ||
<!-- This temlpate used a naming convention that hasnt been adopted as of yet. (only in aDwD chapters and it, has it's own template) | |||
here is the old temlpate, in case it will: | |||
=============================================== | |||
<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 title}}}}}">{{#if:{{{title|}}}|{{{title}}}||{{{pov}}} {{Roman|{{{pov count}}}}}}}</th></tr> | <tr><th colspan="2" style="text-align:center; font-size:125%; font-weight:bold; background-color:{{Work color|{{{book title}}}}}">{{#if:{{{title|<noinclude>title</noinclude>}}}|{{{title}}}||{{{pov}}} {{Roman|{{{pov count}}}}}}}</th></tr> | ||
<tr><th colspan="2" style="text-align:center; font-weight:bold;">''[[{{{book title}}}]]'' chapter</th></tr> | <tr><th colspan="2" style="text-align:center; font-weight:bold;">''[[{{{book title}}}]]'' chapter</th></tr> | ||
<tr><th colspan="2" style="text-align:center;">[[{{{book cover}}}|220px]]</th></tr> | <tr><th colspan="2" style="text-align:center;">[[{{{book cover}}}|220px]]</th></tr> | ||
| Line 11: | Line 15: | ||
{{#if:{{{arc previous|}}}{{#ifexist:{{{pov}}} {{Roman|{{#expr:{{{pov count}}}-1}}}} ({{{book title}}})|1}}| | {{#if:{{{arc previous|}}}{{#ifexist:{{{pov}}} {{Roman|{{#expr:{{{pov count}}}-1}}}} ({{{book title}}})|1}}| | ||
<tr> | <tr> | ||
<td style="width: 33%; padding: 0.2em 0.1em 0.2em 0" colspan="3">[[{{#if:{{{arc previous|}}}|{{{arc previous}}}|{{{pov}}} {{Roman|{{#expr:{{{pov count}}}-1}}}}}} ({{{book title}}})|{{#if:{{{arc previous|}}}|{{{arc previous}}}|{{{pov}}} {{Roman|{{#expr:{{{pov count}}}-1}}}}}}]]<br> | <td style="width: 33%; padding: 0.2em 0.1em 0.2em 0" colspan="3">[[{{#if:{{{arc previous|}}}|{{{arc previous}}}|{{{pov}}} {{Roman|{{#expr:{{{pov count}}}-1}}}}}} ({{{book title}}})|{{#if:{{{arc previous|}}}|{{{arc previous}}}|{{{pov}}} {{Roman|{{#expr:{{{pov count}}}-1}}}}}}]]<br>?</td> | ||
</tr> | </tr> | ||
}} | }} | ||
<tr> | <tr> | ||
<td style="width: 33%; padding: 0.2em 0.1em 0.2em 0">{{#if:{{{previous|}}}|[[{{{previous}}} ({{{book title}}})|{{{previous}}}]] | <td style="width: 33%; padding: 0.2em 0.1em 0.2em 0">{{#if:{{{previous|}}}|[[{{{previous}}} ({{{book title}}})|{{{previous}}}]] ?}}</td> | ||
<td style="width: 33%; padding: 0.2em 0.1em 0.2em 0">[[{{#if:{{{title|}}}|{{{title}}}|{{{pov}}} {{Roman|{{{pov count}}}}}}} ({{{book title}}})|{{#if:{{{title|}}}|{{{title}}}|{{{pov}}} {{Roman|{{{pov count}}}}}}}]]</td> | <td style="width: 33%; padding: 0.2em 0.1em 0.2em 0">[[{{#if:{{{title|}}}|{{{title}}}|{{{pov}}} {{Roman|{{{pov count}}}}}}} ({{{book title}}})|{{#if:{{{title|}}}|{{{title}}}|{{{pov}}} {{Roman|{{{pov count}}}}}}}]]</td> | ||
<td style="width: 33%; padding: 0.2em 0.1em 0.2em 0">{{#if:{{{next|}}}| | <td style="width: 33%; padding: 0.2em 0.1em 0.2em 0">{{#if:{{{next|}}}|? [[{{{next}}} ({{{book title}}})|{{{next}}}]]}}</td> | ||
</tr> | </tr> | ||
{{#if:{{{arc next|}}}{{#ifexist:{{{pov}}} {{Roman|{{#expr:{{{pov count}}}+1}}}} ({{{book title}}})|1}}| | {{#if:{{{arc next|}}}{{#ifexist:{{{pov}}} {{Roman|{{#expr:{{{pov count}}}+1}}}} ({{{book title}}})|1}}| | ||
<tr> | <tr> | ||
<td style="width: 33%; padding: 0.2em 0.1em 0.2em 0" colspan="3"> | <td style="width: 33%; padding: 0.2em 0.1em 0.2em 0" colspan="3">?<br>[[{{#if:{{{arc next|}}}|{{{arc next}}}|{{{pov}}} {{Roman|{{#expr:{{{pov count}}}+1}}}}}} ({{{book title}}})|{{#if:{{{arc next|}}}|{{{arc next}}}|{{{pov}}} {{Roman|{{#expr:{{{pov count}}}+1}}}}}}]]</td> | ||
</tr> | |||
}} | |||
</table></th></tr> | |||
============new template ==========--> | |||
<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 title}}}}}">{{#if:{{{title|}}}|{{{title}}}|{{{pov}}} {{Roman|{{{pov count}}}}}}}</th></tr> | |||
<tr><th colspan="2" style="text-align:center; font-weight:bold;">''[[{{{book title}}}]]'' chapter</th></tr> | |||
<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>}} | |||
{{#if:{{{page|<noinclude>pov</noinclude>}}}| | |||
<tr><th>Page</th><td>{{{page|}}}<small>(Bantam HC)</small></td></tr>}} | |||
<tr><th colspan="2" style="text-align:center;">Chapter chronology</th></tr> | |||
<tr><th colspan="2"><table style="width:100%; background: transparent; text-align: center; font-size: 88%; line-height: 1.4em; vertical-align: top"> | |||
{{#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>}}}</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">{{{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> | </tr> | ||
}} | }} | ||
| Line 27: | Line 60: | ||
</table><noinclude> | </table><noinclude> | ||
Meta template. Don't use it directly. | |||
==Usage== | |||
<pre> | |||
book title | |||
book cover | |||
title | |||
--Chapters-- | |||
previous | |||
current | |||
next | |||
--Chapters-- | |||
arc previous | |||
arc next | |||
</pre> | |||
[[Category:Infobox templates|Chapter]]</noinclude> | [[Category:Infobox templates|Chapter]]</noinclude> | ||
Revision as of 03:28, 14 September 2011
| {{{pov}}} | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| [[{{{book title}}}]] chapter | ||||||||||
| [[{{{book cover}}}|220px]] | ||||||||||
| POV | {{{pov}}} | |||||||||
| Page | (Bantam HC) | |||||||||
| Chapter chronology | ||||||||||
| ||||||||||
Meta template. Don't use it directly.
Usage
book title book cover title --Chapters-- previous current next --Chapters-- arc previous arc next