Template:Sim/doc: 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>A morris
mNo edit summary
m (31 revisions imported: Import from https://sims.wikia.com)
 
(20 intermediate revisions by 5 users not shown)
Line 1: Line 1:
;Description: The Master Sim infobox template, to be used for the creation of all other single game Sim infobox templates. This is meant to be used by templates; do not use this for individual Sim pages.
;Description: The Master Sim infobox template, to be used for the creation of all other single game 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 in the forums: [[Forum:Additional biography information]] and [[Forum:Sim Page Standardization]].
;Discussion: Discuss the Sim bio templates and Sim page structure at [[The Sims Wiki talk:Project Sims/Manual of style]].


;Testing: Use <code>{{T|Sim/test}}</code> for testing changes and then copy them to <code>{{T|Sim}}</code>.
;Testing: Use <code>{{T|Sim/test}}</code> for testing changes before editing <code>{{T|Sim}}</code>.
#Make the changes to <code>{{T|Sim/test}}</code>, add any new parameters to <code>{{T|Sim1/test}}</code>, <code>{{T|Sim2/test}}</code> or <code>{{T|Sim3/test}}</code>
#Preview the changes on an article page by changing the template to <code><nowiki>{{SimX/test|...}}</nowiki></code>.
#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|parameters]] needed for that specific template and add any default values, ex. if it is for ''The Sims 2'', give '''game''' the value of <code><nowiki>{{{game|The Sims 2}}}</nowiki></code>
;Syntax: Only use the [[#Parameters|parameters]] needed for that specific template and add any default values, ex. if it is for ''The Sims 2'', give '''game''' the value of <code><nowiki>{{{game|The Sims 2}}}</nowiki></code>
Line 17: Line 20:
|state = {{{state|Sim{{!}}Normal}}}
|state = {{{state|Sim{{!}}Normal}}}
|cod = {{{cod<includeonly>|</includeonly>}}}
|cod = {{{cod<includeonly>|</includeonly>}}}
|social = {{{social<includeonly>|</includeonly>}}}
|traits = {{{traits<includeonly>|</includeonly>}}}
|traits = {{{traits<includeonly>|</includeonly>}}}
|trait1 = {{{trait1<includeonly>|</includeonly>}}}
|trait1 = {{{trait1<includeonly>|</includeonly>}}}
Line 39: Line 43:
|siblings = {{{siblings<includeonly>|</includeonly>}}}
|siblings = {{{siblings<includeonly>|</includeonly>}}}
|spouse = {{{spouse<includeonly>|</includeonly>}}}
|spouse = {{{spouse<includeonly>|</includeonly>}}}
|maritalstatus = {{{maritalstatus <includeonly>|</includeonly>}}}
|maritalstatus = {{{maritalstatus<includeonly>|</includeonly>}}}
|economicstatus = {{{economicstatus<includeonly>|</includeonly>}}}
|child = {{{child<includeonly>|</includeonly>}}}
|child = {{{child<includeonly>|</includeonly>}}}
|household = {{{household<includeonly>|</includeonly>}}}
|household = {{{household<includeonly>|</includeonly>}}}
Line 52: Line 55:


; Templates that use this template
; Templates that use this template
# [[Template:Sim1]]
# [[Template:Sim2]]
# [[Template:Sim2]]
# [[Template:Unisim]]
# [[Template:Unisim]]
# [[Template:Newpage Sim2]]
# [[Template:Newpage Unisim]]
# [[Template:Sim1]]
# [[Template:Sim3]]
# [[Template:Sim3]]
# [[Template:Urb]]
# [[Template:Medsim]]
# [[Template:Sim4]]
# [[Template:Newpage Sim1]]
# [[Template:Newpage Sim1]]
# [[Template:Newpage Sim2]]
# [[Template:Newpage Unisim]]
# [[Template:Newpage Sim3]]
# [[Template:Newpage Sim3]]

==Parameters==
==Parameters==
;Common parameters
;Common parameters
:'''game''': The name of the article for a game title
:'''game''': The game title (required)
:'''name''': The name of the Sim, used if it is different than the page name
:'''name''': The name of the Sim, used if it is different than the page name (optional)
:'''image''': An image of the Sim.
:'''image''': An image of the Sim.
:'''caption''': A custom caption for the image
:'''caption''': A custom caption for the image (optional)
:'''sex''': The sex of the Sim.
:'''sex''': The sex of the Sim.
:'''family''': Used as a header if blank, else linked to the Sim's family's page
:'''family''': Used as a header if blank, else linked to the Sim's family's page
Line 80: Line 87:
:'''roommates''': List of links to roommates
:'''roommates''': List of links to roommates
:'''pets''': List of pets the Sim owns
:'''pets''': List of pets the Sim owns
:'''play''': The ability to play the character from game start. Playable, NPC, Deceased, Townie.
:'''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, [[Family bin]] or [[Lots and Houses bin]]
:'''neighbor''': The neighborhood they exist(ed) in
: '''theories''' - The display name of a special subpage. Ex. ''What happened to Bella Goth?'', ''Who is Mrs. Crumplebottom?''
;Game specific
;Game specific
:'''state''': The life state of a Sim if it is other than normal
:'''state''': The life state of a Sim if it is other than normal
Line 88: Line 96:
:'''sign''': The Sim's sign
:'''sign''': The Sim's sign
:'''asp''': The Sim's aspiration
:'''asp''': The Sim's aspiration
:'''traits''' or '''trait1''' ... '''trait5''': The Sim's traits. trait1 ... trait5 is preferred.
:'''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
:'''wish''': The Sim's lifetime wish
:'''favorites''': List of the Sim's favorites
:'''favorites''' or '''music''', '''food''' and '''color''': List of the Sim's favorites. music, food color is preferred.
:'''music''': The Sim's favorite music
:'''food''': The Sim's favorite food
:'''color''': The Sim's favorite color
:'''rep''': Rep group designation for Urbz
:'''rep''': Rep group designation for Urbz
:'''economicstatus''' The economic status of the Sim
:'''major''': The major of a Sim in college
:'''major''': The major of a Sim in college
:'''year''': The year of study of a Sim in college
:'''year''': The year of study of a Sim in college


<includeonly>[[Category:Infobox templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
<includeonly>[[Category:Infobox templates|{{PAGENAME}}]] [[Category:Meta-templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 16:40, 9 March 2019

Description
The Master Sim infobox template, to be used for the creation of all other single game 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 {{Sim/test}} for testing changes before editing {{Sim}}.
  1. Make the changes to {{Sim/test}}, add any new parameters to {{Sim1/test}}, {{Sim2/test}} or {{Sim3/test}}
  2. Preview the changes on an article page by changing the template to {{SimX/test|...}}.
  3. 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}}}
{{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>}}}
|theories  = {{{theories<includeonly>|</includeonly>}}}
}}
Templates that use this template
  1. Template:Sim1
  2. Template:Sim2
  3. Template:Unisim
  4. Template:Sim3
  5. Template:Urb
  6. Template:Medsim
  7. Template:Sim4
  8. Template:Newpage Sim1
  9. Template:Newpage Sim2
  10. Template:Newpage Unisim
  11. Template:Newpage Sim3

Parameters[edit source]

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
theories - The display name of a special subpage. Ex. What happened to Bella Goth?, Who is Mrs. Crumplebottom?
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