Help:Editing: Difference between revisions

No edit summary
 
(8 intermediate revisions by 2 users not shown)
Line 27: Line 27:
<pre><nowiki>{{Item|name=Copper Ore|type=Ore|description=A raw copper nuget.|value=6}}</nowiki></pre>
<pre><nowiki>{{Item|name=Copper Ore|type=Ore|description=A raw copper nuget.|value=6}}</nowiki></pre>


When the Item template is used in an item's page, you might want it to float to the top right of the page. In this case, you can change the template name to ''ItemFloat''.
When the Item template is used in an item's page, you might want it to float to the top right of the page. In this case, you can change the template name to ''ItemFloat'':
 
<pre><nowiki>{{ItemFloat|name=Copper Ore|type=Ore|description=A raw copper nuget.|value=6}}</nowiki></pre>
 
Which will look like this:
 
[[File:Item Float Template.png|800px]]
 
Here is the full list of arguments that those templates can take:
 
{| class="wikitable"
|-
! Argument Name !! Description || Required
|-
| name || Item name || Yes
|-
| type || Gathered resource type || No (doesn't show if empty)
|-
| description || Item examine text || 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)
|}
 
=== Item Link Template ===
 
Ever seen those cute little links with thumbnails?
 
[[File:Item Link Template.png]]
 
You guessed it, its a template! It can be added to any page with this syntax:
 
<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)
|}