Template:Chapters

From Zapbots
Revision as of 12:13, 26 February 2021 by WikiSysop (talk | contribs) (Created page with "<includeonly>{| class="tt1_chapters" style="{{#ifeq:{{{center|}}}|false||margin-left:auto;margin-right:auto;}}{{#if:{{{float|}}}|float:{{{float}}};|}}" |- class="tt1_chapters-...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

{{ #ifexist: Template:Chapters/doc |

(Transcluded documentation: view)

{{chapters}} is used to create a "Chapter Navigation" item.

{{chapters
|title=A Title
|prev=Previous (optional)
|next=Next (optional)
|center=true (optional, default is true.  centers the entire box unit)
|align=left (optional, [ left, center, right ] Default is center.  Aligns the text within the main box.)
|float=none (make sure to set "center=false" if you want to float this!)
|content=*[[List Item 1]]
*[[List Item 2]]
*[[List Item 3]]
*[[List Item 4]]
*[[List Item 5]]
}}
{{#if:|Template:Comicstory/seriesvariable|A Title}} style="text-align:{{{align}}};"|}}|

An optional parameter style=2 creates a version with a gray header that can be used when you want to list items like this, or a tan header that matches episode/comic issue info templates.

{{#if:|Template:Comicstory/seriesvariable|This uses style 1}} style="text-align:{{{align}}};"|}}|
{{#if:|Template:Comicstory/seriesvariable|This uses style 2}} style="text-align:{{{align}}};"|}}|
{{#if:|Template:Comicstory/seriesvariable|This uses style 3}} style="text-align:{{{align}}};"|}}|

|

(Transcluded documentation: create)

{{#if:|{{chapters}} is used to create a "Chapter Navigation" item.

{{chapters
|title=A Title
|prev=Previous (optional)
|next=Next (optional)
|center=true (optional, default is true.  centers the entire box unit)
|align=left (optional, [ left, center, right ] Default is center.  Aligns the text within the main box.)
|float=none (make sure to set "center=false" if you want to float this!)
|content=*[[List Item 1]]
*[[List Item 2]]
*[[List Item 3]]
*[[List Item 4]]
*[[List Item 5]]
}}
{{#if:|Template:Comicstory/seriesvariable|A Title}} style="text-align:{{{align}}};"|}}|

An optional parameter style=2 creates a version with a gray header that can be used when you want to list items like this, or a tan header that matches episode/comic issue info templates.

{{#if:|Template:Comicstory/seriesvariable|This uses style 1}} style="text-align:{{{align}}};"|}}|
{{#if:|Template:Comicstory/seriesvariable|This uses style 2}} style="text-align:{{{align}}};"|}}|
{{#if:|Template:Comicstory/seriesvariable|This uses style 3}} style="text-align:{{{align}}};"|}}|

|}}}}