Difference between revisions of "Template:Eras/doc"
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}} → {{ | + | * {{tlx|eras|215|AD}} → {{eras|215|AD}} |
| − | * {{tlx|eras|40 | + | * {{tlx|eras|AD|40}} → {{eras|AD|40}} |
| − | * {{tlx|eras|1100|BC}} → {{ | + | * {{tlx|eras|1100|BC}} → {{eras|1100|BC}} |
| − | * {{tlx|eras|12|CE}} → {{ | + | * {{tlx|eras|12|CE}} → {{eras|12|CE}} |
| − | * {{tlx|eras|215|BCE}} → {{ | + | * {{tlx|eras|215|BCE}} → {{eras|215|BCE}} |
| − | * {{tlx|eras|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 is a documentation subpage for Template:Eras. It contains usage information, categories and other content that is not part of the original template page. |
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
{{eras|215|AD}}→ 215Template:SpaceAD{{eras|AD|40}}→ ADTemplate:Space40{{eras|1100|BC}}→ 1100Template:SpaceBC{{eras|12|CE}}→ 12Template:SpaceCE{{eras|215|BCE}}→ 215Template:SpaceBCE{{eras|1280|B.C.E.}}→ 1280Template:SpaceBCE