Template:D

From Gineipaedia, the Legend of Galactic Heroes wiki

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
-
<includeonly>
+
<includeonly>{{#if:{{{2|}}}|{{#lc:{{{2|}}}}}|{{{1}}}}}</includeonly>
-
{{#if:{{{2|}}}|{{#ifeq: {{#lc:{{{2|}}}}} | rc | {{#lc:{{{2|}}}}} | }}|{{{1}}}}}
+
-
</includeonly>
+
<noinclude>{{documentation}}</noinclude>
<noinclude>{{documentation}}</noinclude>

Revision as of 05:53, 7 January 2011

The following documentation is transcluded from Template:D/doc:

Description
Template for producing in-universe dates. Currently creates a 'tool tip'-like annotation upon mouse-over, which lists conversions from the original calendar format to the other formats.
Syntax
{{d|<numerical year>|<calendar format — nrc/rc/uc/ce>}}
Sample output
{{d|490|rc}} produces: 490 IC (1 NIC / 799 UC / 3599 CE)
{{d|296|uc}} produces: 296 UC (3096 CE)
Notes
Since the code for this template is somewhat complex, a formatted version has been made available at D/formatted. Please follow the instructions there, and make sure the two versions stay in synch.
Acknowledgements
n/a
Personal tools
Namespaces
Variants
Actions
Miscellany
Common
Tool box