Jump to content

Template:Skill infobox: Difference between revisions

From inZOI Wiki
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 15: Line 15:
! style="background:#ececec; text-align:left; padding:4px;" | Related Objects
! style="background:#ececec; text-align:left; padding:4px;" | Related Objects
| style="padding:4px;" | {{#arraymap:{{{related objects|}}}|,|x|[[x]]}}
| style="padding:4px;" | {{#arraymap:{{{related objects|}}}|,|x|[[x]]}}
|-
! style="background:#ececec; text-align:left; padding:4px;" | Related Activities
| style="padding:4px;" | {{#arraymap:{{{related activities|}}}|,|x|[[x]]}}
|-
! style="background:#ececec; text-align:left; padding:4px;" | Related Interactions
| style="padding:4px;" | {{#arraymap:{{{related interactions|}}}|,|x|[[x]]}}
|-
|-
|}
|}
Line 24: Line 30:
{{#set:Improvement={{{improvement|}}} |+sep}}
{{#set:Improvement={{{improvement|}}} |+sep}}
{{#set:Related Objects={{{related objects|}}} |+sep}}
{{#set:Related Objects={{{related objects|}}} |+sep}}
{{#set:Related Activities={{{related activities|}}} |+sep}}
{{#set:Related Interactions={{{related interactions|}}} |+sep}}
</div>
</div>
[[Category:Skills]]
[[Category:Skills]]
Line 36: Line 44:
* '''improvement''' - Methods or actions to enhance the skill
* '''improvement''' - Methods or actions to enhance the skill
* '''related objects''' - Items or objects associated with the skill (comma-separated)
* '''related objects''' - Items or objects associated with the skill (comma-separated)
 
* '''related activities''' - [[Activities]] associated with the skill (comma-separated)
* '''related interactions''' - [[Interactions]] associated with the skill (comma-separated)
==Usage==
==Usage==
<pre>
<pre>
Line 45: Line 54:
| improvement =  
| improvement =  
| related objects =  
| related objects =  
| related activities =
| related interactions =
}}
}}
</pre>
</pre>
Line 55: Line 66:
| improvement = Practice recipes, attend cooking classes
| improvement = Practice recipes, attend cooking classes
| related objects = Stove, Knife, Cookbook
| related objects = Stove, Knife, Cookbook
| related activities =
| related interactions =
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>

Latest revision as of 12:44, 1 April 2025


This template creates an infobox for Skills with Semantic MediaWiki annotations.

Parameters

  • skill - name of the Skill (e.g. Cooking)
  • icon – Filename for the skill's icon (e.g. Cooking icon.png)
  • description - Brief description of the skill
  • improvement - Methods or actions to enhance the skill
  • related objects - Items or objects associated with the skill (comma-separated)
  • related activities - Activities associated with the skill (comma-separated)
  • related interactions - Interactions associated with the skill (comma-separated)

Usage

{{Skill infobox
| skill = 
| icon = 
| description = 
| improvement = 
| related objects = 
| related activities = 
| related interactions = 
}}

Example Usage

{{Skill infobox
| skill = Cooking
| icon = Cooking icon.png
| description = The ability to prepare food and meals.
| improvement = Practice recipes, attend cooking classes
| related objects = Stove, Knife, Cookbook
| related activities = 
| related interactions = 
}}