Template:Relationships: Difference between revisions

From The Sims Wiki, a collaborative database for The Sims series
Jump to navigation Jump to search
Content added Content deleted
sims>Icemandeaf
No edit summary
m (66 revisions imported: Import from https://sims.wikia.com)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>|-
<includeonly>|-
|{{#if:{{{image}}}|<div style="width:45px;height:45px;overflow:hidden;border-radius:8px;border:2px solid #8080ff;"><div style="position:relative;top:-10px;left:-12px;">[[File:{{{image}}}|70px|{{#sub:{{{image}}}|0|-4}}|link=Fanon:{{#sub:{{{image}}}|0|-4}}]]</div></div>}}
|{{#if:{{{image}}}|<div style="width:45px;height:45px;overflow:hidden;border-radius:8px;border:2px solid #8080ff;"><div style="position:relative;top:-10px;left:-12px;">[[File:{{{image}}}|70px|{{#explode:{{{image}}}|.}}]]</div></div>}}
|{{#if:{{{name}}}|{{{name}}} }}
|{{#if:{{{name|}}}|{{{name}}} }}
|{{#switch:{{{daily}}}
|{{#switch:{{{daily}}}
|Friend Crush=[[File:Friend.png|22px|Friend]][[File:Crush icon.png|22px|Crush]]
|Friend Crush=[[File:Friend.png|22px|Friend]][[File:Crush icon.png|22px|Crush]]
Line 32: Line 32:
|1=[[File:1 bolt.png]]
|1=[[File:1 bolt.png]]
|-1=&nbsp;[[File:-1 bolt.png]]
|-1=&nbsp;[[File:-1 bolt.png]]
}}
}}{{#if:{{{family|}}}|{{#switch:{{GetRelationshipImage|{{{family}}} }}
|{{#if:{{{family|}}}|{{#switch:{{GetRelationshipImage|{{{family}}} }}
| = &nbsp;[[File:Family Member.png|16px|{{{family}}}]]
| = &nbsp;[[File:Family Member.png|16px|{{{family}}}]]
|{{GetRelationshipImage|{{{family}}} }} }}|}}</includeonly>
|{{GetRelationshipImage|{{{family}}} }} }}|}}</includeonly>

Latest revision as of 18:22, 23 February 2019


Template documentation (View · Edit · History · Purge)
Description
  • This template produces a table of Sims relationships in the Sims 2.
  • This template requires parser functions to be enabled (Wikia default: on).
  • This template is meant to be used with {{Relationships-start}} and {{Relationships-end}}.
Syntax
{{Relationships-start}}
{{Relationships
|image     = Example.jpg
|name      = name
|daily     = daily relationship 
|lifetime  = lifetime relationship
|chemistry = chemistry
|family    = family relationship
}}
{{Relationships-end}}
Sample output
Image Name Daily Lifetime Chemistry Family
.}}
Sim FriendCrush Best FriendMarried  
.}}
Sim 2 Friend BFF  Daughter
.}}
Sim 3 Friend Best Friend  Father

Complete code:
{{Relationships-start}}
{{Relationships
|image = Example.jpg
|name = Sim
|daily = Friend Crush
|lifetime = Best Friend Married
|chemistry = -1
}}
{{Relationships
|image = Example.jpg
|name = Sim 2
|daily = Friend
|lifetime = BFF
|family = Daughter
}}
{{Relationships
|image = Example.jpg
|name = Sim 3
|daily = Friend
|lifetime = Best Friend
|family = Father
}}
{{Relationships-end}}

Notes
  • daily may have the following values:
Friend
Crush
Steady
Enemy
Friend Crush
Friend Steady
  • lifetime may have the following values:
Best Friend
BFF
Lover
Engaged
Married
Best Friend Lover
Best Friend Engaged
Best Friend Married
BFF Lover
BFF Engaged
BFF Married
  • chemistry may have the following values:
-1
1
2
3

Visit Template:Relationships/doc to edit this text! (How does this work?) (Refresh this text - why?)
This page uses Creative Commons Licensed content from Wikia Templates (view authors).