Difference between revisions of "Template:Datewarn/doc"

From blackwiki
Jump to navigation Jump to search
imported>Mr. Stradivarius
(use BASEPAGENAME instead of PAGENAME to avoid template loops)
imported>WOSlinker
(tidy style)
Line 17: Line 17:
 
| '''Result'''
 
| '''Result'''
 
|-
 
|-
| valign="top" | <code>{&#123;{{BASEPAGENAME}}&#125;}</code>
+
| style="vertical-align:top;" | <code>{&#123;{{BASEPAGENAME}}&#125;}</code>
 
| {{msg:{{BASEPAGENAME}}}}
 
| {{msg:{{BASEPAGENAME}}}}
 
|-
 
|-
| valign="top" | <code>{&#123;{{BASEPAGENAME}}&#124;December|31&#125;}</code>
+
| style="vertical-align:top;" | <code>{&#123;{{BASEPAGENAME}}&#124;December|31&#125;}</code>
 
| {{msg:{{BASEPAGENAME}}|December|31}}
 
| {{msg:{{BASEPAGENAME}}|December|31}}
 
|-
 
|-
| valign="top" | <code>{&#123;{{BASEPAGENAME}}&#124;January|30|2004|_&#125;}</code>
+
| style="vertical-align:top;" | <code>{&#123;{{BASEPAGENAME}}&#124;January|30|2004|_&#125;}</code>
 
| {{msg:{{BASEPAGENAME}}|January|30|2004|_}}
 
| {{msg:{{BASEPAGENAME}}|January|30|2004|_}}
 
|}
 
|}

Revision as of 08:03, 18 November 2014

{{datewarn}} increases a date by one month

Usage

{{Datewarn}} - displays a date one month after the current date

{{Datewarn|monthname|day|year|spacingchar}} - displays a date one month after the specified date

Example

Code Result
{{Datewarn}} Template:Month+1 21, 2026
{{Datewarn|December|31}} Template:Month+1 31, 2027
{{Datewarn|January|30|2004|_}} Template:Month+1_29,_2004

See also