Jump to content

Template:Need 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;" | {{{Need}}} |- | colspan="2" style="text-align:center; padding:4px;" | [[File:{{{icon|Placeholder.png}}}|100px]] |- ! colspan="2" style="background:#ececec; text-align:center; padding:4px;" | '''Importance''' |- ! colspan="2" style="background:#ffffff; text-align:left; padding:4px; borde..."
 
No edit summary
 
(5 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;" | {{{Need}}}
! colspan="2" style="text-align:center; font-size:120%; background:#ccf; padding:4px;" | {{{Need}}}
|-
|-
| 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}}}|300px]]
|-
! colspan="2" style="background:#ececec; text-align:center; padding:4px;" | '''Importance'''
|-
! colspan="2" style="background:#ffffff; text-align:left; padding:4px; border-top:1px solid #ddd; font-weight: normal;" | {{{importance}}}
|-
|-
! colspan="2" style="background:#ececec; text-align:center; padding:4px;" | '''Description'''
! colspan="2" style="background:#ececec; text-align:center; padding:4px;" | '''Description'''
Line 16: Line 12:
! style="background:#ececec; text-align:left; padding:4px;" | Improvement
! style="background:#ececec; text-align:left; padding:4px;" | Improvement
| style="padding:4px;" | {{#arraymap:{{{improvement|}}}|,|x|x}}
| style="padding:4px;" | {{#arraymap:{{{improvement|}}}|,|x|x}}
|-
! style="background:#ececec; text-align:left; padding:4px;" | Negative Consequences
| style="padding:4px;" | {{#arraymap:{{{negative consequences|}}}|,|x|[[x]]}}
|-
! style="background:#ececec; text-align:left; padding:4px;" | Priority
| style="padding:4px;" | {{{priority}}}
|-
|-
! style="background:#ececec; text-align:left; padding:4px;" | Related Objects
! style="background:#ececec; text-align:left; padding:4px;" | Related Objects
Line 24: Line 26:
|-
|-
|}
|}
[[{{PAGENAME}}]] is a [[Need]].
[[{{PAGENAME}}]] is a [[Need]] for your [[Zoi]] in [[inZOI]].
<div style="display:none;">
<div style="display:none;">
{{#set:Need={{{Need|}}} }}
{{#set:Need={{{Need|}}} }}
{{#set:Icon=File:{{{icon|}}} }}
{{#set:Icon=File:{{{icon|}}} }}
{{#set:Importance={{{importance|}}} }}
{{#set:Description={{{description|}}} }}
{{#set:Description={{{description|}}} }}
{{#set:Improvement={{{improvement|}}} |+sep}}
{{#set:Improvement={{{improvement|}}} |+sep}}
{{#set:Negative Consequences={{{negative consequences|}}} |+sep}}
{{#set:Priority={{{priority|}}} }}
{{#set:Related Objects={{{related objects|}}} |+sep}}
{{#set:Related Objects={{{related objects|}}} |+sep}}
{{#set:Related Interactions={{{related interactions|}}} |+sep}}
{{#set:Related Interactions={{{related interactions|}}} |+sep}}
Line 42: Line 45:
* '''Need''' - name of the Need (e.g. Hunger)
* '''Need''' - name of the Need (e.g. Hunger)
* '''icon''' – Filename for the need's icon (e.g. Hunger icon.png)
* '''icon''' – Filename for the need's icon (e.g. Hunger icon.png)
* '''importance''' - Brief description of the need's significance or role
* '''description''' - General description of the need
* '''description''' - General description of the need
* '''improvement''' - Methods or actions to satisfy or address the need
* '''improvement''' - Methods or actions to satisfy or address the need
* '''negative consequences''' -
* '''priority''' - Brief description of the need's significance or role
* '''related objects''' - Items or objects associated with the need (comma-separated)
* '''related objects''' - Items or objects associated with the need (comma-separated)
* '''related interactions''' - Actions or interactions tied to the need (comma-separated)
* '''related interactions''' - Actions or interactions tied to the need (comma-separated)
Line 53: Line 57:
| Need =  
| Need =  
| icon =  
| icon =  
| importance =
| description =  
| description =  
| improvement =  
| improvement =  
| negative consequences =
| priority =
| related objects =  
| related objects =  
| related interactions =  
| related interactions =  
Line 65: Line 70:
| Need = Hunger
| Need = Hunger
| icon = Hunger icon.png
| icon = Hunger icon.png
| importance = Essential for survival and energy.
| description = The physical sensation and requirement for food intake.
| description = The physical sensation and requirement for food intake.
| improvement = Eat food, cook meals
| improvement = Eat food, cook meals
| negative consequences = ???
| priority = Essential for survival and energy.
| related objects = Food, Plate, Stove
| related objects = Food, Plate, Stove
| related interactions = Eating, Cooking
| related interactions = Eating, Cooking

Latest revision as of 05:49, 28 March 2025


This template creates an infobox for Needs with Semantic MediaWiki annotations.

Parameters

  • Need - name of the Need (e.g. Hunger)
  • icon – Filename for the need's icon (e.g. Hunger icon.png)
  • description - General description of the need
  • improvement - Methods or actions to satisfy or address the need
  • negative consequences -
  • priority - Brief description of the need's significance or role
  • related objects - Items or objects associated with the need (comma-separated)
  • related interactions - Actions or interactions tied to the need (comma-separated)

Usage

{{Need infobox
| Need = 
| icon = 
| description = 
| improvement = 
| negative consequences = 
| priority = 
| related objects = 
| related interactions = 
}}

Example Usage

{{Need infobox
| Need = Hunger
| icon = Hunger icon.png
| description = The physical sensation and requirement for food intake.
| improvement = Eat food, cook meals
| negative consequences = ???
| priority = Essential for survival and energy.
| related objects = Food, Plate, Stove
| related interactions = Eating, Cooking
}}