Jump to content

Template:Infobox chapter: Difference between revisions

From Pact Wiki
FossilLord (talk | contribs)
Created page with "<infobox> <title source="title1"> <default>{{PAGENAME}}</default> </title> <image source="image1"> <caption source="caption1"/> </image> <data source="row1">..."
 
FossilLord (talk | contribs)
No edit summary
Line 1: Line 1:
<infobox>
{| class="infobox" style="font-size:89%; width:300px;"
  <title source="title1">
|-
    <default>{{PAGENAME}}</default>
! colspan="2" style="background-color:#3366CC; color:#ffffff; font-size:120%; padding:1em;" | ''{{#if: {{{work|}}} |{{{work}}}|Pact}}''
  </title>
|- style="text-align:center;"
  <image source="image1">
| colspan="2" | ''{{{book}}} {{{number}}}''
    <caption source="caption1"/>
|- style="text-align:center;"
  </image>
|-
  <data source="row1">
{{#if: {{{image|}}} | {{{image}}} }}
    <label>Label</label>
|-
  </data>
{{#if: {{{dateposted|}}} | {{!}} '''Date posted''' {{!!}} {{{dateposted}}} }}
  <data source="row2">
|-
    <label>Label</label>
{{#if: {{{link|}}} | {{!}} '''Link''' {{!!}} {{{link}}} }}
  </data>
|-
</infobox>
| colspan="2" style="background-color:#3366CC; color:#ffffff; font-size:120%; padding:0.25em; text-align:center;" | Chapter guide
<noinclude>
|- style="text-align:center; font-size:95%;" valign="top"
Example usage:<pre>
| {{#if:{{{previous|}}}|'''Previous'''<br />{{{previous}}}}}
{{Infobox chapter
| {{#if:{{{next|}}}|'''Next'''<br />{{{next}}}}}
|title1=Example
|-
|image1=Example
| colspan="2" style="font-size:100%; padding:0.25em; text-align:center;" | {{#if: {{{work|}}} |[[{{{work}}}|Chapter List]]|[[Chapter List]]}}
|caption1=Example
|}<includeonly>[[Category:Chapters]]<noinclude><br style="clear:both;" />
|row1=Example
{{documentation}}</noinclude>
|row2=Example
}}
</pre>
</noinclude>

Revision as of 19:51, April 13, 2018

{{#if: | {{{image}}} }} {{#if: | | Date posted || {{{dateposted}}} }} {{#if: | | Link || {{{link}}} }}
{{#if: |{{{work}}}|Pact}}
{{{book}}} {{{number}}}
Chapter guide
Previous
{{{previous}}}}}
Next
{{{next}}}}}
{{#if: |[[{{{work}}}|Chapter List]]|Chapter List}}