Template:Item block: Difference between revisions
Appearance
imported>Margotbean No edit summary |
imported>Margotbean remove script error |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 17: | Line 17: | ||
|[[{{#if:{{{link|}}}|{{{link|}}}|{{{1|}}}}}]]<br /> | |[[{{#if:{{{link|}}}|{{{link|}}}|{{{1|}}}}}]]<br /> | ||
|- | |- | ||
|{{tprice|{{{3|}}}|math={{{math|}}} }} | |{{tprice|{{{3|0}}}|math={{{math|}}} }} | ||
|}</includeonly> | |}</includeonly> | ||
<noinclude> | <noinclude> | ||
| Line 24: | Line 24: | ||
Item block is a template for the [[Traveling Cart]] page. It's used to create a small table with picture/name/price range underlined by a white line. | Item block is a template for the [[Traveling Cart]] page. It's used to create a small table with picture/name/price range underlined by a white line. | ||
== | ==Use== | ||
This template is called around 400 times on the [[Traveling Cart]] page. In a effort to keep it light, "text-align:center;" is only declared once in the parent table: | This template is called around 400 times on the [[Traveling Cart]] page. In a effort to keep it light, "text-align:center;" is only declared once in the parent table: | ||
| Line 83: | Line 83: | ||
|{{Item block|corn|48px|100|image=Bat Anim.gif}} | |{{Item block|corn|48px|100|image=Bat Anim.gif}} | ||
|} | |} | ||
<!-- | |||
====Manual Entry==== | ====Manual Entry==== | ||
| Line 89: | Line 89: | ||
{{Item block|Kale Seeds|48px|35-100|math=false}} | {{Item block|Kale Seeds|48px|35-100|math=false}} | ||
--> | |||
[[Category:Archived templates]] | [[Category:Archived templates]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 16:54, 25 July 2023
Description
Item block is a template for the Traveling Cart page. It's used to create a small table with picture/name/price range underlined by a white line.
Use
This template is called around 400 times on the Traveling Cart page. In a effort to keep it light, "text-align:center;" is only declared once in the parent table:
{| style="text-align:center;"
|{{Item block|corn|48px|50}}
|}
First argument: Item name
Second argument: Size of the image in pixel
Third argument: Base price or "furniture"
Fourth argument: Item probability out of 788, 1 if omitted (always 1/145 for furniture)
|
Optional arguments
special
If the stock do not respect normal probability:
{{Item block|corn|48px|1|special=40}}
|
If the stock do not respect normal probability:
{{Item block|Tulip|48px|100|92}}
|
link
If the link doesn't match the image name:
{{Item block|corn|48px|furniture|link=Abigail}}
|
image
If the image is not a png/doesn't match the item name:
{{Item block|corn|48px|100|image=Bat Anim.gif}}
|