Difference between revisions of "Template:Infobox terminal/check month"

From Terminals
Jump to: navigation, search
(Created page with "{{#if:{{{1|}}}|{{#switch:{{ucfirst:{{lc:{{{1}}}}}}}|January=|February=|March=|April=|May=|June=|July=|August=|September=|October=|November=|December=|#default=1}}}}")
 
m (template documentation)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#if:{{{1|}}}|{{#switch:{{ucfirst:{{lc:{{{1}}}}}}}|January=|February=|March=|April=|May=|June=|July=|August=|September=|October=|November=|December=|#default=1}}}}
+
<noinclude>
 +
== Template ==
 +
</noinclude><includeonly>{{#if:{{{1|}}}<!--
 +
-->|{{#switch:{{ucfirst:{{lc:{{{1}}}}}}}<!--
 +
  -->|January=<!--
 +
  -->|February=<!--
 +
  -->|March=<!--
 +
  -->|April=<!--
 +
  -->|May=<!--
 +
  -->|June=<!--
 +
  -->|July=<!--
 +
  -->|August=<!--
 +
  -->|September=<!--
 +
  -->|October=<!--
 +
  -->|November=<!--
 +
  -->|December=<!--
 +
  -->|#default=1<!--
 +
  -->}}<!--
 +
-->}}</includeonly><noinclude>
 +
 
 +
{{Documentation}}
 +
</noinclude>

Latest revision as of 19:08, 19 August 2012

Template

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

Checks that it's single positional argument is a valid month name. If it is valid, expands to empty, otherwise expands to 1.