Difference between revisions of "Template:BCE"

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
(Created template to complement {{CE}})
 
imported>Sardanaphalus
(corrected ordering)
Line 1: Line 1:
 
<!---->{{#if:{{{2|}}}
 
<!---->{{#if:{{{2|}}}
         |{{#switch:{{{1|}}}|link|linked=[[Common Era|BCE]]|BCE}}&nbsp;{{{2}}}<!--
+
         |{{{2}}}&nbsp;{{#switch:{{{1|}}}|link|linked=[[Common Era|BCE]]|BCE}}<!--
     -->|BCE&nbsp;{{{1<includeonly>|{{color|red|Missing parameter/s! (Template:BCE)}}</includeonly>}}}<!--
+
     -->|{{{1<includeonly>|{{color|red|Missing parameter/s! (Template:BCE)}}</includeonly>}}}&nbsp;BCE<!--
 
     -->}}<noinclude>
 
     -->}}<noinclude>
  

Revision as of 18:17, 6 February 2014

{{{1}}} BCE

Template documentation

A convenience / consistency template for the display of Before Common Era years that places the abbreviation "BCE" followed by a non-breaking space (&nbsp;) before a year supplied. If the first parameter supplied is "link" or "linked", the "BCE" is rendered as a link to the "Common Era" article (to which "Before Common Era" and "BCE" redirect).

Examples

{{BCE|598}} produces: 598 BCE
{{BCE|link|5189}} produces: 5189 BCE
{{BCE}} produces: Missing parameter/s! (Template:BCE) BCE

See also

  • {{CE}}, a similar template for Common Era years.