Изменения

update
Строка 1: Строка 1: −
<includeonly><!--
+
<includeonly><span style="display:inline; margin-right:0; white-space: nowrap;">{{#switch: {{lc:{{{1}}}}}
// Define the list of recognized weather names
+
|all|any|любая|все|любое|любой = [[Погода|Любая]]
//  First column=icon name -> same in all languages
+
|sun|ясно|солнечно|солнце = [[File:Sunny.png|{{{width|16px}}}|link=]]&nbsp;[[Погода|Ясно]]
//  Second column=displayed text -> needs translation
+
|springwind = [[File:Pollen spring.png|{{{width|16px}}}|link=]]&nbsp;[[Погода|Ветер]]
//  All other values are synonyms
+
|rain|дождь|дождливо = [[File:Rain.png|{{{width|16px}}}|link=]]&nbsp;[[Погода|Дождь]]
-->{{ParseInputValues|code=weather||
+
|festival = [[File:Festival.png|{{{width|16px}}}|link=]]&nbsp;[[Праздники|Фестиваль]]
,Any,          Все,      All,  Always,    Любое,  Любая, Любой,
+
|fallwind = [[File:Pollen fall.png|{{{width|16px}}}|link=]]&nbsp;[[Погода|Ветер]]
,Sunny,        Солнечно, Sun,  солнце,    ясно,
+
|storm|гроза = [[File:Thunderstorm.png|{{{width|16px}}}|link=]]&nbsp;[[Погода|Гроза]]
,Pollen fall,  Ветер,    Wind,  Pollen,    Polleny, Windy, пыльца, ветрено,
+
|snow|снег|снежно = [[File:Snow.png|{{{width|16px}}}|link=]]&nbsp;[[Погода|Снег]]
,Pollen spring, Ветреный, Wind,  Springwind,
+
|#default = {{ucfirst:{{{1|}}} }}
,Rain,          Дождь,    Rainy, дождливо,
+
}}</span></includeonly><noinclude>{{Englishdoc}}</noinclude>
,Thunderstorm,  Град,    Storm, Stormy,    штормит, буря, шторм, гроза,
  −
,Snow,          Снег,    Snowy, снежно,
  −
}}<!--
  −
// The name of the weather wiki page
  −
-->{{#arraydefine:$lang_weatherlink|Погода}}<!--
  −
 
  −
// END OF translated text
  −
 
  −
// Check whether there's already a file link in {{{1}}}... implying this is probably a recursive call.  Return immediately
  −
-->{{#if:{{#pos:{{{1|}}}|{{Bracket|2}}File}}|{{{1}}}|<!--
  −
// Parse input data, then loop over all extracted entries
  −
-->{{#arraydefine:$wweather|{{ParseInputValues|code=weather|{{{1|}}}|default=true}}}}<!--
  −
-->{{#arrayprint:$wweather||@weather@|<!--
  −
// Convert @weather@ (icon name) into displayed text
  −
-->{{#arraydefine:$wlink_text|{{ParseInputValues|code=weather|@weather@|translate=true}}}}<!--
  −
 
  −
// On first entry, add sort-key if requested. On other entries, add space and bullet.
  −
-->{{#ifexpr:{{#arraysearch:$wweather|@weather@}}>0
  −
    |&#32;•&#32;
  −
    |{{#if:{{{sortkey|}}}|
  −
        <span class="sortkey" style="display:none;">{{#if:{{#arrayprint:$wlink_text}}
  −
  |{{#expr:{{ParseInputValues|code=weather|@weather@|translate=index}}+1}}
  −
  |0}}</span>
  −
  }}}}<span style="display:inline; margin-right:0; white-space: nowrap"><!--
  −
 
  −
// Display unmatched text (detected by empty value for $wlink_text)
  −
// And also handle text_only option
  −
-->{{#ifeq:{{#arrayprint:$wlink_text}}|
  −
    | {{ucfirst:@weather@}}
  −
    | {{#if:{{{text_only|}}}
  −
        | {{#if:{{{no_translate|}}}|@weather@|{{#arrayprint:$wlink_text}}}}
  −
| <!--
  −
 
  −
// Display the normal cases: first display icon (except for Any)
  −
-->{{#ifeq:@weather@|Any||[[File:@weather@.png|
  −
      {{#if:{{{size|}}}|{{{size}}}px}} | link={{#arrayprint:$lang_weatherlink}}| alt=]]&nbsp;}}<!--
  −
 
  −
// Add link
  −
-->[[{{#arrayprint:$lang_weatherlink}}|{{#arrayprint:$wlink_text}}]]<!--
  −
-->}}}}</span>}}}}</includeonly><noinclude>{{Englishdoc}}{{#ifexist:{{FULLPAGENAME}}/doc |<nowiki/>
  −
{{{{FULLPAGENAME}}/doc}} }}</noinclude>