Difference between revisions of "Template:Date"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<includeonly>{{#ifexist:Infosphere:Anniversaries/{{{1}}}|[[Infosphere:Anniversaries/{{{1 | <includeonly>{{#ifexist:Infosphere:Anniversaries/{{{1}}}|[[Infosphere:Anniversaries/{{{1}}}|{{{1}}}]]|{{#ifexist:Infosphere:Anniversaries/{{{2}}} {{{1}}}|[[Infosphere:Anniversaries/{{{2}}} {{{1}}}|{{#if:{{{text|}}}|{{{text}}}|{{{1}}} {{{2}}}}}]]|{{#if:{{{text|}}}|{{{text}}}|{{{1}}} {{{2|}}}}}}}}}</includeonly><noinclude>{{documentation}}</noinclude> |
Revision as of 01:36, 7 November 2013
Documentation for {{date}}
Use
For linking to date pages.
Usage
- Example 1
Input:
{{date|1 January}}
Output:
[[Infosphere:Anniversaries/1 January|1 January]]
- Example 2
Input:
{{date|January|1}}
Output:
[[Infosphere:Anniversaries/1 January|January 1]]
- Piped link
Example 1
- Input:
{{date|1 January|text=the next day}}
- Output:
[[Infosphere:Anniversaries/1 January|the next day]]
Example 2
- Input:
{{date|January|1|text=the next day}}
- Output:
[[Infosphere:Anniversaries/1 January|the next day]]
- If the page does not exist
Example 1
- Input:
{{date|1 January}}
- Output:
1 January
Example 2
- Input:
{{date|January|1}}
- Output:
January 1
Piped link
- Input:
{{date|1 January|text=the next day}}
- Output:
the next day