Difference between revisions of "Template:Succession"
Jump to navigation
Jump to search
m |
(hoping this change will fix existing instances of this template) |
||
Line 1: | Line 1: | ||
{| style="width: 90%; max-width: 600px; height: 70px; margin: 1em auto 1em auto; border: 0.15em outset {{{bordercolor|#000}}}; background: {{{bgcolor|#eee}}}; vertical-align: centered; color:{{{textcolor|#000}}};" | {| style="width: 90%; max-width: 600px; height: 70px; margin: 1em auto 1em auto; border: 0.15em outset {{{bordercolor|#000}}}; background: {{{bgcolor|#eee}}}; vertical-align: centered; color:{{{textcolor|#000}}};" | ||
| style="width: 33%; max-width: 200px; text-align: center; color:{{{textcolor|#000}}};" | ⇐ [[{{{prevlink}}} | | style="width: 33%; max-width: 200px; text-align: center; color:{{{textcolor|#000}}};" | ⇐ [[{{{prevlink}}}<span style="color: {{{textcolor|#000}}}"></span>]] | ||
| style="width: 33%; max-width: 200px; text-align: center; color:{{{textcolor|#000}}};" | <span style="color: {{{ | | style="width: 33%; max-width: 200px; text-align: center; color:{{{textcolor|#000}}};" | <span style="color: {{{textcolor}}}"><strong>{{{label}}}</strong></span> | ||
| style="width: 33%; max-width: 200px; text-align: center; color:{{{textcolor|#000}}};" | [[{{{nextlink}}} | | style="width: 33%; max-width: 200px; text-align: center; color:{{{textcolor|#000}}};" | [[{{{nextlink}}}<span style="color: {{{textcolor|#000}}}"></span>]] ⇒ | ||
|} | |} | ||
<noinclude> | <noinclude> |
Revision as of 21:48, 9 November 2009
⇐ [[{{{prevlink}}}]] | {{{label}}} | [[{{{nextlink}}}]] ⇒ |
For assisting creating succession templates. Parameters:
- label - Category label, usually a link to main page.
- prevlink - Link to previous.
- nextlink - Link to next.
- bgcolor - Background colour code. Default #eee.
- bordercolor - Border colour code. Default #000.
- textcolor - Text colour code. Default #000.
You can easily create topic-specific succession box templates by copypasting this into a new template, and tweaking as necessary:
{{succession
|label = Mayors of Cwcville
|prevlink = BILLY MAYS
|nextlink = Richard Karn
|bgcolor = #f00
|bordercolor = #0f0
|textcolor = #00f
}}
⇐ [[BILLY MAYS]] | Mayors of Cwcville | [[Richard Karn]] ⇒ |
Remember to use the template {{!}} instead of | when piping links in a template!
Also remember that the link colours will remain the same no matter what the text colour is set to, so keep that in mind when choosing a background colour; it'll have to look good with blue text.