m (not named param)
m (whoop)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
''({{#if:{{{1|}}}|{{{1}}}|Date?<includeonly>{{#switch:{{NAMESPACE}}|User=|User talk=|Scratch Wiki talk=|Talk=|Special=|MediaWiki=|MediaWiki talk=|#default={{#if:{{PROTECTIONLEVEL:edit}}||[[Category:Pages with Dateless Templates]]}}}}</includeonly>}})''<noinclude>{{/doc}}[[Category:Meta Templates]]</noinclude>
+
{{#switch:{{{2}}}
 +
|dateOnly={{#if:{{{1|}}}|{{{1}}}|Date?}}
 +
|catOnly={{#if:{{{1|}}}||{{#switch:{{NAMESPACE}}|User=|User talk=|Scratch Wiki talk=|Talk=|Special=|MediaWiki=|MediaWiki talk=|#default={{#if:{{PROTECTIONLEVEL:edit}}||[[Category:Pages with Dateless Templates]]}}}}}}
 +
|#default=''({{#if:{{{1|}}}|{{{1}}}|Date?<includeonly>{{#switch:{{NAMESPACE}}|User=|User talk=|Scratch Wiki talk=|Talk=|Special=|MediaWiki=|MediaWiki talk=|#default={{#if:{{PROTECTIONLEVEL:edit}}||[[Category:Pages with Dateless Templates]]}}}}</includeonly>}})''}}<noinclude>{{/doc}}[[Category:Meta Templates]]</noinclude>

Latest revision as of 04:32, 29 November 2017

(Date?)

[edit] [history] [purge] Documentation Template documentation

This documentation is transcluded from Template:Check date/doc.

This meta-template accepts one parameter. If the parameter is empty, it produces the text "Date?" and adds it to Category:Pages with Dateless Templates; otherwise, it echoes the parameter back.

It is used in templates with dates to display the date that the template was added.