Difference between revisions of "Template:Eras/doc"

From blackwiki
Jump to navigation Jump to search
imported>Xiaphias
(created doc page)
 
imported>Xiaphias
(fix template examples to point to right place)
 
Line 3: Line 3:
 
This template formats era designations (i.e. "AD", "BC", "CE" or "BCE") in small caps, without periods, and separated from the year number with a non-breaking space per [[WP:ERA]] guidelines.  Era designations with periods (e.g. "B.C.E.") may be used as a template parameter, but the output will not contain periods.
 
This template formats era designations (i.e. "AD", "BC", "CE" or "BCE") in small caps, without periods, and separated from the year number with a non-breaking space per [[WP:ERA]] guidelines.  Era designations with periods (e.g. "B.C.E.") may be used as a template parameter, but the output will not contain periods.
 
== Usage ==
 
== Usage ==
* {{tlx|eras|215|AD}} → {{User:Xiaphias/dates|215|AD}}
+
* {{tlx|eras|215|AD}} → {{eras|215|AD}}
* {{tlx|eras|40|AD}} → {{User:Xiaphias/dates|AD|40}}
+
* {{tlx|eras|AD|40}} → {{eras|AD|40}}
* {{tlx|eras|1100|BC}} → {{User:Xiaphias/dates|1100|BC}}
+
* {{tlx|eras|1100|BC}} → {{eras|1100|BC}}
* {{tlx|eras|12|CE}} → {{User:Xiaphias/dates|12|CE}}
+
* {{tlx|eras|12|CE}} → {{eras|12|CE}}
* {{tlx|eras|215|BCE}} → {{User:Xiaphias/dates|215|BCE}}
+
* {{tlx|eras|215|BCE}} → {{eras|215|BCE}}
* {{tlx|eras|1280|B.C.E.}} → {{User:Xiaphias/dates|1280|B.C.E.}}
+
* {{tlx|eras|1280|B.C.E.}} → {{eras|1280|B.C.E.}}
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
  
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 20:05, 28 October 2014

This template formats era designations (i.e. "AD", "BC", "CE" or "BCE") in small caps, without periods, and separated from the year number with a non-breaking space per WP:ERA guidelines. Era designations with periods (e.g. "B.C.E.") may be used as a template parameter, but the output will not contain periods.

Usage