Template:Infobox Sim: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(per https://sims.wikia.com/wiki/Template:Infobox_Sim?curid=173863&diff=874333&oldid=861873) |
(Updating some more fields for the CC namespace) |
||
Line 3: | Line 3: | ||
{| class="metainfobox {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" cellpadding="1.5" |
{| class="metainfobox {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" cellpadding="1.5" |
||
! class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2"{{!}}{{{name|{{PAGENAME}}}}} |
! class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2"{{!}}{{{name|{{PAGENAME}}}}} |
||
<includeonly>{{ |
<includeonly>{{Namespace detect |main=[[Category:Sims]] |fanon=[[Category:Sims (fanon)]] |custom=[[Category:Sims (custom)]]}}</includeonly> |
||
{{!}}- |
{{!}}- |
||
Line 23: | Line 23: | ||
{{!}} Gender |
{{!}} Gender |
||
{{!}} {{GetGenderImage|{{{sex}}} }} {{#ifeq: {{{sex}}}| Ambiguous |[[Gender#Gender_ambiguity|Ambiguous]]|{{{sex}}} }} |
{{!}} {{GetGenderImage|{{{sex}}} }} {{#ifeq: {{{sex}}}| Ambiguous |[[Gender#Gender_ambiguity|Ambiguous]]|{{{sex}}} }} |
||
<includeonly>{{#ifeq: {{lc:{{{sex}}}}}| male |{{ |
<includeonly>{{#ifeq: {{lc:{{{sex}}}}}| male |{{Namespace detect |main=[[Category:Male Sims]] |fanon=[[Category:Male Sims (fanon)]] |custom=[[Category:Male Sims (custom)]]}} }}{{#ifeq: {{lc:{{{sex}}}}}| female |{{Namespace detect |main=[[Category:Female Sims]] |fanon=[[Category:Female Sims (fanon)]] |custom=[[Category:Female Sims (custom)]]}} }}{{#ifeq: {{lc:{{{sex}}}}}| ambiguous |{{Namespace detect |main=[[Category:Sims with an ambiguous gender]] |custom=[[Category:Sims with an ambiguous gender (custom)]]}} }}</includeonly> |
||
{{!}}- |
{{!}}- |
||
| {{#if:{{{sex2|}}}|<!-- If "sex2" used, ignore --> | <includeonly>{{ |
| {{#if:{{{sex2|}}}|<!-- If "sex2" used, ignore --> | <includeonly>{{Namespace detect |main=[[Category:Sims with no gender]] |fanon=[[Category:Sims with no gender (fanon)]] |custom=[[Category:Sims with no gender (custom)]]}}</includeonly>}} |
||
}} |
}} |
||
Line 31: | Line 31: | ||
{{!}} Gender |
{{!}} Gender |
||
{{!}} {{GetGender2Image|{{{sex2}}} }} {{#ifeq: {{{sex2}}}| Ambiguous |[[Gender#Gender_ambiguity|Ambiguous]]|{{{sex2}}} }} |
{{!}} {{GetGender2Image|{{{sex2}}} }} {{#ifeq: {{{sex2}}}| Ambiguous |[[Gender#Gender_ambiguity|Ambiguous]]|{{{sex2}}} }} |
||
<includeonly>{{#ifeq: {{lc:{{{sex2}}}}}| male |{{ |
<includeonly>{{#ifeq: {{lc:{{{sex2}}}}}| male |{{Namespace detect |main=[[Category:Male Sims]] |fanon=[[Category:Male Sims (fanon)]] |custom=[[Category:Male Sims (custom)]]}} }}{{#ifeq: {{lc:{{{sex2}}}}}| female |{{Namespace detect |main=[[Category:Female Sims]] |fanon=[[Category:Female Sims (fanon)]] |custom=[[Category:Female Sims (custom)]]}} }}{{#ifeq: {{lc:{{{sex2}}}}}| ambiguous |{{Namespace detect |main=[[Category:Sims with an ambiguous gender]] |custom=[[Category:Sims with an ambiguous gender (custom)]]}} }}</includeonly> |
||
{{!}}- |
{{!}}- |
||
| {{#if:{{{sex|}}}|<!-- If "sex" used, ignore --> | <includeonly>{{ |
| {{#if:{{{sex|}}}|<!-- If "sex" used, ignore --> | <includeonly>{{Namespace detect |main=[[Category:Sims with no gender]] |fanon=[[Category:Sims with no gender (fanon)]] |custom=[[Category:Sims with no gender (custom)]]}}</includeonly>}} |
||
}} |
}} |
||
Line 86: | Line 86: | ||
{{!}} Major |
{{!}} Major |
||
{{!}}[[File:{{{major}}}.png|20px]] {{{major}}} |
{{!}}[[File:{{{major}}}.png|20px]] {{{major}}} |
||
<includeonly>{{ |
<includeonly>{{Namespace detect |main=[[Category:{{{major}}} majors]] |fanon=[[Category:{{{major}}} majors (fanon)]] |custom=[[Category:{{{major}}} majors (custom)]]}}</includeonly> |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
Line 93: | Line 93: | ||
{{!}} Year |
{{!}} Year |
||
{{!}} {{{year}}} |
{{!}} {{{year}}} |
||
<includeonly>{{#ifeq: {{lc:{{{year}}}}} | freshman | {{ |
<includeonly>{{#ifeq: {{lc:{{{year}}}}} | freshman | {{Namespace detect |main=[[Category:Freshmen]] |fanon=[[Category:Freshmen (fanon)]] |custom=[[Category:Freshmen (custom)]]}} }}{{#ifeq: {{lc:{{{year}}}}} | sophomore | {{Namespace detect |main=[[Category:Sophomores]] |fanon=[[Category:Sophomores (fanon)]] |custom=[[Category:Sophomores (custom)]]}} }}{{#ifeq: {{lc:{{{year}}}}} | junior | {{Namespace detect |main=[[Category:Juniors]] |fanon=[[Category:Juniors (fanon)]] |custom=[[Category:Juniors (custom)]]}} }}{{#ifeq: {{lc:{{{year}}}}} | senior | {{Namespace detect |main=[[Category:Seniors]] |fanon=[[Category:Seniors (fanon)]] |custom=[[Category:Seniors (custom)]]}} }}</includeonly> |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
Line 158: | Line 158: | ||
{{!}} Children |
{{!}} Children |
||
{{!}} {{{child}}} |
{{!}} {{{child}}} |
||
<includeonly>{{#ifeq: {{lc:{{{child|}}}}}| none | | {{#ifeq: {{lc:{{{child|}}}}}| unknown |<!-- Not known to have children --> | {{ |
<includeonly>{{#ifeq: {{lc:{{{child|}}}}}| none | | {{#ifeq: {{lc:{{{child|}}}}}| unknown |<!-- Not known to have children --> | {{Namespace detect |main=[[Category:Parents]] |fanon=[[Category:Parents (fanon)]] |custom=[[Category:Parents (custom)]]}} }} }}</includeonly> |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
Line 183: | Line 183: | ||
{{!}} Pets |
{{!}} Pets |
||
{{!}} {{{pets}}} |
{{!}} {{{pets}}} |
||
<includeonly>{{ |
<includeonly>{{Namespace detect |main=[[Category:Pet owners]] |fanon=[[Category:Pet owners (fanon)]] |custom=[[Category:Pet owners (custom)]]}}</includeonly> |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
Line 447: | Line 447: | ||
{{!}} Celebrity status |
{{!}} Celebrity status |
||
{{!}} {{GetCelebrityImage|{{{celebritystatus}}} }} |
{{!}} {{GetCelebrityImage|{{{celebritystatus}}} }} |
||
<includeonly>{{ |
<includeonly>{{Namespace detect |main=[[Category:Celebrities]] |fanon=[[Category:Celebrities (fanon)]] |custom=[[Category:Celebrities (custom)]]}}</includeonly> |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
Line 528: | Line 528: | ||
{{!}} Playability |
{{!}} Playability |
||
{{!}} {{{play}}} |
{{!}} {{{play}}} |
||
<includeonly>{{GetPlayCat|{{{play}}} }}{{#if: {{{neighbor|}}} | {{#ifeq: {{{play|}}}| Townie | {{#ifeq: {{{neighbor|}}}| Downtown | [[Category:Downtownies]]}} }} }}{{#ifeq: {{#expr: {{#ifeq:{{{play|}}}|Deceased|1|0}} or {{#ifeq:{{{state|}}}|Ghost|1|0}} }}| 1 | {{#ifeq: {{{age|}}}| Elder || {{ |
<includeonly>{{GetPlayCat|{{{play}}} }}{{#if: {{{neighbor|}}} | {{#ifeq: {{{play|}}}| Townie | {{#ifeq: {{{neighbor|}}}| Downtown | {{Checkmns|[[Category:Downtownies]]}} }} }} }}{{#ifeq: {{#expr: {{#ifeq:{{{play|}}}|Deceased|1|0}} or {{#ifeq:{{{state|}}}|Ghost|1|0}} }}| 1 | {{#ifeq: {{{age|}}}| Elder || {{Namespace detect |main=[[Category:Sims that died young]] |fanon=[[Category:Sims that died young (fanon)]] |custom=[[Category:Sims that died young (custom)]]}} }} }}</includeonly> |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
Revision as of 14:28, 1 August 2019
This template is used on many pages
To avoid large-scale disruption and unnecessary server load, consider testing your changes elsewhere, such as by copying the source code of this template and pasting it into your user space, or in the sandbox. Consider proposing your changes on the talk page before editing this template.
Description
The Master Sim infobox template, to be used for the creation of all other Sim infobox templates. This is meant to be used by templates; do not use this for individual Sim pages.
Discussion
Discuss the Sim bio templates and Sim page structure at The Sims Wiki talk:Project Sims/Manual of style.
Testing
Use {{Infobox Sim/test}}
for testing changes before editing {{Infobox Sim}}
.
- Make the changes to
{{Infobox Sim/test}}
, add any new parameters to{{Infobox Sim1/test}}
,{{Infobox Sim2/test}}
or{{Infobox Sim3/test}}
- Preview the changes on an article page by changing the template to
{{Infobox SimX/test|...}}
. - If the code works, copy the test template(s) to the original(s) (use "Show changes" to make sure they are in sync) and update the documentation. If the code does not work return to step one or undo the changes to the test template(s).
Syntax
Only use the parameters needed for that specific template and add any default values, ex. if it is for The Sims 2, give game the value of {{{game|The Sims 2}}}
{{Infobox Sim |name = {{{name<includeonly>|{{PAGENAME}}</includeonly>}}} |image = {{{image<includeonly>|</includeonly>}}} |caption = {{{caption<includeonly>|Hi! My name is {{PAGENAME}}!</includeonly>}}} |game = {{{game}}} |sex = {{{sex<includeonly>|</includeonly>}}} |age = {{{age<includeonly>|</includeonly>}}} |asp = {{{asp<includeonly>|</includeonly>}}} |sign = {{{sign<includeonly>|</includeonly>}}} |state = {{{state|Sim{{!}}Normal}}} |cod = {{{cod<includeonly>|</includeonly>}}} |social = {{{social<includeonly>|</includeonly>}}} |traits = {{{traits<includeonly>|</includeonly>}}} |trait1 = {{{trait1<includeonly>|</includeonly>}}} |trait2 = {{{trait2<includeonly>|</includeonly>}}} |trait3 = {{{trait3<includeonly>|</includeonly>}}} |trait4 = {{{trait4<includeonly>|</includeonly>}}} |trait5 = {{{trait5<includeonly>|</includeonly>}}} |wish = {{{wish<includeonly>|</includeonly>}}} |favorites = {{{favorites<includeonly>|</includeonly>}}} |music = {{{music<includeonly>|</includeonly>}}} |food = {{{food<includeonly>|</includeonly>}}} |color = {{{color<includeonly>|</includeonly>}}} |rep = {{{rep<includeonly>|</includeonly>}}} |major = {{{major<includeonly>|</includeonly>}}} |year = {{{year<includeonly>|</includeonly>}}} |hair = {{{hair<includeonly>|</includeonly>}}} |eye = {{{eye<includeonly>|</includeonly>}}} |skin = {{{skin<includeonly>|</includeonly>}}} |body = {{{body<includeonly>|</includeonly>}}} |family = {{{family<includeonly>|</includeonly>}}} |parents = {{{parents<includeonly>|</includeonly>}}} |siblings = {{{siblings<includeonly>|</includeonly>}}} |spouse = {{{spouse<includeonly>|</includeonly>}}} |maritalstatus = {{{maritalstatus<includeonly>|</includeonly>}}} |child = {{{child<includeonly>|</includeonly>}}} |household = {{{household<includeonly>|</includeonly>}}} |roommates = {{{roommates<includeonly>|</includeonly>}}} |pets = {{{pets<includeonly>|</includeonly>}}} |play = {{{play<includeonly>|</includeonly>}}} |neighbor = {{{neighbor<includeonly>|</includeonly>}}} }}
- Templates that use this template
- Template:Infobox Sim1
- Template:Infobox Urb
- Template:Infobox Sim2
- Template:Infobox Sim3
- Template:Infobox Medsim
- Template:Infobox Sim4
Parameters
- Common parameters
- game: The game title (required)
- name: The name of the Sim, used if it is different than the page name (optional)
- image: An image of the Sim.
- caption: A custom caption for the image (optional)
- sex: The sex of the Sim.
- family: Used as a header if blank, else linked to the Sim's family's page
- parents: List of links to parents
- spouse: List of links to Sims that have or have had a romantic relationship with the Sim
- maritalstatus: Current marital status of the Sim
- siblings: List of links to siblings
- child: List of links to children
- hair: Hair color
- eye: Eye color
- skin: Skin color
- body: Body shape
- household: Used as a header if blank, else linked to the Sim's household's page
- roommates: List of links to roommates
- pets: List of pets the Sim owns
- play: The ability to play the character from game start. Playable, Family bin or Lots and Houses bin, NPC, Deceased, Townie, Promotional, Downloadable.
- neighbor: The neighborhood they exist(ed) in
- Game specific
- state: The life state of a Sim if it is other than normal
- cod: The cause of death of a Sim
- age: The life stage of a Sim
- sign: The Sim's sign
- asp: The Sim's aspiration
- social: The Sim's social class
- group: The Sim's social group
- trait1 ... trait7: The Sim's traits. trait1 ... trait7 is preferred.
- flaw: The Sim's fatal flaw.
- wish: The Sim's lifetime wish
- favorites or music, food and color: List of the Sim's favorites. music, food color is preferred.
- rep: Rep group designation for Urbz
- major: The major of a Sim in college
- year: The year of study of a Sim in college
Visit Template:Infobox Sim/doc to edit this text! (How does this work?) (Refresh this text - why?)