Difference between revisions of "Template:CE"
Jump to navigation
Jump to search
imported>Mhiji (fix redirect) |
imported>Sardanaphalus (Converted into Common Era template) |
||
| Line 1: | Line 1: | ||
| − | # | + | <!---->{{#if:{{{2|}}} |
| + | |{{#switch:{{{1|}}}|link|linked=[[Common Era|CE]]|CE}} {{{2}}}<!-- | ||
| + | -->|CE {{{1<includeonly>|{{color|red|Missing parameter/s! (Template:CE)}}</includeonly>}}}<!-- | ||
| + | -->}}<noinclude> | ||
| + | |||
| + | {{documentation | ||
| + | |content = | ||
| + | A convenience{{\}}consistency template for the display of [[Common Era]] years that places the abbreviation "CE" followed by a [[non-breaking space]] (&nbsp;) before a year supplied. If the first parameter supplied is "link" or "linked", the "CE" is rendered as a link to the "Common Era" article. | ||
| + | |||
| + | == Examples == | ||
| + | : <code><nowiki>{{CE|859}}</nowiki></code> produces: {{CE|859}} | ||
| + | : <code><nowiki>{{CE|link|1958}}</nowiki></code> produces: {{CE|link|1958}} | ||
| + | : <code><nowiki>{{CE}}</nowiki><code> produces: {{CE}} | ||
| + | |||
| + | == See also == | ||
| + | * {{tl|BCE}}, a similar template for Before Common Era years. | ||
| + | |||
| + | [[Category:Time, date and calendar templates]] | ||
| + | [[Category:Wikipedia formatting and function templates]] | ||
| + | }} | ||
| + | </noinclude> | ||
Revision as of 18:10, 6 February 2014
CE {{{1}}}
50px Template documentation
A convenience / consistency template for the display of Common Era years that places the abbreviation "CE" followed by a non-breaking space ( ) before a year supplied. If the first parameter supplied is "link" or "linked", the "CE" is rendered as a link to the "Common Era" article.
Examples
{{CE|859}}produces: CE 859{{CE|link|1958}}produces: CE 1958{{CE}}produces: CE Missing parameter/s! (Template:CE)
See also
- {{BCE}}, a similar template for Before Common Era years.
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |