Difference between revisions of "Template:CE"

From blackwiki
Jump to navigation Jump to search
imported>Mhiji
(fix redirect)
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}}.)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
#redirect [[Template:Ce]]
+
<!---->{{#if:{{{2|}}}
 +
        |{{{2}}}&nbsp;{{#switch:{{{1|}}}|link|linked=[[Common Era|CE]]|<span title="Common Era">CE</span>}}<!--
 +
    -->|{{{1<includeonly>|{{color|red|Missing parameter/s! (Template:CE)}}</includeonly>}}}&nbsp;<span title="Common Era">CE</span><!--
 +
    -->}}<noinclude>
 +
 
 +
{{Documentation
 +
| content =
 +
{{For|the template used to tag articles for copyediting|Template:Copy edit}}
 +
A convenience{{\}}consistency template for the display of [[Common Era]] years that places the abbreviation "CE" followed by a [[non-breaking space]] (&amp;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]]
 +
}}<!--(end Documentation)-->
 +
</noinclude>

Latest revision as of 01:46, 13 February 2019

{{{1}}} CE

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 (&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

{{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.