Difference between revisions of "Template:Img"

From Idlescape Wiki
Jump to navigation Jump to search
(Template for shorter image syntax.)
 
(Updated List and Exceptions)
 
(140 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{#ifeq: {{{1}}}|Gold| [[Gold|<img src="https://idlescape.com/images/money_icon.png" alt="Gold"  width={{{2}}} height={{{3}}}>]] }}
+
<includeonly>{{#invoke:Img|img}}</includeonly><noinclude>
 
 
<noinclude>
 
 
Creates an image with a link to the page.
 
Creates an image with a link to the page.
 
===Usage===
 
===Usage===
 +
The template is case insensitive.
 +
 +
<code>
 +
<nowiki>{{img | Item | Width(Optional) | Height(Optional)}} </nowiki><br>
 +
|word=1</code> Adds the item name after the picture.
 +
 +
 +
===Example===
  
 
<code>
 
<code>
<nowiki>{{Image Link | Item | Width(Optional) | Height(Optional) }} </nowiki>
+
<nowiki>{{img|gold|}} </nowiki>
 
</code>
 
</code>
  
===Example===
+
[[Gold|<img src="https://play.idlescape.com/images/money_icon.png" alt="Gold"  width=20>]]
  
 
<code>
 
<code>
<nowiki>{{Image Link|Gold|20}} </nowiki>
+
<nowiki>{{img|gold|25|25|word=1}} </nowiki>
 
</code>
 
</code>
  
[[Gold|<img src="https://idlescape.com/images/money_icon.png" alt="Gold"  width=20>]]
+
[[Gold|<img src="https://play.idlescape.com/images/money_icon.png" alt="Gold"  width=25 height=25> Gold]]
  
 
===List===
 
===List===
Gold
+
*Most Items - Gold to Useless Scraps
 +
*Most Monsters - Regular, Elite, Dungeon, Event
 +
*Skills - Mining etc.
 +
*Most Enchantments - Embers to Intuition
 +
*Abilities - Range Auto Attack
 +
*Zones
 +
 
 +
====Exceptions====
 +
{| class="wikitable"
 +
!For
 +
!Use
 +
|-
 +
| Cooking Enchantment|| Cooking Enchantment
 +
|-
 +
| Cooking  Skill || Cooking
 +
|-
 +
| Runecrafting Enchantment|| Runecrafting Enchantment
 +
|-
 +
| Runecrafting Skill || Runecrafting
 +
|-
 +
| Fishing Enchantment || Fishing Enchantment
 +
|-
 +
| Fishing Skill || Fishing
 +
|-
 +
|Crafting Enchantment || Crafting Enchantment
 +
|-
 +
| Crafting Skill || Crafting
 +
|-
 +
|}
  
 
[[Category:Template]]
 
[[Category:Template]]
 
</noinclude>
 
</noinclude>

Latest revision as of 17:35, 2 June 2024

Creates an image with a link to the page.

Usage

The template is case insensitive.

{{img | Item | Width(Optional) | Height(Optional)}}
|word=1
Adds the item name after the picture.


Example

{{img|gold|}}

Gold

{{img|gold|25|25|word=1}}

Gold Gold

List

  • Most Items - Gold to Useless Scraps
  • Most Monsters - Regular, Elite, Dungeon, Event
  • Skills - Mining etc.
  • Most Enchantments - Embers to Intuition
  • Abilities - Range Auto Attack
  • Zones

Exceptions

For Use
Cooking Enchantment Cooking Enchantment
Cooking Skill Cooking
Runecrafting Enchantment Runecrafting Enchantment
Runecrafting Skill Runecrafting
Fishing Enchantment Fishing Enchantment
Fishing Skill Fishing
Crafting Enchantment Crafting Enchantment
Crafting Skill Crafting