「テンプレート:Weather inline」の版間の差分
ナビゲーションに移動
検索に移動
(sync with english template) |
細 (sync with english template) |
||
26行目: | 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"><!-- | ||
49行目: | 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> |
2020年10月31日 (土) 02:38時点における版
このテンプレートの詳細については、英語のドキュメントページを参照してください。
使用法
このテンプレートは、関連するページに以下を入力することによって使用できます。
{{Weather inline}}
結果は... テンプレート:ParseInputValues[[File:テンプレート:ParseInputValues.png|
| link=天気| alt=]] [[天気|テンプレート:ParseInputValues]]