Template:Infobox Sim: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
sims>LostInRiverview mNo edit summary |
(copy over LiR's changes from https://sims.fandom.com/index.php?title=Template:Infobox_Sim&diff=904220&oldid=874333 with support for custom content namespace) |
||
(25 intermediate revisions by 7 users not shown) | |||
Line 1:
<noinclude>{{Widely-used}}{{era|PR}}</noinclude><templatestyles src="Metainfobox/styles.css" />
}}▼
</noinclude>▼
<!---*****OVERALL DESIGN CODE*****--->
{| 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}}}}}
<includeonly>{{
{{!}}-
Line 27 ⟶ 19:
<!---*****BASIC SIMOLOGY*****--->
{{#if:{{{name<includeonly>|</includeonly>}}} |▼
{{!}} Name▼
{{!}} {{{name}}}▼
{{!}}-▼
}}▼
{{#if:{{{sex<includeonly>|</includeonly>}}} |
{{!}} Gender
{{!}} {{GetGenderImage|{{{sex}}} }} {{#ifeq: {{{sex}}}| Ambiguous |[[Gender#Gender_ambiguity|Ambiguous]]|{{{sex}}} }}
<includeonly>{{#ifeq: {{lc:{{{sex}}}}}| male |{{
{{!}}-
| {{#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 43 ⟶ 31:
{{!}} Gender
{{!}} {{GetGender2Image|{{{sex2}}} }} {{#ifeq: {{{sex2}}}| Ambiguous |[[Gender#Gender_ambiguity|Ambiguous]]|{{{sex2}}} }}
<includeonly>{{#ifeq: {{lc:{{{sex2}}}}}| male |{{
{{!}}-
| {{#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 77 ⟶ 66:
<!---*****EDUCATION/EMPLOYMENT*****--->
{{#ifeq: {{#expr: {{#if:{{{school|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{grade|}}}|1|0}} or {{#if:{{{career|}}}|1|0}} or {{#if:{{{career2|}}}|1|0}} or {{#if:{{{career3|}}}|1|0}} or {{#if:{{{major|}}}|1|0}} or {{#if:{{{year|}}}|1|0}} or {{#if:{{{degree|}}}|1|0}} }} | 1 |
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2" {{!}} Education and employment
{{!}}-
Line 97 ⟶ 86:
{{!}} Major
{{!}}[[File:{{{major}}}.png|20px]] {{{major}}}
<includeonly>{{
▲}}
{{!}} Degree
{{!}} [[File:TS4 Degree {{{degree}}}.png|20px|{{{degree}}} degree]] {{{degree}}}<includeonly>{{Namespace detect |main=[[Category:{{{degree}}} students]] |fanon=[[Category:{{{degree}}} students (fanon)]] |custom=[[Category:{{{degree}}} students (custom)]]}}</includeonly>
{{!}}-
}}
Line 104 ⟶ 99:
{{!}} Year
{{!}} {{{year}}}
<includeonly>{{#ifeq: {{lc:{{{year}}}}} | freshman | {{
{{!}}-
}}
Line 111 ⟶ 106:
{{!}} Career
{{!}} {{GetCareerImage|{{{career}}}|{{{game}}} }} {{#if: {{{careerlevel|}}} | [[{{GetCareerLink|{{{career}}} }}|{{{careerlevel}}}]] | {{{career}}} }}
<includeonly>{{
{{!}}-
}}
Line 118 ⟶ 113:
{{!}} Career
{{!}} {{GetCareer2Image|{{{career2}}} }} {{#if: {{{careerlevel|}}} | [[{{GetCareerLink|{{{career2}}} }}|{{{careerlevel}}}]] | {{{career2}}} }}
<includeonly>{{
{{!}}-
}}
Line 125 ⟶ 120:
{{!}} Career
{{!}}{{GetCareer3Image|{{{career3}}} }} {{#if: {{{careerlevel|}}} | [[{{GetCareerLink|{{{career3}}} }}|{{{careerlevel}}}]] | {{{career3}}} }}
<includeonly>{{
{{!}}-
}}
Line 131 ⟶ 126:
<!---*****FAMILY*****--->
{{#ifeq: {{#expr: {{#if:{{{
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2" {{!}}
{{!}}-
{{#if:{{{family</includeonly>|</includeonly>}}} |
{{!}} Family/Families
▲{{!}}-
▲}}
{{#if:{{{parents<includeonly>|</includeonly>}}} |
Line 163 ⟶ 164:
{{!}} Children
{{!}} {{{child}}}
<includeonly>{{#ifeq: {{lc:{{{child|}}}}}| none | | {{#ifeq: {{lc:{{{child|}}}}}| unknown |<!-- Not known to have children --> | {{
{{!}}-
}}
Line 170 ⟶ 171:
<!---*****HOUSEHOLD/PETS*****--->
{{#ifeq: {{#expr: {{#if:{{{roommates|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{pets|}}}|1|0}} }} | 1 |
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2" {{!}}
{{!}}-
{{#if:{{{household<includeonly>|</includeonly>}}} |
{{!}} Household
{{!}} {{{household}}}
{{!}}-
}}
{{#if:{{{roommates<includeonly>|</includeonly>}}} |
Line 182 ⟶ 189:
{{!}} Pets
{{!}} {{{pets}}}
<includeonly>{{
{{!}}-
}}
Line 287 ⟶ 294:
{{!}} Zodiac sign
{{!}} {{GetSignImage|{{{sign}}} }} {{{sign}}}
<includeonly>{{
{{!}}-
}}
Line 294 ⟶ 301:
{{!}} Zodiac sign
{{!}} {{GetSign2Image|{{{sign2}}} }} {{{sign2}}}
<includeonly>{{
{{!}}-
}}
Line 301 ⟶ 308:
{{#if:{{{asp<includeonly>|</includeonly>}}} |
{{!}} Aspiration
{{!}} {{GetAspirationImage|{{{asp}}}|{{{game}}} }} {{{asp}}}
<includeonly>{{
{{!}}-
}}
Line 308 ⟶ 315:
{{#if:{{{asp2<includeonly>|</includeonly>}}} |
{{!}} Secondary aspiration
{{!}} {{GetAspirationImage|{{{asp2}}}|{{{game}}} }} {{{asp2}}}
<includeonly>{{
{{!}}-
}}
Line 315 ⟶ 322:
{{#if:{{{asp3<includeonly>|</includeonly>}}} |
{{!}} Aspiration
{{!}} {{
<includeonly>{{GetAspirationCat|{{{asp3}}}|{{{game}}} }}</includeonly>
{{!}}-
}}
Line 445 ⟶ 453:
{{!}} Celebrity status
{{!}} {{GetCelebrityImage|{{{celebritystatus}}} }}
<includeonly>{{
{{!}}-
}}
Line 519 ⟶ 527:
{{!}} Game
{{!}} {{GetGameIcon|{{{game}}}|{{{neighbor}}} }} ''[[{{{game}}}]]''
<includeonly>
{{!}}-
}}
Line 526 ⟶ 534:
{{!}} Playability
{{!}} {{{play}}}
<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 || {{
{{!}}-
}}
Line 542 ⟶ 550:
|TS4= World
|#default= Neighborhood}}
{{!}}{{Namespace detect
|Downtown = {{#ifeq:{{{game}}}|The Sims: Hot Date|[[Downtown (The Sims)|Downtown]]|[[Downtown (The Sims 2)|Downtown]]}}
|Pets = [[Pets (neighborhood)|Pets]]
Line 548 ⟶ 557:
|Hobbies = [[Hobbies (neighborhood)|Hobbies]]
|Magic = [[Magic (neighborhood)|Magic]]
|
}}
|other = {{Addlink|{{{neighbor}}}}}
}}
<includeonly>{{Namespace detect |main = [[Category:{{Delink|{{{neighbor}}}}} Sims]] |fanon = [[Category:{{Delink|{{Remove fanon prefix|{{{neighbor}}}}}}} Sims (fanon)]] |custom = [[Category:{{Delink|{{Remove custom prefix|{{{neighbor}}}}}}} Sims (custom)]]}}</includeonly>
{{!}}-
}}
}}<!--Closing bracket for "Other Information" header section-->
<!---*****FANON COMMENTS LINK***** -
{{#ifeq: {{#expr: {{#if:{{{fanoncomments|<noinclude>-</noinclude>}}}|1|0}} }} | 1 |
{{!}} class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2"{{!}} {{{fanoncomments}}}
}}
|}<noinclude>
{{clr}}
{{Documentation}}
▲</noinclude>
|
Latest revision as of 16:00, 27 December 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?)