更改

跳到导航 跳到搜索
添加210字节 、 2020年10月31日 (六) 03:38
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>
906

个编辑

导航菜单