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

 

词条 Module:YMD to ISO/doc
释义

  1. Usage

  2. Examples

  3. See also

{{NAMESPACE}}:{{BASEPAGENAME}} converts a date in YMD format (e.g. 2000 January 17) to ISO 8601 format (e.g. 2000-01-17). Any input which is not a valid DMY date is passed through unchanged. This template is designed to preprocess dates for use with the #time parser function, which is unable to convert YMD dates, and for use with templates such as {{tl|Date}} or {{tl|ISO date}} which are implemented using the #time parser function.

Usage

{{#invoke:{{BASEPAGENAME}} | main | }}

or via template:

{{{{BASEPAGENAME}} | }}

Examples

{{#invoke:{{BASEPAGENAME}} | main | 2000 January 17 }} → {{#invoke:{{BASEPAGENAME}} | main | 2000 January 17 }}

or via template:

{{{{BASEPAGENAME}} | 2000 January 17 }} → {{{{BASEPAGENAME}} | 2000 January 17 }}

For more examples, see YMD to ISO.

See also

  • YMD to ISO/testcases
  • Time function
  • {{Section link|mw:Help:Extension:ParserFunctions|#time}}

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

}}

随便看

 

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

 

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