差分

behaviorフィールドを追加&時刻にSwitch文を追加
15行目: 15行目:  
{{!}}-
 
{{!}}-
 
{{!}}id="infoboxsection"{{!}}時刻:
 
{{!}}id="infoboxsection"{{!}}時刻:
{{!}}id="infoboxdetail"{{!}}{{{time|}}} |}}<!--
+
{{!}}id="infoboxdetail"{{!}}{{#switch: {{lc:{{{time|}}}}}
 +
    | any | all | いつでも | すべて = すべての時刻
 +
    | #default = {{{time|}}}}} |}}<!--
 
-->{{#if:{{{season|}}} |<nowiki />
 
-->{{#if:{{{season|}}} |<nowiki />
 
{{!}}-
 
{{!}}-
 
{{!}}id="infoboxsection"{{!}}季節:
 
{{!}}id="infoboxsection"{{!}}季節:
{{!}}id="infoboxdetail"{{!}}{{#arraydefine:season|{{{season|}}}|,}}{{#arrayprint:season|&nbsp;&bull;&nbsp;|@@@@|{{#switch: {{lc:@@@@}}
+
{{!}}id="infoboxdetail"{{!}}{{#arraydefine:season|{{{season|}}}|/[,,、・\//]/}}{{#arrayprint:season|&nbsp;&bull;&nbsp;|@@@@|{{#switch: {{lc:@@@@}}
 
     | spring | 春 = {{Season|春}}
 
     | spring | 春 = {{Season|春}}
 
     | summer | 夏 = {{Season|夏}}
 
     | summer | 夏 = {{Season|夏}}
 
     | fall | 秋 = {{Season|秋}}
 
     | fall | 秋 = {{Season|秋}}
 
     | winter | 冬 = {{Season|冬}}
 
     | winter | 冬 = {{Season|冬}}
     | any | all = すべての季節
+
     | any | all | なんでも | すべて = すべての季節
 
     | #default = @@@@}} }}<!-- end arrayprint --> |}}
 
     | #default = @@@@}} }}<!-- end arrayprint --> |}}
{{#if:{{{weather|}}} |{{#arraydefine:weather|{{{weather|}}}|/}}
+
{{#if:{{{weather|}}} |{{#arraydefine:weather|{{{weather|}}}|/[\//]/}}
 
{{!}}-
 
{{!}}-
 
{{!}}id="infoboxsection"{{!}}天気:
 
{{!}}id="infoboxsection"{{!}}天気:
32行目: 34行目:  
                               |{{#switch: {{lc:@@@@}}
 
                               |{{#switch: {{lc:@@@@}}
 
                               | sunny | sun | 晴れ | rainy | rain | 雨 | polleny | pollen | wind | windy | 花粉 | stormy | storm | 雷雨 | snowy | snow | 雪 = {{weather inline|@@@@}}
 
                               | sunny | sun | 晴れ | rainy | rain | 雨 | polleny | pollen | wind | windy | 花粉 | stormy | storm | 雷雨 | snowy | snow | 雪 = {{weather inline|@@@@}}
                               | any | all = すべての天気
+
                               | any | all | なんでも | すべて = すべての天気
 
                               | #default = {{ucfirst:@@@@}}
 
                               | #default = {{ucfirst:@@@@}}
 
                               }}
 
                               }}
41行目: 43行目:  
{{!}}id="infoboxsection"{{!}}難易度:
 
{{!}}id="infoboxsection"{{!}}難易度:
 
{{!}}id="infoboxdetail"{{!}}{{{difficulty|}}} |}}<!--
 
{{!}}id="infoboxdetail"{{!}}{{{difficulty|}}} |}}<!--
 +
-->{{#if:{{{behavior|}}} |<nowiki />
 +
{{!}}-
 +
{{!}}id="infoboxsection"{{!}}[[魚#釣りミニゲーム{{!}}<span style="color: white;">行動パターン</span>]]:
 +
{{!}}id="infoboxdetail"{{!}}{{{behavior|}}} |}}<!--
 
-->{{#if:{{{size|}}} |<nowiki />
 
-->{{#if:{{{size|}}} |<nowiki />
 
{{!}}-
 
{{!}}-
411

回編集