词条 | Module:Leapyear/doc |
释义 |
UsageBy 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 Use Example{{#invoke:leapyear|main}}{{code|{{#invoke:leapyear|main}}}}{{#invoke:leapyear|main|yes|no}}{{code|{{#invoke:leapyear|main|yes|no}}}} {{para||yes}} {{para||no}}{{#invoke:leapyear|main|blank|0}}{{code|{{#invoke:leapyear|main|blank|0}}}} {{para||blank}} {{para||0}}{{#invoke:leapyear|main|1|blank}}{{code|{{#invoke:leapyear|main|1|blank}}}} {{para||1}} {{para||blank}}}} |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。