Template:Skill/doc: Difference between revisions

From Idle Clans wiki
(Created page with "==Usage== <code><nowiki>{{Skill|<skill>|[img=<image>]|[txt=<text>]}}</nowiki></code> * skill: The name of the skill. * (Optional) img: If provided, this will be used as the image; if not, the skill name will be used. * (Optional) txt: If provided, this will be used as the text; if not, the skill name will be used. ==Example== {| class="wikitable" style="text-align:center" ! Input ! Output |- |<code><nowiki>{{Skill|Mining}}</nowiki></code> |{{Skill|Mining}} |- |<code><no...")
 
No edit summary
Line 1: Line 1:
==Skills (visual test)==
{{Skill|Attack}}, {{Skill|Strength}}, {{Skill|Defence}}, {{Skill|Archery}}, {{Skill|Magic}}, {{Skill|Health}}, {{Skill|Crafting}}, {{Skill|Woodcutting}}, {{Skill|Carpentry}}, {{Skill|Fishing}}, {{Skill|Cooking}}, {{Skill|Mining}}, {{Skill|Smithing}}, {{Skill|Foraging}}, {{Skill|Farming}}, {{Skill|Agility}}, {{Skill|Plundering}}, {{Skill|Enchanting}} and  {{Skill|Brewing}}.
==Usage==
==Usage==
<code><nowiki>{{Skill|<skill>|[img=<image>]|[txt=<text>]}}</nowiki></code>
<code><nowiki>{{Skill|<skill>|[txt=<text>]}}</nowiki></code>


* skill: The name of the skill.
* skill: The name of the skill.
* (Optional) img: If provided, this will be used as the image; if not, the skill name will be used.
* (Optional) txt: If provided, this will be used as the text; if not, the skill name will be used.
* (Optional) txt: If provided, this will be used as the text; if not, the skill name will be used.
==Example==
==Example==
Line 9: Line 11:
! Input
! Input
! Output
! Output
|-
|<code><nowiki>{{Skill|Mining}}</nowiki></code>
|{{Skill|Mining}}
|-
|-
|<code><nowiki>{{Skill|Woodcutting}}</nowiki></code>
|<code><nowiki>{{Skill|Woodcutting}}</nowiki></code>
|{{Skill|Woodcutting}}
|{{Skill|Woodcutting}}
|-
|-
|<code><nowiki>{{Skill|Attack|img=rigour}}</nowiki></code>
|<code><nowiki>{{Skill|Attack}}</nowiki></code>
|{{Skill|Attack|img=rigour}}
|{{Skill|Attack}}
|-
|<code><nowiki>{{Skill|Archery|img=combat}}</nowiki></code>
|{{Skill|Archery|img=combat}}
|-
|-
|<code><nowiki>{{Skill|Foraging|txt=berry picking}}</nowiki></code>
|<code><nowiki>{{Skill|Foraging|txt=berry picking}}</nowiki></code>
Line 27: Line 23:
|<code><nowiki>{{Skill|Enchanting|txt=Weapon Enchanting}}</nowiki></code>
|<code><nowiki>{{Skill|Enchanting|txt=Weapon Enchanting}}</nowiki></code>
|{{Skill|Enchanting|txt=Weapon Enchanting}}
|{{Skill|Enchanting|txt=Weapon Enchanting}}
|-
|<code><nowiki>{{Skill|Mining|img=smithing|txt=not smithing}}</nowiki></code>
|{{Skill|Mining|img=smithing|txt=not smithing}}
|-
|<code><nowiki>{{Skill|Mining|txt=Coal Mining|img=gold}}</nowiki></code>
|{{Skill|Mining|txt=Coal Mining|img=gold}}
|}
|}

Revision as of 14:44, 24 May 2024

Skills (visual test)

Rigour.png Attack, Strength.png Strength, Defence.png Defence, Archery.png Archery, Magic.png Magic, Health.png Health, Crafting.png Crafting, Woodcutting.png Woodcutting, Carpentry.png Carpentry, Fishing.png Fishing, Cooking.png Cooking, Mining.png Mining, Smithing.png Smithing, Foraging.png Foraging, Farming.png Farming, Agility.png Agility, Plundering.png Plundering, Enchanting.png Enchanting and Brewing.png Brewing.

Usage

{{Skill|<skill>|[txt=<text>]}}

  • skill: The name of the skill.
  • (Optional) txt: If provided, this will be used as the text; if not, the skill name will be used.

Example

Input Output
{{Skill|Woodcutting}} Woodcutting.png Woodcutting
{{Skill|Attack}} Rigour.png Attack
{{Skill|Foraging|txt=berry picking}} Foraging.png berry picking
{{Skill|Enchanting|txt=Weapon Enchanting}} Enchanting.png Weapon Enchanting