Jump to content

Template:Skill infobox: Difference between revisions

From inZOI Wiki
No edit summary
No edit summary
 
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 25: Line 31:
{{#set:Related Objects={{{related objects|}}} |+sep}}
{{#set:Related Objects={{{related objects|}}} |+sep}}
{{#set:Related Activities={{{related activities|}}} |+sep}}
{{#set:Related Activities={{{related activities|}}} |+sep}}
{{#set:Related Interactions={{{related interactions|}}} |+sep}}
</div>
</div>
[[Category:Skills]]
[[Category:Skills]]
Line 38: Line 45:
* '''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 activities''' - [[Activities]] associated with the skill (comma-separated)
* '''related interactions''' - [[Interactions]] associated with the skill (comma-separated)
==Usage==
==Usage==
<pre>
<pre>
Line 47: Line 55:
| related objects =  
| related objects =  
| related activities =  
| related activities =  
| related interactions =
}}
}}
</pre>
</pre>
Line 58: Line 67:
| related objects = Stove, Knife, Cookbook
| related objects = Stove, Knife, Cookbook
| related activities =  
| 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 = 
}}