Template:Preference infobox: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
! colspan="2" style="text-align:center; font-size:120%; background:#ccf; padding:4px;" | {{{preference}}} | ! colspan="2" style="text-align:center; font-size:120%; background:#ccf; padding:4px;" | {{{preference}}} | ||
|- | |- | ||
| colspan="2" style="text-align:center; padding:4px;" | [[File:{{{icon|Placeholder.png}}} | | colspan="2" style="text-align:center; padding:4px;" | [[File:{{{icon|Placeholder.png}}}]] | ||
|- | |- | ||
! style="background:#ececec; text-align:left; padding:4px;" | Type | ! style="background:#ececec; text-align:left; padding:4px;" | Type | ||
| style="padding:4px;" | {{{type}}} | | style="padding:4px;" | [[{{{type}}}]] | ||
|- | |- | ||
! colspan="2" style="background:#ececec; text-align:center; padding:4px;" | '''Description''' | ! colspan="2" style="background:#ececec; text-align:center; padding:4px;" | '''Description''' | ||
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;" | Related | ! style="background:#ececec; text-align:left; padding:4px;" | Related Desired Life | ||
| style="padding:4px;" | {{#arraymap:{{{related | | style="padding:4px;" | {{#arraymap:{{{related desired life|}}}|,|x|[[x]]}} | ||
|- | |- | ||
|} | |} | ||
[[{{PAGENAME}}]] is | [[{{PAGENAME}}]] is a [[Preference]] for your [[Zoi]] in [[inZOI]]. | ||
<div style="display:none;"> | <div style="display:none;"> | ||
{{#set:Preference={{{preference|}}} }} | {{#set:Preference={{{preference|}}} }} | ||
{{#set:Icon=File:{{{icon|}}} }} | {{#set:Icon=File:{{{icon|}}} }} | ||
{{#set: | {{#set:Type={{{type|}}} }} | ||
{{#set:Description={{{description|}}} }} | {{#set:Description={{{description|}}} }} | ||
{{#set:Related | {{#set:Related Desired Life={{{related desired life|}}} |+sep}} | ||
</div> | </div> | ||
[[Category:Preferences]] | [[Category:Preferences]] | ||
Line 31: | Line 31: | ||
==Parameters== | ==Parameters== | ||
* '''preference''' - name of the Preference (e.g. | * '''preference''' - name of the Preference (e.g. Boxing) | ||
* '''icon''' – Filename for the preference's icon (e.g. | * '''icon''' – Filename for the preference's icon (e.g. Boxing icon1.png) | ||
* '''type''' - | |||
* '''description''' - | |||
* '''related desired life''' - | |||
==Usage== | ==Usage== | ||
<pre> | <pre> | ||
Line 40: | Line 43: | ||
| type = | | type = | ||
| description = | | description = | ||
| related | | related desired life = | ||
}} | }} | ||
</pre> | </pre> | ||
Line 46: | Line 49: | ||
<pre> | <pre> | ||
{{Preference infobox | {{Preference infobox | ||
| preference = | | preference = Boxing | ||
| icon = | | icon = Boxing icon1.png | ||
| type = Fitness | |||
| description = ?????? | |||
| related desired life = ?????? | |||
}} | }} | ||
</pre> | </pre> | ||
{{Preference infobox | {{Preference infobox | ||
| preference = | | preference = Boxing | ||
| icon = | | icon = Boxing icon1.png | ||
| type = Fitness | |||
| description = ?????? | |||
| related desired life = ?????? | |||
}} | }} | ||
</noinclude> | </noinclude> |
Latest revision as of 11:49, 27 March 2025
This template creates an infobox for Preferences with Semantic MediaWiki annotations.
Parameters
- preference - name of the Preference (e.g. Boxing)
- icon – Filename for the preference's icon (e.g. Boxing icon1.png)
- type -
- description -
- related desired life -
Usage
{{Preference infobox | preference = | icon = | type = | description = | related desired life = }}
Example Usage
{{Preference infobox | preference = Boxing | icon = Boxing icon1.png | type = Fitness | description = ?????? | related desired life = ?????? }}
Boxing | |
---|---|
![]() | |
Type | Fitness |
Description | |
?????? | |
Related Desired Life | ?????? |
Preference infobox is a Preference for your Zoi in inZOI.