Difference between revisions of "Template:Date/doc"

From The Infosphere, the Futurama Wiki
Jump to navigation Jump to search
(Created page.)
 
 
(3 intermediate revisions by the same user not shown)
Line 25: Line 25:
<pre>[[Infosphere:Anniversaries/1 January|January 1]]</pre>
<pre>[[Infosphere:Anniversaries/1 January|January 1]]</pre>


=== See also ===
; Piped link


* [[Infosphere:Templates for avoiding redirects]]
Example 1
 
: Input:
 
: <pre>{{date|1 January|text=the next day}}</pre>
 
: Output:
 
: <pre>[[Infosphere:Anniversaries/1 January|the next day]]</pre>
 
Example 2
 
: Input:
 
: <pre>{{date|January|1|text=the next day}}</pre>
 
: Output:
 
: <pre>[[Infosphere:Anniversaries/1 January|the next day]]</pre>
 
; If the page does not exist
 
Example 1
 
: Input:
 
: <pre>{{date|1 January}}</pre>
 
: Output:
 
: <pre>1 January</pre>
 
Example 2
 
: Input:
 
: <pre>{{date|January|1}}</pre>
 
: Output:
 
: <pre>January 1</pre>
 
Piped link
 
: Input:
 
: <pre>{{date|1 January|text=the next day}}</pre>
 
: Output:
 
: <pre>the next day</pre>

Latest revision as of 01:00, 26 February 2014

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