Vorlage:Season: Unterschied zwischen den Versionen

Aus Stardew Valley Wiki
Zur Navigation springen Zur Suche springen
(new format for list of allowed values)
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)

Version vom 9. September 2020, 22:46 Uhr

Details zur Vorlage finden Sie auf der englischsprachigen Dokumentationsseite.

Verwendung

Diese Vorlage kann verwendet werden, indem Sie auf eine relevante Seite folgendes eingeben.

{{Season}}

Ergibt... Vorlage:ParseInputValues[[File:Vorlage:ParseInputValues.png|

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