Vorlage:Season: Unterschied zwischen den Versionen

Aus Stardew Valley Wiki
Zur Navigation springen Zur Suche springen
(better fix for recursive calls)
(sync with english template)
Zeile 13: Zeile 13:
  
 
// Check whether there's already a file link in {{{1}}}... implying this is probably a recursive call.  Return immediately
 
// Check whether there's already a file link in {{{1}}}... implying this is probably a recursive call.  Return immediately
-->{{#if:{{#pos:{{{1|}}}|<nowiki>[[File</nowiki>}}|{{{1}}}|<!--
+
-->{{#if:{{#pos:{{{1|}}}|{{Bracket|2}}File}}|{{{1}}}|<!--
 
// Parse input data, then loop over all extracted entries
 
// Parse input data, then loop over all extracted entries
 
-->{{#arraydefine:$sseason|{{ParseInputValues|{{{1|}}}|{{#arrayprint:$engl_seasons}}|{{#arrayprint:$lang_seasons}}|default=true}}}}<!--
 
-->{{#arraydefine:$sseason|{{ParseInputValues|{{{1|}}}|{{#arrayprint:$engl_seasons}}|{{#arrayprint:$lang_seasons}}|default=true}}}}<!--
 
-->{{#if:{{#arrayprint:$sseason}} |
 
-->{{#if:{{#arrayprint:$sseason}} |
<span style="display:inline; margin-right:0;"><!--
+
<span style="display:inline; margin-right:0; white-space: nowrap"><!--
 
-->{{#arrayprint:$sseason||@season@|<!--
 
-->{{#arrayprint:$sseason||@season@|<!--
  
 
// Add space and bullet if this is not first entry
 
// Add space and bullet if this is not first entry
-->{{#ifexpr:{{#arraysearch:$sseason|@season@}}>0|&#32;•&#32;}}<!--
+
-->{{#ifexpr:{{#arraysearch:$sseason|@season@}}>0|</span>&#32;•&#32;<span style="display:inline; margin-right:0; white-space: nowrap">}}<!--
  
 
// Convert @season@ (english page name) into translated page name
 
// Convert @season@ (english page name) into translated page name
Zeile 42: Zeile 42:
 
       |Seasons    = All_Seasons_Icon
 
       |Seasons    = All_Seasons_Icon
 
       |Marriage  = Mermaid's Pendant
 
       |Marriage  = Mermaid's Pendant
   }}.png | {{{width|24px}}} | link={{#arrayprint:$slink_text}} | alt={{#arrayprint:$slink_text}}]]&nbsp;<!--
+
   }}.png | {{#if:{{{size|}}}|{{{size}}}px|{{{width|24px}}}}} | link={{#arrayprint:$slink_text}} | alt=]]&nbsp;<!--
  
 
// Add link, with special treatment for text of All Seasons
 
// Add link, with special treatment for text of All Seasons

Version vom 5. September 2020, 17:24 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