查看“Template:Season”的源代码
←
Template:Season
跳到导航
跳到搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看和复制此页面的源代码。
<includeonly><!-- // Define the allowed values, with handling for various quirks/oddities. // First column=icon name -> same in all languages // Second column=link (wiki page) name, generally same as displayed text -> needs translation // All other values are synonyms // Marriage, Deviations are for sake of NPC schedule sections (and translations) // For 'All Seasons' case, display text doesn't match icon or wiki-link, so // define default display text in $lang_allseasons, with parameter allowing any other preferred value -->{{ParseInputValues|code=season|| ,All Seasons Icon, 季节, Seasons, All, All Seasons, Any, Always, Any Season, 所有, 所有季节, 四季皆宜, ,Spring, 春季, ,Summer, 夏季, ,Fall, 秋季, Autumn, ,Winter, 冬季, ,Mermaid's Pendant, 婚后, Marriage,婚姻, ,Deviations, 调整, 偏差, }}{{#arraydefine:$lang_allseasons | 所有 }}<!-- // 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:$sseason|{{ParseInputValues|{{{1|}}}|code=season|default=true}}}}<!-- -->{{#arrayprint:$sseason||@season@|<!-- // Convert @season@ (icon name) into translated page name -->{{#arraydefine:$slink_text|{{ParseInputValues|code=season|@season@|translate=true}}}}<!-- // On first entry, add sort-key if requested. On other entries, add space and bullet. -->{{#ifexpr:{{#arraysearch:$sseason|@season@}}>0 | •  |{{#if:{{{sortkey|}}}| <span class="sortkey" style="display:none;">{{#expr: {{#if:{{#arrayprint:$slink_text}} |({{ParseInputValues|code=season|@season@|translate=index}}+1)*100 |0}} {{#iferror:{{#expr:{{{2|0}}}>0}}|| + {{{2|0}}}}}}}</span> }}}}<span style="display:inline; margin-right:0; white-space: nowrap"><!-- // Display the non-icon, non-linkable cases: Deviations, and unmatched text (detected by empty link_text) // This is also where text_only option is handled -->{{#ifeq:{{#arrayprint:$slink_text}}| | {{ucfirst:@season@}} | {{#ifexpr: {{#ifeq:@season@|Deviations|1|0}} or {{#if:{{{text_only|}}}|1|0}} | {{#if:{{{no_translate|}}} |{{#ifeq:@season@|All Seasons Icon|All|@season@}} |{{#ifeq:@season@|All Seasons Icon|{{#arrayprint:$lang_allseasons}}|{{#arrayprint:$slink_text}}}}}} |<!-- // Display the normal cases: first display icon -->[[File:@season@.png| {{#if:{{{size|}}}|{{{size}}}px|{{{width|24px}}}}} | link={{#arrayprint:$slink_text}} | alt=]] <!-- // Add day if provided -->{{#if:{{{2|}}}|{{{2}}} }}<!-- // Add link, with special treatment for text of All Seasons -->[[{{#arrayprint:$slink_text}}|<!-- -->{{#ifeq:@season@|All Seasons Icon |{{#if:{{{all|}}}|{{{all|}}}|{{#arrayprint:$lang_allseasons}}}} |{{#arrayprint:$slink_text}}}}]]<!-- -->}}}}</span>}}}}</includeonly><noinclude>{{Englishdoc}}{{#ifexist:{{FULLPAGENAME}}/doc |<nowiki/> {{{{FULLPAGENAME}}/doc}} }}</noinclude>
该页面使用的模板:
Template:Englishdoc
(
查看源代码
)(受保护)
Template:Season
(
查看源代码
)
返回至
Template:Season
。
导航菜单
个人工具
创建账户
登录
名字空间
模板
讨论
不转换
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
台灣正體
视图
阅读
查看源代码
查看历史
更多
搜索
导航
首页
最近更改
未翻译的页面
帮助:编辑入门
随机页面
官方链接
官方网站
官方论坛
官方商品
Discord
Reddit
工具
链入页面
相关更改
上传文件
特殊页面
页面信息