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 (tweaked, added to documentation, not actually sure if the text color parameter works (it'd only really change the arrows anyway))
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 {{{5|#000}}}; background: {{{4|#eee}}}; vertical-align: centered; color:{{{6|#000}}};"
| style="width: 33%; max-width: 200px; text-align: center;" | ⇐ {{{2}}}
| style="width: 33%; max-width: 200px; text-align: center; color:{{{6|#000}}};" | ⇐ {{{2}}}
| style="width: 33%; max-width: 200px; text-align: center;" | <strong>{{{1}}}</strong>
| style="width: 33%; max-width: 200px; text-align: center; color:{{{6|#000}}};" | <strong>{{{1}}}</strong>
| style="width: 33%; max-width: 200px; text-align: center;" | {{{3}}} &rArr;
| style="width: 33%; max-width: 200px; text-align: center; color:{{{6|#000}}};" | {{{3}}} &rArr;
|}
|}
<noinclude>
<noinclude>
Line 11: Line 11:
# Link to next.
# Link to next.
# Background colour code. Default <span style="color: #eee;">#eee</span>.
# Background colour code. Default <span style="color: #eee;">#eee</span>.
# Border colour code. Default <span style="color: #000;">#000</span>
# Border colour code. Default #000.
# 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:
You can easily create topic-specific succession box templates by copypasting this into a new template, and tweaking as necessary:


<nowiki>{{succession|[[Mayors of Cwcville]]|{{{1}}}|{{{2}}}|#f00|#0f0}}<noinclude>[[Category:Templates]]</noinclude></nowiki>
<nowiki>{{succession|[[Mayors of Cwcville]]|[[BILLY MAYS]]|[[Richard Karn{{!}}Chris-chan_Discusses...]]|#f00|#0f0|#00f}}</nowiki>
 
Remember to use the template <nowiki>{{!}}</nowiki> instead of | when piping links in a template!<br/>
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>
[[Category:Templates]]</noinclude>

Revision as of 05:26, 7 November 2009

⇐ {{{2}}} {{{1}}} {{{3}}} ⇒


For assisting creating succession templates. Parameters:

  1. Category label, usually a link to main page.
  2. Link to previous.
  3. Link to next.
  4. Background colour code. Default #eee.
  5. Border colour code. Default #000.
  6. 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|[[Mayors of Cwcville]]|[[BILLY MAYS]]|[[Richard Karn{{!}}Chris-chan_Discusses...]]|#f00|#0f0|#00f}}

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.