(en:1396441 / 引数値がyes/noとなる引数を変換するように / Cleanup) |
Hytsnbr10519 (トーク | 投稿記録) 細 (en:1429349 への更新テスト) |
||
1行目: | 1行目: | ||
<includeonly>{{#invoke:infobox|infobox |
<includeonly>{{#invoke:infobox|infobox |
||
| rows = |
| rows = |
||
− | {{ |
+ | {{#if: {{{rarity|}}} | {{infobox row|class=list-style-none|label=[[希少度]]|field={{ucfirst:{{{rarity}}}}} }} | }} |
− | {{infobox row|label=[[不透明度|透過]]|field={{pc|transparent|{{{transparent |
+ | {{infobox row|label=[[不透明度|透過]]|field={{ #if: {{{transparent|}}} | {{pc|transparent|{{{transparent}}} }} | ? }} }} |
− | {{infobox row|label=[[明るさ|発光]]|field={{pc|light|{{{light |
+ | {{infobox row|label=[[明るさ|発光]]|field={{ #if: {{{light|}}} | {{pc|light|{{{light}}} }} | ? }} }} |
− | {{infobox row|label=[[爆発#爆発耐久値|爆発耐性]]|field={{ |
+ | {{infobox row|label=[[爆発#爆発耐久値|爆発耐性]]|field={{ #if: {{{tntres|}}} |
⚫ | |||
− | #if: {{{tntres|}}} |
||
⚫ | |||
− | | {{{tntres}}}{{ |
||
⚫ | |||
− | #if: {{NAMESPACE}} |
||
⚫ | |||
⚫ | |||
− | }} |
||
⚫ | |||
⚫ | |||
⚫ | |||
#switch: {{ lc: {{{tool|}}} }} |
#switch: {{ lc: {{{tool|}}} }} |
||
| pick | pickaxe | ツルハシ = {{SlotSprite|Pickaxe Required|link=ツルハシ|任意の道具で破壊できるが、ツルハシが最も速く破壊できる}} |
| pick | pickaxe | ツルハシ = {{SlotSprite|Pickaxe Required|link=ツルハシ|任意の道具で破壊できるが、ツルハシが最も速く破壊できる}} |
||
47行目: | 43行目: | ||
}} |
}} |
||
}} |
}} |
||
− | {{infobox row|label=[[再生可能資源|再生]]|field={{pc|renewable|{{{renewable |
+ | {{infobox row|label=[[再生可能資源|再生]]|field={{ #if: {{{renewable|}}} | {{pc|renewable|{{{renewable}}} }} | ? }} }} |
− | {{infobox row|label=スタック|field={{pc|stackable|{{{stackable |
+ | {{infobox row|label=スタック|field={{ #if: {{{stackable|}}} | {{pc|stackable|{{{stackable}}} }} | 該当なし }} }} |
− | {{infobox row|label=可燃性|field={{pc|flammable|{{{flammable |
+ | {{infobox row|label=可燃性|field={{ #if: {{{flammable|}}} | {{pc|flammable|{{{flammable}}} }} | 指定なし }} }} |
+ | {{infobox row|label=[[溶岩]]からの引火|field={{ #if: {{{lavasusceptible|}}} | {{pc|flammable|{{{lavasusceptible}}} }} | おそらくしない }} }} |
||
⚫ | |||
− | {{ |
+ | {{#if: {{{experience|}}} | {{infobox row|label=[[経験値]]|field={{{experience}}} }} }} |
− | {{ |
+ | {{#if: {{{sounds|}}} | {{infobox row|class=list-style-none|label=音声|field={{{sounds}}} }} }} |
− | {{ #if: {{{ |
+ | {{infobox row|class={{ #if: {{{drops|}}} | list-style-none }}|label=[[ドロップ]]|field={{{drops|自身}}} }} |
− | {{ |
+ | {{#if: {{{data|}}} | {{infobox row|label=[[データ値]]|field={{data value|{{{data}}}}} }} }} |
⚫ | |||
− | {{ |
||
− | #ifeq: {{lc: {{{nameid}}} }} | なし |
+ | {{#ifeq: {{lc: {{{nameid}}} }} | なし |
+ | | |
||
− | + | | {{infobox row|label=[[名前空間ID]]|field={{ |
|
#if: {{{nameid|}}} |
#if: {{{nameid|}}} |
||
− | + | | {{{nameid}}} |
|
− | + | | {{#if: {{NAMESPACE}} |
|
− | + | | ? |
|
⚫ | |||
− | | ? |
||
⚫ | |||
}} |
}} |
||
}}}} |
}}}} |
||
}} |
}} |
||
+ | {{#if: {{{tags|}}} | {{infobox row | label= [[タグ]] | field= {{flatlist|{{#replace:{{{tags}}}|#|#}} }} }} }} |
||
− | {{ |
||
− | #if: {{NAMESPACE}} |
+ | {{#if: {{NAMESPACE}} || |
− | + | {{translation category|project=0|{{ |
|
#switch: {{ lc: {{{renewable|}}} }} |
#switch: {{ lc: {{{renewable|}}} }} |
||
| yes | 可能 | 可 | はい = 再生可能資源 |
| yes | 可能 | 可 | はい = 再生可能資源 |
2019年9月15日 (日) 06:28時点における版
これは大きな表示領域を使い、広く使われているテンプレートです。英語版の更新に従って更新をお願いします。日本語版独自のものが必要なら、まず合意を先に取り付けてください。
このテンプレートは、モジュール:Infoboxを使用しています。また、このスクリプトはLuaで書かれています。
このテンプレートは、ブロックのページに統一されたデザインを提供します。
{{Block |title= |image= |invimage= |rarity= |renewable= |stackable= |tool= |tool2= |tntres= |hardness= |light= |transparent= |flammable= |lavasusceptible= }}
各パラメータについては以下を参照してください。
パラメータ | 機能 | 既定値 |
---|---|---|
title |
タイトルをページ名(既定値)から変更する必要がある場合にのみ指定します。 | {{BASEPAGENAME}}
|
image |
ブロックの画像(おおよそ300×300pxを推奨)を指定します。 | {{{title}}}.png 、存在しない場合はNo image.svg(画像のアップロードページへリンクします)
|
imageN |
2つ目以降のブロックの画像(おおよそ300×300pxを推奨)を指定します。 | なし |
invimage |
インベントリアイコンを指定します。「none」を指定することで非表示にすることができます。アイコンの表示にはテンプレート:Gridを使用します。 | Grid {{{title}}}.png 、存在しない場合はなし
|
invimageN |
2つ目以降のインベントリアイコンを指定します。アイコンの表示にはテンプレート:Gridを使用します。 | なし |
rarity |
アイテムの希少度を指定します。 | 一般的 |
renewable |
ブロックが再生可能であるかを指定します。 | ? |
stackable |
ブロックがスタックできるかどうかを指定します。 | ? |
tool |
回収に使用する道具を指定します。表示される画像は、その道具(もしくはそれ以上)の道具でのみ破壊できることを意味します。画像が輪郭線で表示されている場合は、どの道具でも回収はできるが表示の道具が最も速いことを意味します。「すべての道具」は、どの道具を使用しても同じ速度で(もしくはどの道具でも即座に)破壊されることを意味します。「なし」は破壊不可能を意味します。 | ? |
tool2 |
回収に使用する道具が2種類ある場合に指定します。 | ? |
tntres |
ブロックの爆発耐性を指定します。値はプログラムコード中にあり、単位はありません。 | ? |
hardness |
ブロックの硬度値を指定します。値はプログラムコード中にあり、単位はありません。 | ? |
light |
ブロックが発光するかどうかを指定します。発光する場合は「Yes (9)」のように指定します。 | ? |
transparent |
ブロックを通して向こうが一部でも覗けるかどうかを指定します。不明な場合は不透明度を参照してください。 | ? |
heals |
満腹度の回復量 | なし |
flammable |
ブロックが燃えるかどうかを指定します。 | ? |
lavasusceptible |
溶岩から引火するかどうかを指定します。 | ? |
関連項目
- Minecraft
{{Biome}}
{{Block}}
{{Development phase}}
{{Enchantment}}
{{Effect}}
{{Entity}}
{{Food}}
{{Fluid}}
{{Item}}
{{ItemEntity}}
{{Structure}}
{{Technical Block}}
{{Tool}}
- Minecraft Dungeons
{{DungeonsEnchantment}}
{{DungeonsEntity}}
{{DungeonsItem}}
- その他
{{3rd Party Tool}}
{{Company}}
{{Person}}
{{Profile}}
{{Program}}
{{Version nav}}
- モジュール:Infobox
[閲覧 | 編集 | 履歴 | キャッシュ破棄]上記の解説は、テンプレート:Block/docから参照されています。