Difference between revisions of "Template:Date/doc"
Jump to navigation
Jump to search
(→Usage) |
(→Usage) |
||
Line 24: | Line 24: | ||
<pre>[[Infosphere:Anniversaries/1 January|January 1]]</pre> | <pre>[[Infosphere:Anniversaries/1 January|January 1]]</pre> | ||
; Piped link | |||
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 | ; If the page does not exist | ||
Line 46: | Line 68: | ||
: <pre>January 1</pre> | : <pre>January 1</pre> | ||
Piped link | |||
: Input: | |||
: <pre>{{date|1 January|text=the next day}}</pre> | |||
: Output: | |||
: <pre>the next day</pre> | |||
=== See also === | === See also === |
Revision as of 01:30, 7 November 2013
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