Module:Leapyear/doc

From blackwiki
< Module:Leapyear
Revision as of 14:49, 13 August 2018 by blackwiki>BrandonXLF (→‎Example)
Jump to navigation Jump to search

This is the documentation page for Module:Leapyear

Usage

{{#invoke:Leapyear|main}}

By default returns 1 if it's a leap year and nothing it 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 local mLeapyear = require('Module:Leapyear')._main when using in a template that already uses Module:Arguments

Example

0 [[:Template:Nowiki]]

no [[:Template:Nowiki]] |yes |no

no [[:Template:Nowiki]] |1 |0