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>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(One intermediate revision by one other user not shown)
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|_}}
 
|}
 
|}
Line 33: Line 33:
 
* <!-- links to simlar of linked templates -->
 
* <!-- links to simlar of linked templates -->
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
+
<includeonly>{{Sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:Date mathematics templates|{{BASEPAGENAME}}]]
 
[[Category:Date mathematics templates|{{BASEPAGENAME}}]]
  
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 22:49, 24 April 2020

{{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 23, 2026
{{Datewarn|December|31}} Template:Month+1 31, 2027
{{Datewarn|January|30|2004|_}} Template:Month+1_29,_2004

See also