Template:Item/ja

提供:Palia Wiki
ナビゲーションに移動 検索に移動
このページはページ Template:Item を「翻訳」したものです。翻訳は 100% 完了しています。
Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit the template documentation. (About template documentation)
This Template uses the following Lua Modules: Item
Editors can experiment in this template's sandbox and test case pages.

This template has existing relatives or sub-templates: Template:Item

Usage

{{Item}} is meant to be a viable alternative to Template:Icon for listing Items that have a Quantity. It is meant to work better inline in Text and paragraphs by ensuring that the Item count stays inline with the icon and following text.

Syntax

{{Item|name|count|starred|before=|after=|style=|display=}}
Field Accepted Parameters
name Name of an Item
count Optional. The amount of the item, defaults to none. Amounts over 1000 will automatically be comma separated (Eg; 1000 -> 1,000 and 1234000 -> 1,234,000)
starred Optional. Can either be 0 (false) or 1 (true). If 1 then a star icon will be present, the same as it shows in the game.

Named Parameters

Named Parameters must be specifically typed as part of the Template (eg; {{item|style=1}}). The order that they are placed in does not matter (eg; {{item|after=(|style=1|before=)}}).

Field Accepted Parameters
before= Optional. Additional Text displayed before the count, also bolded.
after= Optional. Additional Text displayed after the count, also bolded.
style= Optional. Formats how the Item display is outputted.
  • 0 (Inline) Default: Writes the Item inline
  • 1 (Table): Formats for use inside a Table (Eg; A used to display a column of items). Defaults before= to x
display= Optional. Changes the link text to something else
  • If you override the display make sure to wrap it as ‎<translate>...‎</translate>, overriding the display will not read the translated page name.

Info Syntax Result Note
Quantity
{{Item|Palium Ore|10000}}
{{Item|Stone|10000}}
パリウム鉱石 10,000 パリウム鉱石
石 10,000
A number (10000) is provided, so 10,000 is displayed.
Negative
{{Item|Palium Ore|-10000}}
{{Item|Stone|-10000}}
パリウム鉱石 −10,000 パリウム鉱石
石 −10,000
A number (-10000) is provided, so -10,000 is displayed.
Numeric Range
{{Item|Palium Ore|5000-10000}}
{{Item|Stone|5000-10000}}
パリウム鉱石 5,000 ‐ 10,000 パリウム鉱石
石 5,000 ‐ 10,000
A range (10000) is provided, so 5,000 - 10,000 is displayed.
Plain Item
{{Item|Palium Ore}}
{{Item|Stone}}
パリウム鉱石 パリウム鉱石
石
When a number is not provided, no number will be shown.
Star Quality
{{Item|Palium Ore|8|1}}
{{Item|Stone|8|1}}
パリウム鉱石SQ.png 8 パリウム鉱石
石SQ.png 8
A number (8) is provided, so 8 Ore is displayed. The 4th parameter 1 (true) indicates that the item is starred.
Changed Text
{{Item|Palium Ore|display=Not Palium Ore}}
{{Item|Stone|display=Not Stone}}
Not Palium Ore Not Palium Ore
Not Stone Not Stone
The display for the link is changed, so a different name is shown
Text Before
{{Item|Palium Ore|8|before=x}}
{{Item|Stone|8|before=x}}
パリウム鉱石 x8 パリウム鉱石
石 x8
A number (8) is provided, and so is before=x, so x8 is displayed.
Text After
{{Item|Palium Ore|8|after=x}}
{{Item|Stone|8|after=x}}
パリウム鉱石 8x パリウム鉱石
石 8x
A number (8) is provided, and so is after=x, so 8x is displayed.
Text Before and After
{{Item|Palium Ore|8|before=(|after=)}}
{{Item|Stone|8|before=(|after=)}}
パリウム鉱石 (8) パリウム鉱石
石 (8)
A number (8) is provided, and so is before=(|after=), so (8) is displayed.
Ranged Before and After
{{Item|Palium Ore|8-100|before=(|after=)}}
{{Item|Stone|8-100|before=(|after=)}}
パリウム鉱石 (8) ‐ (100) パリウム鉱石
石 (8) ‐ (100)
Before and after text is also applied when in a range
Item recipe
{{Item|Fabric|Recipe}}
{{Item|Silk|Recipe}}
布生地 布生地 レシピ
シルク シルク レシピ
Prints the item in Recipe format, where "Recipe" is translated to the appropriate language
Items in a table
{{Item|Palium Ore|8|style=1}}
{{Item|Stone|8|style=1}}
{{Item|Stonefish||1|style=1}}
{{Item|Silk|Recipe|style=1}}
パリウム鉱石 パリウム鉱石 x8

石  x8

StonefishSQ.png Stonefish

シルク シルクレシピ
Applies style 1 which better formats the item to a Table Column
Special References
{{Item|Any Arrow}}
{{Item|Any Firework}}
{{Item|Any Bug}}
{{Item|Any Fish}}
{{Item|Any Crop}}
{{Item|Any Mushroom}}
{{Item|Any Vegetable}}
Any Arrow Any Arrow

Any Firework Any Firework

Any Bug Any Bug

Any Fish Any Fish

Any Crop Any Crop

Any Mushroom Any Mushroom

Any Vegetable Any Vegetable

Any Jam Any Jam

Special category references