「テンプレート:Season」の版間の差分

提供: Stardew Valley Wiki
ナビゲーションに移動 検索に移動
(sync with english template)
(sync with english template)
29行目: 29行目:
 
-->{{#arraydefine:$slink_text|{{ParseInputValues|code=season|@season@|translate=true}}}}<!--
 
-->{{#arraydefine:$slink_text|{{ParseInputValues|code=season|@season@|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:$sseason|@season@}}>0
 
-->{{#ifexpr:{{#arraysearch:$sseason|@season@}}>0
     |&#32;•&#32;
+
     |{{{space|&#32;•&#32;}}}
     |{{#if:{{{sortkey|}}}|
+
     |{{#ifexpr:{{#if:{{{sortkey|}}}|1|0}} or {{#ifeq:{{{sortkey}}}||1|0}}
         <span class="sortkey" style="display:none;">{{#expr:
+
         |<span data-sort-value="{{#ifeq:{{{sortkey}}}|||{{#ifeq:{{{sortkey|true}}}|true
          {{#if:{{#arrayprint:$slink_text}}
+
          |{{#expr:{{#if:{{#arrayprint:$slink_text}}
 
             |({{ParseInputValues|code=season|@season@|translate=index}}+1)*100
 
             |({{ParseInputValues|code=season|@season@|translate=index}}+1)*100
    |0}}
+
    |0}}{{#iferror:{{#expr:{{{2|0}}}>0}}|| + {{{2|0}}}}}}}
          {{#iferror:{{#expr:{{{2|0}}}>0}}|| + {{{2|0}}}}}}}</span>
+
          |{{{sortkey|}}}}}}}">
 
   }}}}<span style="display:inline; margin-right:0; white-space: nowrap"><!--
 
   }}}}<span style="display:inline; margin-right:0; white-space: nowrap"><!--
  
61行目: 61行目:
 
       |{{#if:{{{all|}}}|{{{all|}}}|{{#arrayprint:$lang_allseasons}}}}
 
       |{{#if:{{{all|}}}|{{{all|}}}|{{#arrayprint:$lang_allseasons}}}}
 
       |{{#arrayprint:$slink_text}}}}]]<!--
 
       |{{#arrayprint:$slink_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:37時点における版

このテンプレートの詳細については、英語のドキュメントページを参照してください。

使用法

このテンプレートは、関連するページに以下を入力することによって使用できます。

{{Season}}

結果は... テンプレート:ParseInputValues[[File:テンプレート:ParseInputValues.png|

    24px | link=テンプレート:ParseInputValues | alt=]] [[テンプレート:ParseInputValues|テンプレート:ParseInputValues]]