Difference between revisions of "Template:Succession"
Jump to navigation
Jump to search
m |
(Added usage. Recategorized as formatting template.) |
||
Line 4: | Line 4: | ||
| style="width: 33%; max-width: 200px; text-align: center; color:{{{textcolor|#000}}};" | {{{nextlink}}}<span style="color: {{{textcolor|#000}}}"></span> ⇒ | | style="width: 33%; max-width: 200px; text-align: center; color:{{{textcolor|#000}}};" | {{{nextlink}}}<span style="color: {{{textcolor|#000}}}"></span> ⇒ | ||
|} | |} | ||
<noinclude> | <noinclude>{{Usage|1=This is a template for assisting creating succession templates. | ||
Parameters: | |||
# label - Category label, usually a link to main page. | # label - Category label, usually a link to main page. | ||
# prevlink - Link to previous. | # prevlink - Link to previous. | ||
Line 15: | Line 15: | ||
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 | |label = Mayors of Cwcville | ||
|prevlink = BILLY MAYS | |prevlink = [[BILLY MAYS]] | ||
|nextlink = Richard Karn | |nextlink = Richard Karn | ||
|bgcolor = # | |bgcolor = #ffff88 | ||
|bordercolor = # | |bordercolor = #0000ff | ||
|textcolor = # | |textcolor = #000000 | ||
}}</ | }}</pre> | ||
{{succession | {{succession | ||
|label = Mayors of Cwcville | |label = Mayors of Cwcville | ||
|prevlink = BILLY MAYS | |prevlink = [[BILLY MAYS]] | ||
|nextlink = Richard Karn | |nextlink = Richard Karn | ||
|bgcolor = # | |bgcolor = #ffff88 | ||
|bordercolor = # | |bordercolor = #0000ff | ||
|textcolor = # | |textcolor = #000000 | ||
}} | }} | ||
Remember to use the template <nowiki>{{!}}</nowiki> instead of | when piping links in a template!<br/> | 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. | 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: | [[Category:Formatting and function templates|{{PAGENAME}}]]</noinclude> |
Revision as of 01:02, 4 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:
- 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 = #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 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.
}}