Änderungen

Zur Navigation springen Zur Suche springen
243 Bytes hinzugefügt ,  22:46, 9. Sep. 2020
K
add sortkey option
Zeile 25: Zeile 25:  
-->{{#arraydefine:$sseason|{{ParseInputValues|{{{1|}}}|code=season|default=true}}}}<!--
 
-->{{#arraydefine:$sseason|{{ParseInputValues|{{{1|}}}|code=season|default=true}}}}<!--
 
-->{{#arrayprint:$sseason||@season@|<!--
 
-->{{#arrayprint:$sseason||@season@|<!--
// Add space and bullet if this is not first entry
  −
-->{{#ifexpr:{{#arraysearch:$sseason|@season@}}>0|&#32;•&#32;}}<!--
  −
--><span style="display:inline; margin-right:0; white-space: nowrap"><!--
      
// Convert @season@ (icon name) into translated page name
 
// Convert @season@ (icon name) into translated page name
 
-->{{#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.
 +
-->{{#ifexpr:{{#arraysearch:$sseason|@season@}}>0
 +
    |&#32;•&#32;
 +
    |{{#if:{{{sortkey|}}}|
 +
        <span class="sortkey" style="display:none;">{{#if:{{#arrayprint:$slink_text}}
 +
  |{{#expr:{{ParseInputValues|code=season|@season@|translate=index}}+1}}
 +
  |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)
 
// Display the non-icon, non-linkable cases: Deviations, and unmatched text (detected by empty link_text)
906

Bearbeitungen

Navigationsmenü