Difference between revisions of "Template:Date"

From The Infosphere, the Futurama Wiki
Jump to navigation Jump to search
(Undo revision 158022 by 188.114.110.129 (talk]) vandalism)
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#ifexist:Infosphere:Anniversaries/{{{1}}}|[[Infosphere:Anniversaries/{{{1}}}|{{{1}}}]]|{{#ifexist:Infosphere:Anniversaries/{{{2}}} {{{1}}}|[[Infosphere:Anniversaries/{{{2}}} {{{1}}}|{{{1}}} {{{2}}}]]|{{{1}}} {{{2}}}}}}}</includeonly><noinclude>{{documentation}}</noinclude>
<includeonly>{{#ifexist:Infosphere:Anniversaries/{{{1}}}|[[Infosphere:Anniversaries/{{{1}}}|{{#if:{{{text|}}}|{{{text}}}|{{{1}}}}}]]|{{#ifexist:Infosphere:Anniversaries/{{{2}}} {{{1}}}|[[Infosphere:Anniversaries/{{{2}}} {{{1}}}|{{#if:{{{text|}}}|{{{text}}}|{{{1}}} {{{2}}}}}]]|{{#if:{{{text|}}}|{{{text}}}|{{{1}}} {{{2|}}}}}}}}}</includeonly><noinclude>{{documentation}}
 
[[Category:Templates for linking‎]]</noinclude>

Latest revision as of 21:56, 11 September 2017

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