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
m (Formatting)
sims>Icemandeaf
m (change parameter names from uppercase to lowercase)
Line 1: Line 1:
<includeonly>|-
<includeonly>|-
|{{#if:{{{Image}}}|[[File:{{{Image}}}|50px]]}}
|{{#if:{{{image}}}|[[File:{{{image}}}|50px]]}}
|{{#if:{{{Name}}}|{{{Name}}} }}
|{{#if:{{{name}}}|{{{name}}} }}
|{{#switch:{{{Daily}}}|Friend Crush=[[File:Friend.png|22px|Friend]][[File:Crush icon.png|22px|Crush]]|Friend Steady=[[File:Friend.png|22px|Friend]][[File:Went Steady with -Sim-.png|22px|Steady]]|Friend=[[File:Friend.png|22px|Friend]]|Crush=[[File:Crush icon.png|22px|Crush]]|Steady=[[File:Went Steady with -Sim-.png|22px|Steady]]|Enemy=[[File:Made Enemies with -Sim-.png|22px|Enemy]]}}
|{{#switch:{{{daily}}}|Friend Crush=[[File:Friend.png|22px|Friend]][[File:Crush icon.png|22px|Crush]]|Friend Steady=[[File:Friend.png|22px|Friend]][[File:Went Steady with -Sim-.png|22px|Steady]]|Friend=[[File:Friend.png|22px|Friend]]|Crush=[[File:Crush icon.png|22px|Crush]]|Steady=[[File:Went Steady with -Sim-.png|22px|Steady]]|Enemy=[[File:Made Enemies with -Sim-.png|22px|Enemy]]}}
|{{#switch:{{{Lifetime}}}|Best Friend Lover=[[File:Became Best Friends with -Sim-.png|22px|Best Friend]][[File:Fell in Love with -Sim-.png|22px|Lover]]|Best Friend Engaged=[[File:Became Best Friends with -Sim-.png|22px|Best Friend]][[File:Got Engaged to -Sim-.png|22px|Engaged]]|Best Friend Married=[[File:Became Best Friends with -Sim-.png|22px|Best Friend]][[File:Got Married to -Sim-.png|22px|Married]]|Best Friend=[[File:Became Best Friends with -Sim-.png|22px|Best Friend]]|BFF Lover=[[File:Made a BFF.png|22px|BFF]][[File:Fell in Love with -Sim-.png|22px|Lover]]|BFF Engaged=[[File:Made a BFF.png|22px|BFF]][[File:Got Engaged to -Sim-.png|22px|Engaged]]|BFF Married=[[File:Made a BFF.png|22px|BFF]][[File:Got Married to -Sim-.png|22px|Married]]|BFF=[[File:Made a BFF.png|22px|BFF]]|Lover=[[File:Fell in Love with -Sim-.png|22px|Lover]]|Engaged=[[File:Got Engaged to -Sim-.png|22px|Engaged]]|Married=[[File:Got Married to -Sim-.png|22px|Married]]}}
|{{#switch:{{{lifetime}}}|Best Friend Lover=[[File:Became Best Friends with -Sim-.png|22px|Best Friend]][[File:Fell in Love with -Sim-.png|22px|Lover]]|Best Friend Engaged=[[File:Became Best Friends with -Sim-.png|22px|Best Friend]][[File:Got Engaged to -Sim-.png|22px|Engaged]]|Best Friend Married=[[File:Became Best Friends with -Sim-.png|22px|Best Friend]][[File:Got Married to -Sim-.png|22px|Married]]|Best Friend=[[File:Became Best Friends with -Sim-.png|22px|Best Friend]]|BFF Lover=[[File:Made a BFF.png|22px|BFF]][[File:Fell in Love with -Sim-.png|22px|Lover]]|BFF Engaged=[[File:Made a BFF.png|22px|BFF]][[File:Got Engaged to -Sim-.png|22px|Engaged]]|BFF Married=[[File:Made a BFF.png|22px|BFF]][[File:Got Married to -Sim-.png|22px|Married]]|BFF=[[File:Made a BFF.png|22px|BFF]]|Lover=[[File:Fell in Love with -Sim-.png|22px|Lover]]|Engaged=[[File:Got Engaged to -Sim-.png|22px|Engaged]]|Married=[[File:Got Married to -Sim-.png|22px|Married]]}}
|{{#switch:{{{Chemistry}}}|3=[[File:3 bolts.png]]|2=[[File:2 bolts.png]]|1=[[File:1 bolt.png]]|-1=[[File:-1 bolt.png]]}}{{#if:{{{Family|}}}|{{#switch:{{GetRelationshipImage|{{{Family}}} }}| = [[File:Family Member.png|16px|{{{Family}}}]]|{{GetRelationshipImage|{{{Family}}} }} }}|}}</includeonly>
|{{#switch:{{{Chemistry}}}|3=[[File:3 bolts.png]]|2=[[File:2 bolts.png]]|1=[[File:1 bolt.png]]|-1=[[File:-1 bolt.png]]}}{{#if:{{{family|}}}|{{#switch:{{GetRelationshipImage|{{{family}}} }}| = [[File:Family Member.png|16px|{{{family}}}]]|{{GetRelationshipImage|{{{family}}} }} }}|}}</includeonly>
<noinclude>
<noinclude>
{{documentation}}
{{documentation}}

Revision as of 00:29, 12 April 2014


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).