Jump to content

Template:Preference infobox: Difference between revisions

From inZOI Wiki
Created page with "<includeonly> {| class="infobox" style="font-size:90%; border:1px solid #aaa; background:#fff;" |- ! 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}}}|100px]] |- ! colspan="2" style="background:#ececec; text-align:center; padding:4px;" | '''Description''' |- ! colspan="2" style="background:#ffffff; text-align:left; padding:4px..."
 
No edit summary
 
(9 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}}}|100px]]
| colspan="2" style="text-align:center; padding:4px;" | [[File:{{{icon|Placeholder.png}}}]]
|-
! style="background:#ececec; text-align:left; 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 10: 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 Desired Life
| style="padding:4px;" | {{#arraymap:{{{traits|}}}|,|x|[[x]]}}
| style="padding:4px;" | {{#arraymap:{{{related desired life|}}}|,|x|[[x]]}}
|-
! style="background:#ececec; text-align:left; padding:4px;" | Values
| style="padding:4px;" | {{#arraymap:{{{values|}}}|,|x|[[x]]}}
|-
! style="background:#ececec; text-align:left; padding:4px;" | Ambitions
| style="padding:4px;" | {{#arraymap:{{{ambitions|}}}|,|x|[[x]]}}
|-
! style="background:#ececec; text-align:left; padding:4px;" | Skills
| style="padding:4px;" | {{#arraymap:{{{skills|}}}|,|x|[[x]]}}
|-
|-
|}
|}
[[{{PAGENAME}}]] is an [[Preference]].
[[{{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:Type={{{type|}}} }}
{{#set:Description={{{description|}}} }}
{{#set:Description={{{description|}}} }}
{{#set:Traits={{{traits|}}} |+sep}}
{{#set:Related Desired Life={{{related desired life|}}} |+sep}}
{{#set:Values={{{values|}}} |+sep}}
{{#set:Ambitions={{{ambitions|}}} |+sep}}
{{#set:Skills={{{skills|}}} |+sep}}
</div>
</div>
[[Category:Preferences]]
[[Category:Preferences]]
Line 39: Line 31:


==Parameters==
==Parameters==
* '''preference''' - name of the Preference (e.g. Loved Life)
* '''preference''' - name of the Preference (e.g. Boxing)
* '''icon''' – Filename for the preference's icon (e.g. Loved Life icon1.png)
* '''icon''' – Filename for the preference's icon (e.g. Boxing icon1.png)
* '''type''' -
* '''description''' -
* '''related desired life''' -
==Usage==
==Usage==
<pre>
<pre>
Line 46: Line 41:
| preference =  
| preference =  
| icon =  
| icon =  
| type =
| description =  
| description =  
| related desired life =
}}
}}
</pre>
</pre>
Line 52: Line 49:
<pre>
<pre>
{{Preference infobox
{{Preference infobox
| preference = Family Happiness
| preference = Boxing
| icon = Family Happiness icon1.png
| icon = Boxing icon1.png
| type = Fitness
| description = ??????
| related desired life = ??????
}}
}}
</pre>
</pre>
{{Preference infobox
{{Preference infobox
| preference = Family Happiness
| preference = Boxing
| icon = Family Happiness icon1.png
| 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.