Template:Chapters/doc: Difference between revisions
From MediaWiki
Jump to navigationJump to searchmNo edit summary |
Tigerpaw28 (talk | contribs) Adding documentation and examples for the new functionality |
||
| Line 8: | Line 8: | ||
|align=left (optional, [ left, center, right ] Default is center. Aligns the text within the main box.) | |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!) | |float=none (make sure to set "center=false" if you want to float this!) | ||
|collapsible=false (optional, set to true if you want the main box to be able to collapse to just the title) | |||
|headerbgcolor=red (optional, sets the color of the header to whatever HTML/CSS compatible color specification you want) | |||
|headertextcolor=green (optional, sets the text color of the header. If the title is a link, this will not work and the text will either be white by default or if you set style 3 it will be black.) | |||
|content=*[[List Item 1]] | |content=*[[List Item 1]] | ||
*[[List Item 2]] | *[[List Item 2]] | ||
| Line 42: | Line 45: | ||
|title=This uses style 3 | |title=This uses style 3 | ||
|style=3 | |style=3 | ||
|content=*[[List Item 1]] | |||
}} | |||
{{chapters | |||
|title=This is collapsible | |||
|collapsible=true | |||
|content=*[[List Item 1]] | |||
}} | |||
{{chapters | |||
|title=This has custom header colors | |||
|headerbgcolor=purple | |||
|headertextcolor=#FFFF00 | |||
|content=*[[List Item 1]] | |content=*[[List Item 1]] | ||
}} | }} | ||
<noinclude>[[Category: Externalized documentation]]</noinclude> | <noinclude>[[Category: Externalized documentation]]</noinclude> | ||
Revision as of 03:55, 10 October 2020
{{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!)
|collapsible=false (optional, set to true if you want the main box to be able to collapse to just the title)
|headerbgcolor=red (optional, sets the color of the header to whatever HTML/CSS compatible color specification you want)
|headertextcolor=green (optional, sets the text color of the header. If the title is a link, this will not work and the text will either be white by default or if you set style 3 it will be black.)
|content=*[[List Item 1]]
*[[List Item 2]]
*[[List Item 3]]
*[[List Item 4]]
*[[List Item 5]]
}}
| « | A Title | » | |
|---|---|---|---|
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.
| This uses style 1 | |||
|---|---|---|---|
| This uses style 2 | |||
|---|---|---|---|
| This uses style 3 | |||
|---|---|---|---|
| This is collapsible | |||
|---|---|---|---|
| This has custom header colors | |||
|---|---|---|---|

