Template:Preference infobox: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 13: | Line 13: | ||
! colspan="2" style="background:#ffffff; text-align:left; padding:4px; border-top:1px solid #ddd; font-weight: normal;" | {{{description}}} | ! colspan="2" style="background:#ffffff; text-align:left; padding:4px; border-top:1px solid #ddd; font-weight: normal;" | {{{description}}} | ||
|- | |- | ||
! style="background:#ececec; text-align:left; padding:4px;" | Traits | ! style="background:#ececec; text-align:left; padding:4px;" | Related Traits | ||
| style="padding:4px;" | {{#arraymap:{{{traits|}}}|,|x|[[x]]}} | | style="padding:4px;" | {{#arraymap:{{{related traits|}}}|,|x|[[x]]}} | ||
|- | |- | ||
|} | |} | ||
| Line 23: | Line 23: | ||
{{#set:Values={{{type|}}} }} | {{#set:Values={{{type|}}} }} | ||
{{#set:Description={{{description|}}} }} | {{#set:Description={{{description|}}} }} | ||
{{#set:Traits={{{traits|}}} |+sep}} | {{#set:Related Traits={{{related traits|}}} |+sep}} | ||
</div> | </div> | ||
[[Category:Preferences]] | [[Category:Preferences]] | ||
| Line 40: | Line 40: | ||
| type = | | type = | ||
| description = | | description = | ||
| traits = | | related traits = | ||
}} | }} | ||
</pre> | </pre> | ||
Revision as of 21:52, 22 February 2025
This template creates an infobox for Preferences with Semantic MediaWiki annotations.
Parameters
- preference - name of the Preference (e.g. Loved Life)
- icon – Filename for the preference's icon (e.g. Loved Life icon1.png)
Usage
{{Preference infobox
| preference =
| icon =
| type =
| description =
| related traits =
}}
Example Usage
{{Preference infobox
| preference = Family Happiness
| icon = Family Happiness icon1.png
}}
| Family Happiness | |
|---|---|
| Type | {{{type}}} |
| Description | |
| {{{description}}} | |
| Related Traits | |
Preference infobox is an Preference.