“Template:Season”的版本间的差异

来自Stardew Valley Wiki
跳到导航 跳到搜索
(sync with english template)
(sync with english template)
第29行: 第29行:
 
-->{{#arraydefine:$slink_text|{{ParseInputValues|code=season|@season@|translate=true}}}}<!--
 
-->{{#arraydefine:$slink_text|{{ParseInputValues|code=season|@season@|translate=true}}}}<!--
  
// On first entry, add sort-key if requested. On other entries, add space and bullet.
+
// Wrap a sort-key span around all items if requested. On other entries, add {{{space}}} or bullet.
 
-->{{#ifexpr:{{#arraysearch:$sseason|@season@}}>0
 
-->{{#ifexpr:{{#arraysearch:$sseason|@season@}}>0
    |&#32;•&#32;
+
    |{{{space|&#32;•&#32;}}}
    |{{#if:{{{sortkey|}}}|
+
    |{{#ifexpr:{{#if:{{{sortkey|}}}|1|0}} or {{#ifeq:{{{sortkey}}}||1|0}}
      <span class="sortkey" style="display:none;">{{#expr:
+
      |<span data-sort-value="{{#ifeq:{{{sortkey}}}|||{{#ifeq:{{{sortkey|true}}}|true
      {{#if:{{#arrayprint:$slink_text}}
+
      |{{#expr:{{#if:{{#arrayprint:$slink_text}}
 
        |({{ParseInputValues|code=season|@season@|translate=index}}+1)*100
 
        |({{ParseInputValues|code=season|@season@|translate=index}}+1)*100
   |0}}
+
   |0}}{{#iferror:{{#expr:{{{2|0}}}>0}}|| + {{{2|0}}}}}}}
      {{#iferror:{{#expr:{{{2|0}}}>0}}|| + {{{2|0}}}}}}}</span>
+
      |{{{sortkey|}}}}}}}">
 
   }}}}<span style="display:inline; margin-right:0; white-space: nowrap"><!--
 
   }}}}<span style="display:inline; margin-right:0; white-space: nowrap"><!--
  
第61行: 第61行:
 
     |{{#if:{{{all|}}}|{{{all|}}}|{{#arrayprint:$lang_allseasons}}}}
 
     |{{#if:{{{all|}}}|{{{all|}}}|{{#arrayprint:$lang_allseasons}}}}
 
     |{{#arrayprint:$slink_text}}}}]]<!--
 
     |{{#arrayprint:$slink_text}}}}]]<!--
-->}}}}</span>}}}}</includeonly><noinclude>{{Englishdoc}}{{#ifexist:{{FULLPAGENAME}}/doc |<nowiki/>
+
-->}}}}</span>}}<!--
 +
-->{{#ifexpr:{{#if:{{{sortkey|}}}|1|0}} or {{#ifeq:{{{sortkey}}}||1|0}}|</span>}}
 +
}}</includeonly><noinclude>{{Englishdoc}}{{#ifexist:{{FULLPAGENAME}}/doc |<nowiki/>
 
{{{{FULLPAGENAME}}/doc}} }}</noinclude>
 
{{{{FULLPAGENAME}}/doc}} }}</noinclude>

2020年10月31日 (六) 03:38的版本

有关此模板的详细信息,请参阅英语语言文档页

用法

可以通过在相关页面上输入以下内容来使用此模板。

{{Season}}

结果是... Template:ParseInputValues[[File:Template:ParseInputValues.png|

    24px | link=Template:ParseInputValues | alt=]] [[Template:ParseInputValues|Template:ParseInputValues]]