Changes

Jump to navigation Jump to search
1,660 bytes added ,  17:23, 24 July 2022
move doc info to template for archiving
Line 19: Line 19:  
|-
 
|-
 
|{{tprice|{{{3|}}}|math={{{math|}}} }}
 
|{{tprice|{{{3|}}}|math={{{math|}}} }}
|}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
+
|}</includeonly>
 +
<noinclude>
 +
==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.
 +
 
 +
==Usage==
 +
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:
 +
 
 +
<nowiki> {| style="text-align:center;"
 +
|{{Item block|corn|48px|50}}
 +
|}</nowiki>
 +
 
 +
 
 +
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)
 +
 
 +
{| style="text-align:center;"
 +
|{{Item block|corn|48px|50}}
 +
|}
 +
 
 +
===Optional arguments===
 +
 
 +
====special====
 +
 
 +
If the stock do not respect normal probability:
 +
 
 +
<nowiki>{{Item block|corn|48px|1|special=40}}</nowiki>
 +
 
 +
{| style="text-align:center;"
 +
|{{Item block|corn|48px|1|special=40}}
 +
|}
 +
 
 +
If the stock do not respect normal probability:
 +
 
 +
<nowiki>{{Item block|Tulip|48px|100|92}}</nowiki>
 +
 
 +
{| style="text-align:center;"
 +
|{{Item block|Tulip|48px|100|92}}
 +
|}
 +
 
 +
====link====
 +
 
 +
If the link doesn't match the image name:
 +
 
 +
<nowiki>{{Item block|corn|48px|furniture|link=Abigail}}</nowiki>
 +
 
 +
{| style="text-align:center;"
 +
|{{Item block|corn|48px|furniture|link=Abigail}}
 +
|}
 +
 
 +
====image====
 +
 
 +
If the image is not a png/doesn't match the item name:
 +
 
 +
<nowiki>{{Item block|corn|48px|100|image=Bat Anim.gif}}</nowiki>
 +
 
 +
{| style="text-align:center;"
 +
|{{Item block|corn|48px|100|image=Bat Anim.gif}}
 +
|}
 +
 
 +
====Manual Entry====
 +
 
 +
<pre>{{Item block|Kale Seeds|48px|35-100|math=false}}</pre>
 +
 
 +
{{Item block|Kale Seeds|48px|35-100|math=false}}
 +
 
 +
[[Category:Archived templates]]
 +
</noinclude>
107,395

edits

Navigation menu