Difference between revisions of "Template:Datewarn/doc"
Jump to navigation
Jump to search
imported>Mr. Stradivarius (move docs from Template:Datewarn) |
imported>Mr. Stradivarius (use BASEPAGENAME instead of PAGENAME to avoid template loops) |
||
| Line 2: | Line 2: | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
| − | <code>{{[[Template:{{ | + | <code>{{[[Template:{{BASEPAGENAME}}|{{lcfirst:{{BASEPAGENAME}}}}]]}}</code> increases a date by one month |
== Usage == | == Usage == | ||
<!-- Abstract usage of the template --> | <!-- Abstract usage of the template --> | ||
| − | <code>{{{{ | + | <code>{{{{BASEPAGENAME}}}}</code> - displays a date one month after the current date |
| − | <code>{{{{ | + | <code>{{{{BASEPAGENAME}}|monthname|day|year|spacingchar}}</code> - displays a date one month after the specified date |
== Example == | == Example == | ||
| Line 17: | Line 17: | ||
| '''Result''' | | '''Result''' | ||
|- | |- | ||
| − | | valign="top" | <code>{{{{ | + | | valign="top" | <code>{{{{BASEPAGENAME}}}}</code> |
| − | | {{msg:{{ | + | | {{msg:{{BASEPAGENAME}}}} |
|- | |- | ||
| − | | valign="top" | <code>{{{{ | + | | valign="top" | <code>{{{{BASEPAGENAME}}|December|31}}</code> |
| − | | {{msg:{{ | + | | {{msg:{{BASEPAGENAME}}|December|31}} |
|- | |- | ||
| − | | valign="top" | <code>{{{{ | + | | valign="top" | <code>{{{{BASEPAGENAME}}|January|30|2004|_}}</code> |
| − | | {{msg:{{ | + | | {{msg:{{BASEPAGENAME}}|January|30|2004|_}} |
|} | |} | ||
| Line 30: | Line 30: | ||
<!-- self-listing for quick access on edit history --> | <!-- self-listing for quick access on edit history --> | ||
| − | * {{Lts|{{ | + | * {{Lts|{{BASEPAGENAME}}}} |
* <!-- links to simlar of linked templates --> | * <!-- links to simlar of linked templates --> | ||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | ||
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
| − | [[Category:Date mathematics templates|{{ | + | [[Category:Date mathematics templates|{{BASEPAGENAME}}]] |
}}</includeonly> | }}</includeonly> | ||
Revision as of 03:59, 1 November 2014
| 40px | This is a documentation subpage for Template:Datewarn. It contains usage information, categories and other content that is not part of the original template page. |
{{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 22, 2026 |
{{Datewarn|December|31}}
|
Template:Month+1 31, 2027 |
{{Datewarn|January|30|2004|_}}
|
Template:Month+1_29,_2004 |
See also