Template:Skill infobox: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
|- | |- | ||
! style="background:#ececec; text-align:left; padding:4px;" | Improvement | ! style="background:#ececec; text-align:left; padding:4px;" | Improvement | ||
| style="padding:4px;" | {{{improvement}}} | | style="padding:4px;" | {{#arraymap:{{{improvement|}}}|,|x|x}} | ||
|- | |- | ||
! 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]]}} | |||
|- | |- | ||
|} | |} | ||
[[{{PAGENAME}}]] is a [[Skill]]. | [[{{PAGENAME}}]] is a [[Skill]] for your [[Zoi]] in [[inZOI]]. | ||
<div style="display:none;"> | <div style="display:none;"> | ||
{{#set:Skill={{{skill|}}} }} | {{#set:Skill={{{skill|}}} }} | ||
{{#set:Icon=File:{{{icon|}}} }} | {{#set:Icon=File:{{{icon|}}} }} | ||
{{#set:Description={{{description|}}} }} | {{#set:Description={{{description|}}} }} | ||
{{#set:Improvement={{{improvement|}}} }} | {{#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 = }}