Difference between revisions of "Template:Succession"

From CWCki
Jump to navigation Jump to search
m (6 revisions)
m
Line 36: Line 36:
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.
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.


[[Category:Templates]]</noinclude><span style="color: {{{textcolour}}}"></span>
[[Category:Templates|{{PAGENAME}}]]</noinclude><span style="color: {{{textcolour}}}"></span>

Revision as of 20:17, 3 December 2010

⇐ {{{prevlink}}} {{{label}}} {{{nextlink}}}


For assisting creating succession templates. Parameters:

  1. label - Category label, usually a link to main page.
  2. prevlink - Link to previous.
  3. nextlink - Link to next.
  4. bgcolor - Background colour code. Default #eee.
  5. bordercolor - Border colour code. Default #000.
  6. 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.