查看“Template:Weather inline”的源代码
←
Template:Weather inline
跳到导航
跳到搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看和复制此页面的源代码。
<includeonly><!-- // Define the list of recognized weather names // First column=icon name -> same in all languages // Second column=displayed text -> needs translation // All other values are synonyms -->{{ParseInputValues|code=weather|| ,Any, 任何, All, Always, 任意, ,Sunny, 晴天, Sun, 晴, ,Pollen fall, 风, Wind, Pollen, Polleny, Windy, 花粉, 落叶, 刮风, ,Pollen spring, 风, Wind, Springwind, ,Rain, 雨天, Rainy, 雨, ,Thunderstorm, 风暴, Storm, Stormy, 暴风雨, ,Snow, 下雪, Snowy, 雪天, }}<!-- // The name of the weather wiki page -->{{#arraydefine:$lang_weatherlink|天气}}<!-- // END OF translated text // Check whether there's already a file link in {{{1}}}... implying this is probably a recursive call. Return immediately -->{{#if:{{#pos:{{{1|}}}|{{Bracket|2}}File}}|{{{1}}}|<!-- // Parse input data, then loop over all extracted entries -->{{#arraydefine:$wweather|{{ParseInputValues|code=weather|{{{1|}}}|default=true}}}}<!-- -->{{#arrayprint:$wweather||@weather@|<!-- // Convert @weather@ (icon name) into displayed text -->{{#arraydefine:$wlink_text|{{ParseInputValues|code=weather|@weather@|translate=true}}}}<!-- // Wrap a sort-key span around all items if requested. On other entries, add {{{space}}} or bullet. -->{{#ifexpr:{{#arraysearch:$wweather|@weather@}}>0 |{{{space| • }}} |{{#ifexpr:{{#if:{{{sortkey|}}}|1|0}} or {{#ifeq:{{{sortkey}}}||1|0}} |<span data-sort-value="{{#ifeq:{{{sortkey}}}|||{{#ifeq:{{{sortkey|true}}}|true |{{#expr:{{#if:{{#arrayprint:$wlink_text}} |({{ParseInputValues|code=weather|@weather@|translate=index}}+1) |0}}}} |{{{sortkey|}}}}}}}"> }}}}<span style="display:inline; margin-right:0; white-space: nowrap"><!-- // Display unmatched text (detected by empty value for $wlink_text) // And also handle text_only option -->{{#ifeq:{{#arrayprint:$wlink_text}}| | {{ucfirst:@weather@}} | {{#if:{{{text_only|}}} | {{#if:{{{no_translate|}}}|@weather@|{{#arrayprint:$wlink_text}}}} | <!-- // Display the normal cases: first display icon (except for Any) -->{{#ifeq:@weather@|Any||[[File:@weather@.png| {{#if:{{{size|}}}|{{{size}}}px}} | link={{#arrayprint:$lang_weatherlink}}| alt=]] }}<!-- // Add link -->[[{{#arrayprint:$lang_weatherlink}}|{{#arrayprint:$wlink_text}}]]<!-- -->}}}}</span>}}<!-- -->{{#ifexpr:{{#if:{{{sortkey|}}}|1|0}} or {{#ifeq:{{{sortkey}}}||1|0}}|</span>}} }}</includeonly><noinclude>{{Englishdoc}}</noinclude>
该页面使用的模板:
Template:Englishdoc
(
查看源代码
)(受保护)
Template:Weather inline
(
查看源代码
)
返回至
Template:Weather inline
。
导航菜单
个人工具
创建账户
登录
名字空间
模板
讨论
不转换
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
台灣正體
视图
阅读
查看源代码
查看历史
更多
搜索
导航
首页
最近更改
未翻译的页面
帮助:编辑入门
随机页面
官方链接
官方网站
官方论坛
官方商品
Discord
Reddit
工具
链入页面
相关更改
上传文件
特殊页面
页面信息