打开/关闭搜索
搜索
打开/关闭菜单
331
1.7K
131
11.8K
星露谷物语扩展百科
导航
首页
最近更改
随机页面
交流群
互通站
上传文件
打开/关闭外观设置菜单
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
创建账号
登录
查看“︁模板:Weather inline”︁的源代码
来自星露谷物语扩展百科
更多语言
查看
阅读
查看源代码
查看历史
associated-pages
模板
讨论
更多操作
←
模板: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, 雪天, ,Festival, 节日 }}<!-- // 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>
该页面嵌入的页面:
模板:Documentation
(
查看源代码
)
模板:Documentation header
(
查看源代码
)
模板:Weather inline
(
查看源代码
)
模板:Weather inline/doc
(
查看源代码
)
模块:Documentation
(
查看源代码
)
模块:Documentation/styles.css
(
查看源代码
)
模块:ProcessArgs
(
查看源代码
)
模块:STConversion
(
查看源代码
)
模块:Static
(
查看源代码
)
模块:TSLoader
(
查看源代码
)
返回
模板:Weather inline
。
查看“︁模板:Weather inline”︁的源代码
来自星露谷物语扩展百科