Module:Leapyear/doc
Jump to navigation
Jump to search
This is the documentation page for Module:Leapyear
Template:Template for discussion/dated
Usage
By default returns 1 if it's a leap year and 0 when it isn't if unnamed parameter 1 is defined it returns that when it is a leap-year and if unnamed parameter 2 is defined it returns it when it's not a leap year. Use blank to return nothing.
Use local mLeapyear = require('Module:Leapyear')._main when using in a module that already uses Module:Arguments
Example
0
{{#invoke:leapyear|main}}
no
{{#invoke:leapyear|main|yes|no}} |yes |no
0
{{#invoke:leapyear|main|blank|0}} |blank |0
{{#invoke:leapyear|main|1|blank}} |1 |blank