Minecraft Wiki
探索
メインページ
全ページ
インタラクティブな地図
Minecraft Wiki
メインページ
コミュニティ・ポータル
ウィキの規則
スタイルガイド
最近の更新
おまかせ表示
サンドボックス
管理者掲示板
管理者一覧
Wiki Discord
ゲーム
Minecraft
Minecraft Earth
Minecraft Dungeons
お役立ちページ
取引
醸造
エンチャント
Mob
ブロック
アイテム
クラフト
製錬
チュートリアル
リソースパック
レッドストーン回路
Minecraft関連リンク
ウェブサイト
Minecraft Discord
サポート
バグトラッカー
フィードバック
Twitter
Facebook
YouTube
Minecraft Twitch
Gamepedia
Gamepediaサポート
広告を報告
Help Wiki
お問い合わせ
FANDOM
ゲーム
映画
テレビ
Wiki
Wikiを探索
コミュニティセントラル
Wikiを はじめよう
アカウントをお持ちでない場合
登録
ログイン
ログイン
登録
Minecraft Wiki
4,878
ページ
探索
メインページ
全ページ
インタラクティブな地図
Minecraft Wiki
メインページ
コミュニティ・ポータル
ウィキの規則
スタイルガイド
最近の更新
おまかせ表示
サンドボックス
管理者掲示板
管理者一覧
Wiki Discord
ゲーム
Minecraft
Minecraft Earth
Minecraft Dungeons
お役立ちページ
取引
醸造
エンチャント
Mob
ブロック
アイテム
クラフト
製錬
チュートリアル
リソースパック
レッドストーン回路
Minecraft関連リンク
ウェブサイト
Minecraft Discord
サポート
バグトラッカー
フィードバック
Twitter
Facebook
YouTube
Minecraft Twitch
Gamepedia
Gamepediaサポート
広告を報告
Help Wiki
お問い合わせ
Inventory slot/doc
テンプレートページ
ページに戻る
| ←
テンプレート:Inventory slot/doc
編集するにはログイン
履歴表示
トーク(0件)
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、以下のグループのいずれかに属する利用者のみが実行できます:
Users
、Fandomヘルパー、
Wikiマネージャー
、
Wikiスペシャリスト
。
テンプレート
名前空間にあるページを編集する権限がありません。
このページのソースの閲覧やコピーができます。
== 使用法 == All inputs are optional:<br> <pre>{{Slot |[Title]Mod:Name,Amount[Description]; [Title2]Mod2:Name2,Amount2[Description2]; ... |mod=Default mod (useful for animations and layout templates) |default=Image always shown under the main image |align=Vertical Alignment |link=Link override |title=Text show on mouseover |class=Adds additional classes to the .invslot class |style=Adds styling to the .invslot |imgclass=Adds additional classes to the .invslot-item |numstyle=Adds styling to the stack number }}</pre> === 部品 === The first parameter is a special parameter consisting of various "parts" grouped together in frames (delimited by <code>;</code>) which will be display one after another if JavaScript is enabled. Every part is optional, but without "name", won't do anything. ==== 使用例 ==== To display an inventory item of "Raw Porkchop" with an stack size of 20 you would put: {{t|Slot|Raw Porkchop,20}} ;見本 {{Slot|Raw Porkchop,20}} 2~999までがサポートされていてそれ以外は表示されません。 === エイリアス === 表示するものを指定するIDです。一覧は[[Template:InvSprite]]にあります。 === Titles and description === The title parameter can be used to set a title for all frames. {{t|Slot|Raw Porkchop; Cooked Porkchop|title{{=}}Smelly Porkchop}} ;見本 {{Slot|Raw Porkchop; Cooked Porkchop|title=Smelly Porkchop}} To remove the title, set it to "none": {{t|Slot|Raw Porkchop; Cooked Porkchop|title{{=}}none}} ;見本 {{Slot|Raw Porkchop; Cooked Porkchop|title=none}} However, the first bracketed text can be used to specify a title for each frame individually, and also supports standard [[formatting codes]] using <code>&</code> instead of <code>§</code>. If the title only contains formatting codes and no actual text, the formatting will be added to the normal title. {{t|Slot|[&b]Diamond Sword}} ;見本 {{Slot|[&b]Diamond Sword}} The last bracketed text can be used to specify a description, this also supports standard formatting codes, and can also have multiple lines by using forward slashes (/). {{t|Slot|[&b&oExcalibur]Iron Sword[&7Smite V/Fire Aspect I//&9+6 Attack Damage]}} ;見本 {{Slot|[&b&oExcalibur]Iron Sword[&7Smite V/Fire Aspect I//&9+6 Attack Damage]}} === サブフレーム === Subframes are shown as a single frame, but the frames within it are advanced every time the subframe is displayed. A set of frames can be put in a subframe by wrapping it in braces. Here, an alias (which resolves to multiple frames) is wrapped in a subframe, and a different wood plank variant is shown each animation cycle: {{t|Slot|{Any Planks};Iron Ingot}} ;見本 {{Slot|{Any Planks};Iron Ingot}} === 整列 === Align uses the [http://www.w3.org/wiki/CSS/Properties/vertical-align vertical-align] CSS property. For example to align to the middle: <code><nowiki>Smells like {{Slot|Raw Porkchop|align=middle}} in here!</nowiki></code> ;shows Smells like {{Slot|Raw Porkchop|align=middle}} in here! === 下線 === Default is always shown and is placed under the image. {{t|Slot|default{{=}}Grid layout Brewing Empty}}{{t|Slot|Splash Mundane Potion|default{{=}}Grid layout Brewing Empty}} ;見本 {{Slot|default=Grid layout Brewing Empty}}{{Slot|Splash Mundane Potion|default=Grid layout Brewing Empty}} === リンク === To change the link for all frames from the image name put: {{t|Slot|Charcoal|link{{=}}Coal#Charcoal}} ;見本 {{Slot|Charcoal|link=Coal#Charcoal}} To remove the link, set link to none: {{t|Slot|Charcoal|link{{=}}none}} ;見本 {{Slot|Charcoal|link=none}} Note that this retains the title. === MOD === <!-- TODO: Update for sprite usage --> A mod image is specified with the Mod: section of the name (or by setting a default mod using the mod parameter). The image link will then link to the mod sub-page allowing correct linking of mod images. The uploaded image name should by uploaded as <code>Grid <Name> (<Mod>).png</code> and should be added to the [[:Category:Grid_mods|Grid mods]] category, which prevents them from being confused with official Minecraft items.<br>This usage is not recommended, however, as all mod pages are being migrated to the FTB wiki.<!-- For example, to display this mod image [[:File:Grid Bronze Sword (IndustrialCraft).png]]: {{t|Slot|IndustrialCraft:Bronze Sword}} (or {{t|Slot|mod{{=}}IndustrialCraft|Bronze Sword}}) ;見本 {{Slot|IndustrialCraft:Bronze Sword}} Slots can be animated with a theoretically unlimited amount of frames, between mod items and vanilla items. Frames are separated by semi-colons (;). <pre>{{Slot| Dirt; TNT,64; IndustrialCraft:Bronze Sword,6; ; Grass Block,5; Sand; Golden Helmet,12; IndustrialCraft:Bronze Helmet,2; IndustrialCraft:Copper,50; Redstone }}</pre> ;shows {{Slot| Dirt; TNT,64; IndustrialCraft:Bronze Sword,6; ; Grass Block,5; Sand; Golden Helmet,12; IndustrialCraft:Bronze Helmet,2; IndustrialCraft:Copper,50; Redstone }} As you can see, the mod had to be specified for each mod frame, this is where the default mod parameter is useful. {{t|Slot|mod{{=}}IndustrialCraft|Bronze Sword,6; ; Bronze Helmet,12; Copper,50; Copper Dust}} ;shows {{Slot|mod=IndustrialCraft|Bronze Sword,6; ; Bronze Helmet,12; Copper,50; Copper Dust}} To use a vanilla minecraft item when a default mod is set, use "vanilla" (shortcut "v") or "minecraft" (shortcut "mc") as the mod (case insensitive). <pre>{{Slot|mod=IndustrialCraft| Vanilla:Dirt; vanilla:TNT,64; Bronze Sword,6; ; V:Grass Block,5; v:Sand; Minecraft:Golden Helmet,12; Bronze Helmet,2; Copper,50; mc:Redstone Dust }}</pre> ;shows {{Slot|mod=IndustrialCraft| Vanilla:Dirt; vanilla:TNT,64; Bronze Sword,6; ; V:Grass Block,5; v:Sand; Minecraft:Golden Helmet,12; Bronze Helmet,2; Copper,50; mc:Redstone Dust }} -->
テンプレート:Inventory slot/doc
に戻る。