Difference between revisions of "Template:Succession"

From CWCki
Jump to navigation Jump to search
(New page: {| style="width: 90%; max-width: 600px; height: 70px; margin: 1em auto 1em auto; border: 0.15em outset {{{5|#000}}}; background: {{{4|#eee}}}; vertical-align: centered;" | style="width: 33...)
 
m
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| style="width: 90%; max-width: 600px; height: 70px; margin: 1em auto 1em auto; border: 0.15em outset {{{5|#000}}}; background: {{{4|#eee}}}; vertical-align: centered;"
{| 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;" | ⇐ {{{2}}}
| style="width: 33%; max-width: 200px; text-align: center; color:{{{textcolor|#000}}};" | &lArr; {{{prevlink}}}<span style="color: {{{textcolor|#000}}}"></span>
| style="width: 33%; max-width: 200px; text-align: center;" | <strong>{{{1}}}</strong>
| 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;" | {{{3}}} &rArr;
| style="width: 33%; max-width: 200px; text-align: center; color:{{{textcolor|#000}}};" | {{{nextlink}}}<span style="color: {{{textcolor|#000}}}"></span> &rArr;
|}
|}
<noinclude>
<noinclude>{{Usage|1=This is a template for assisting creating succession templates.


For assisting creating succession templates. Parameters:
Parameters:
# Category label, usually a link to main page.
# label - Category label, usually a link to main page.
# Link to previous.
# prevlink - Link to previous.
# Link to next.
# nextlink - Link to next.
# Background colour code. Default <span style="color: #eee;">#eee</span>.
# bgcolor - Background color code. Default <span style="color: #eee;">#eee</span>.
# Border colour code. Default <span style="color: #000;">#000</span>
# bordercolor - Border color code. Default #000.
# textcolor - Text color code. Default #000.


You can easily create topic-specific succession box templates by copypasting this into a new template, and tweaking as necessary:
You can easily create topic-specific succession box templates by copypasting this into a new template, and tweaking as necessary:
}}
<pre>{{succession
|label = Mayors of Cwcville
|prevlink = [[BILLY MAYS]]
|nextlink = Richard Karn
|bgcolor = #ffff88
|bordercolor = #0000ff
|textcolor = #000000
}}</pre>


<nowiki>{{succession|[[Mayors of Cwcville]]|{{{1}}}|{{{2}}}|#f00|#0f0}}<noinclude>[[Category:Templates]]</noinclude></nowiki>
{{succession
|label = Mayors of Cwcville
|prevlink = [[BILLY MAYS]]
|nextlink = Richard Karn
|bgcolor = #ffff88
|bordercolor = #0000ff
|textcolor = #000000
}}


[[Category:Templates]]</noinclude>
Remember to use the template <nowiki>{{!}}</nowiki> instead of | when piping links in a template!<br/>
Also remember that the link colors will remain the same no matter what the text color is set to, so keep that in mind when choosing a background color; it'll have to look good with blue text.
}}
[[Category:Formatting and function templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 16:47, 23 December 2010

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

Usage

These usage notes will not be included in articles bearing this template.

This is a template 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 color code. Default #eee.
  5. bordercolor - Border color code. Default #000.
  6. textcolor - Text color 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 = #ffff88
|bordercolor = #0000ff
|textcolor = #000000
}}
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 colors will remain the same no matter what the text color is set to, so keep that in mind when choosing a background color; it'll have to look good with blue text. }}