Diferencia entre revisiones de «Plantilla:Weather inline»
Ir a la navegación
Ir a la búsqueda
(sync with english template) |
m (sync with english template) |
||
Línea 26: | Línea 26: | ||
-->{{#arraydefine:$wlink_text|{{ParseInputValues|code=weather|@weather@|translate=true}}}}<!-- | -->{{#arraydefine:$wlink_text|{{ParseInputValues|code=weather|@weather@|translate=true}}}}<!-- | ||
− | // | + | // 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 | ||
− | | •  | + | |{{{space| • }}} |
− | |{{#if:{{{sortkey|}}}| | + | |{{#ifexpr:{{#if:{{{sortkey|}}}|1|0}} or {{#ifeq:{{{sortkey}}}||1|0}} |
− | <span | + | |<span data-sort-value="{{#ifeq:{{{sortkey}}}|||{{#ifeq:{{{sortkey|true}}}|true |
− | + | |{{#expr:{{#if:{{#arrayprint:$wlink_text}} | |
− | + | |({{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"><!-- | ||
Línea 49: | Línea 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> |
Revisión del 00:09 31 oct 2020
Consulte la página de documentación en inglés para obtener más información sobre esta plantilla.
Uso
Esta plantilla se puede utilizar ingresando lo siguiente en una página relevante.
{{Weather inline}}
Resultados en ... Plantilla:ParseInputValues[[File:Plantilla:ParseInputValues.png|
| link=Clima| alt=]] [[Clima|Plantilla:ParseInputValues]]