请输入您要查询的百科知识:

 

词条 Module:Leapyear/doc
释义

  1. Usage

  2. Example

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 Arguments

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}}

{{#ifeq:{{SUBPAGENAME}}|sandbox | |

}}

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/27 10:26:23