Difference between revisions of "Template:Fdate/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zfish118
(Created page with '{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> ==...')
 
imported>Zfish118
Line 6: Line 6:
 
Example:
 
Example:
 
* "<nowiki>{{fdate|July-4-015}}</nowiki>" renders as: "{{fdate|July-4-2015}}"
 
* "<nowiki>{{fdate|July-4-015}}</nowiki>" renders as: "{{fdate|July-4-2015}}"
* "<noinclude>{{fdate|}}</noinclude>" yields: "{{fdate|}}"
+
* "<nowiki>{{fdate|}}</nowiki>" yields: "{{fdate|}}"
  
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |

Revision as of 22:26, 13 July 2015

Usage

If a date is input as the first parameter, the template will format that date (use the second parameter to specify an output format - see template:date). If no date in input, the template will return nothing.

Example:

  • "{{fdate|July-4-015}}" renders as: "July 2026"
  • "{{fdate|}}" yields: ""