Template: Infobox Chapter: Difference between revisions

From A Wiki of Ice and Fire
Jump to: navigation, search
Mordin999 (talk | contribs)
added links
Abjiklam (talk | contribs)
added displaytitle
 
(19 intermediate revisions by 6 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 title}}}}}">{{#if:{{{title|}}}|{{{title}}}|{{{pov}}} {{Roman|{{{pov count}}}}}}}</th></tr>
{{Infobox
<tr><th colspan="2" style="text-align:center; font-weight:bold;">''[[{{{book title}}}]]'' chapter</th></tr>
| bodystyle      =
<tr><th colspan="2" style="text-align:center;">[[{{{book cover}}}|220px]]</th></tr>
| titlestyle    = | title         =  


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


<tr><th colspan="2" style="text-align:center;">Chapter chronology<small>([[Chapters#A Dance with Dragons|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  =  
book title
|  image        = {{#invoke:InfoboxImage | InfoboxImage | image={{{book cover}}} | size=220px | maxsize=300px | sizedefault=frameless | alt={{{alt|}}} | border=yes}}
book cover
| caption        = {{{caption|}}}
title
pov
page
--Chapters--
previous
current
next
--Chapters--
arc previous
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  = {{#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}}}