Help:Editing: Difference between revisions

No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 39: Line 39:
{| class="wikitable"
{| class="wikitable"
|-
|-
! Argument Name !! Required
! Argument Name !! Description || Required
|-
|-
| name || Yes
| name || Item name || Yes
|-
|-
| type || No
| type || Gathered resource type || No (doesn't show if empty)
|-
|-
| description || Yes
| description || Item examine text || Yes
|-
|-
| value || Yes
| value || Sell value to trader || Yes
|-
| stats || Equipment skill and combat stats || No (doesn't show if empty)
|-
| slot || For armor, slot type || No (doesn't show if empty)
|-
| req || Requirements to use item || No (doesn't show if empty)
|-
| boost || For consumables, boosts or health restoration || No (doesn't show if empty)
|}
|}


Line 59: Line 67:


<pre><nowiki>{{ItemLink|Copper Ore}}</nowiki></pre>
<pre><nowiki>{{ItemLink|Copper Ore}}</nowiki></pre>
By default, it will search the thumbnail in .webp format. If you want the image to be another format, like the skill links with their little GIF animations, you can pass the file extension as a second argument:
<pre><nowiki>{{ItemLink|Mining|gif}}</nowiki></pre>
Here is the list of arguments:
{| class="wikitable"
|-
!Argument !! Required
|-
| 1 (name) || Yes
|-
| 2 (extension) || No (defaults to .webp)
|}