Difference between revisions of "Template:Baseball year"
Jump to navigation
Jump to search
imported>WOSlinker m (Changed protection level of Template:Baseball year: allow template editors to modify ([Edit=Protected template] (indefinite) [Move=Protected template] (indefinite))) |
imported>WOSlinker (add color option) |
||
Line 1: | Line 1: | ||
− | [[{{{1}}} in baseball|{{{1}}}]]<noinclude> | + | {{#if:{{{color|}}}|[[{{{1}}} in baseball|<span style="color:{{{color}}};">{{{1}}}</span>]]|[[{{{1}}} in baseball|{{{1}}}]]}}<noinclude> |
{{Documentation}} | {{Documentation}} | ||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> |
Latest revision as of 12:58, 30 April 2015
[[{{{1}}} in baseball|{{{1}}}]]
Usage
Use this template to link to "This year in baseball" articles from a particular year. For example, {{Baseball year|1998}}
or {{by|1998}}
will create the following link: 1998.
There is an optional color param to set the text color: {{Baseball year|1998|color=purple}}
or {{by|1998|color=purple}}
will create the following link: 1998.
This template should not ordinarily be used in prose text. Such use is contrary to WP:EGG, and is likely to confuse readers. Instead, limit its use to tables, infoboxes, navboxes, and similar uses, where it is clear from the context that the link is to a particular year in baseball.
See also
The above documentation is transcluded from Template:Baseball year/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |