Difference between revisions of "Template:CE"
Jump to navigation
Jump to search
Template documentation
imported>Glades12 (Added hatnote, since "CE" is frequently used as an abbreviation for copyediting) |
imported>Þjarkur (Showing "Common Era" as a tooltip when this template is not used as a link. This does not change the look, but it's maybe not as obvious as with the dotted lines of {{Hover title}}.) |
||
| Line 1: | Line 1: | ||
<!---->{{#if:{{{2|}}} | <!---->{{#if:{{{2|}}} | ||
| − | |{{{2}}} {{#switch:{{{1|}}}|link|linked=[[Common Era|CE]]|CE}}<!-- | + | |{{{2}}} {{#switch:{{{1|}}}|link|linked=[[Common Era|CE]]|<span title="Common Era">CE</span>}}<!-- |
| − | -->|{{{1<includeonly>|{{color|red|Missing parameter/s! (Template:CE)}}</includeonly>}}} CE<!-- | + | -->|{{{1<includeonly>|{{color|red|Missing parameter/s! (Template:CE)}}</includeonly>}}} <span title="Common Era">CE</span><!-- |
-->}}<noinclude> | -->}}<noinclude> | ||
Latest revision as of 01:46, 13 February 2019
{{{1}}} CE
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: 859 CE{{CE|link|1958}}produces: 1958 CE{{CE}}produces: Missing parameter/s! (Template:CE) 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. |