Différences entre versions de « Modèle:Weather inline »

De Stardew Valley Wiki
Sauter à la navigation Sauter à la recherche
(copy template from english wiki)
m (sync with english template)
Ligne 26 : Ligne 26 :
 
-->{{#arraydefine:$wlink_text|{{ParseInputValues|code=weather|@weather@|translate=true}}}}<!--
 
-->{{#arraydefine:$wlink_text|{{ParseInputValues|code=weather|@weather@|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:$wweather|@weather@}}>0
 
-->{{#ifexpr:{{#arraysearch:$wweather|@weather@}}>0
     |&#32;•&#32;
+
     |{{{space|&#32;•&#32;}}}
     |{{#if:{{{sortkey|}}}|
+
     |{{#ifexpr:{{#if:{{{sortkey|}}}|1|0}} or {{#ifeq:{{{sortkey}}}||1|0}}
         <span class="sortkey" style="display:none;">{{#if:{{#arrayprint:$wlink_text}}
+
         |<span data-sort-value="{{#ifeq:{{{sortkey}}}|||{{#ifeq:{{{sortkey|true}}}|true
  |{{#expr:{{ParseInputValues|code=weather|@weather@|translate=index}}+1}}
+
          |{{#expr:{{#if:{{#arrayprint:$wlink_text}}
  |0}}</span>
+
            |({{ParseInputValues|code=weather|@weather@|translate=index}}+1)
 +
    |0}}}}
 +
          |{{{sortkey|}}}}}}}">
 
   }}}}<span style="display:inline; margin-right:0; white-space: nowrap"><!--
 
   }}}}<span style="display:inline; margin-right:0; white-space: nowrap"><!--
  
Ligne 49 : Ligne 51 :
 
// Add link
 
// Add link
 
-->[[{{#arrayprint:$lang_weatherlink}}|{{#arrayprint:$wlink_text}}]]<!--
 
-->[[{{#arrayprint:$lang_weatherlink}}|{{#arrayprint:$wlink_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>

Version du 31 octobre 2020 à 00:24

Voir la page de documentation en anglais pour plus d'informations sur ce modèle.

Utiliser

Ce modèle peut être utilisé en entrant ce qui suit dans une page pertinente.

{{Weather inline}}

Produit ... Modèle:ParseInputValues[[File:Modèle:ParseInputValues.png|

      | link=Météo| alt=]] [[Météo|Modèle:ParseInputValues]]