Difference between revisions of "Template:IfSaturday"

From Geohashing
m (SIGSTKFLT moved page Template:IsSaturday to Template:IfSaturday: clearer title on suggestion of tparenti)
(add {{intricate}})
 
Line 6: Line 6:
 
<code>&#123;{IsSaturday|y|n|date=2020-03-07}}</code> &rarr; {{IsSaturday|y|n|date=2020-03-07}} <br>
 
<code>&#123;{IsSaturday|y|n|date=2020-03-07}}</code> &rarr; {{IsSaturday|y|n|date=2020-03-07}} <br>
 
<code>&#123;{IsSaturday|y|n|date=aspoidmapi}}</code> &rarr; {{IsSaturday|y|n|date=aspoidmapi}}
 
<code>&#123;{IsSaturday|y|n|date=aspoidmapi}}</code> &rarr; {{IsSaturday|y|n|date=aspoidmapi}}
 +
 +
{{intricate}}
 
</noinclude>
 
</noinclude>

Latest revision as of 21:16, 6 March 2020

Based on the date argument (or the current date if not specified), returns argument 1 if it is saturday, argument 2 otherwise.

{{IsSaturday|y|n}} → n (as of this writing)
{{IsSaturday|y|n|date=2020-03-06}} → n
{{IsSaturday|y|n|date=2020-03-07}} → y
{{IsSaturday|y|n|date=aspoidmapi}}Expression error: Unexpected < operator.