「テンプレート:Infobox fish」の版間の差分
ナビゲーションに移動
検索に移動
細 (カテゴリ追加) |
FlameArche (トーク | 投稿記録) (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| • |@@@@|{{#switch: {{lc:@@@@}} | + | {{!}}id="infoboxdetail"{{!}}{{#arraydefine:season|{{{season|}}}|/[,,、・\//]/}}{{#arrayprint:season| • |@@@@|{{#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 /> | ||
{{!}}- | {{!}}- |
2018年5月29日 (火) 16:31時点における版
このテンプレートの詳細については、英語のドキュメントページを参照してください。
使用法
このテンプレートは、関連するページに以下を入力することによって使用できます。
{{Infobox fish}}
結果は...
Error: {{#seo:}} must contain at least one non-empty attribute.