Template:Abb/doc

From The Sims Wiki, a collaborative database for The Sims series
Jump to navigation Jump to search

Small template which retrieves the name of a The Sims game for a given code entry.

Auxiliary template for {{Infobox}}.

Usage[edit source]

{{abb|abbreviation}}

Parameters[edit source]

<unnamed 1> or abb (required)
Game abbreviation; see #Abbreviations below for list of valid inputs.
icon size (optional)
If mode is set to "icon", this parameter can be used to specify the icon's dimensions. For example, setting it to "40x30px" creates an icon which is (at most) 40px wide and 30px high. By default, the icon is displayed at original size.
mode (default=text)
Determines the template output.

Available options:

  • icon: Returns an icon which links to the game's overview article.
  • short: Returns a shortened version of the game's name for display in narrow spaces.
  • text: Returns the game's name.

Abbreviations[edit source]

Abbreviation text short icon
TS or TS1 The Sims The Sims The Sims Icon.png
TSHD The Sims: Hot Date Hot Date The Sims Hot Date.gif
TSHP The Sims: House Party House Party The Sims House Party.gif
TSLL The Sims Livin' Large Livin' Large The Sims Livin' Large.gif
TSMM The Sims: Makin' Magic Makin' Magic The Sims Makin Magic.gif
TSS The Sims: Superstar Superstar The Sims Superstar.gif
TSU The Sims: Unleashed Unleashed The Sims Unleashed.gif
TSV The Sims: Vacation Vacation The Sims Vacation.gif
TS2 The Sims 2 The Sims 2 The Sims 2 Icon.png
TS2AL The Sims 2: Apartment Life Apartment Life The Sims 2 Apartment Life Icon.png
TS2BV
TS2FT The Sims 2: FreeTime FreeTime The Sims 2 FreeTime Icon.png
TS2NL The Sims 2: Nightlife Nightlife The Sims 2 Nightlife Icon.png
TS2OFB The Sims 2: Open for Business Open for Business The Sims 2 Open for Business Icon.png
TS2P The Sims 2: Pets Pets The Sims 2 Pets Icon.png
TS2S The Sims 2: Seasons Seasons The Sims 2 Seasons Icon.png
TS2U The Sims 2: University University The Sims 2 University Icon.png
TS2CS The Sims 2: Celebration! Stuff Celebration Stuff The Sims 2 Celebration! Stuff Icon.png
TS2FFS The Sims 2: Family Fun Stuff Family Fun Stuff The Sims 2 Family Fun Stuff Icon.png
TS2GLS The Sims 2: Glamour Life Stuff Glamour Life Stuff The Sims 2 Glamour Life Stuff Icon.png
TS2HMFS The Sims 2: H&M Fashion Stuff H&M Fashion Stuff The Sims 2 H&M Fashion Stuff Icon.png
TS2IHS The Sims 2: IKEA Home Stuff IKEA Home Stuff The Sims 2 IKEA Home Stuff Icon.png
TS2KBS or TS2KBIDS The Sims 2: Kitchen and Bath Interior Design Stuff Kitchen and Bath Stuff The Sims 2 Kitchen & Bath Interior Design Stuff Icon.png
TS2MGS The Sims 2: Mansion & Garden Stuff Mansion & Garden Stuff The Sims 2 Mansion & Garden Stuff Icon.png
TS2TSS The Sims 2: Teen Style Stuff Teen Style Stuff The Sims 2 Teen Style Stuff Icon.png
TS3 The Sims 3 The Sims 3 TS3 Icon.png
TS3A The Sims 3: Ambitions Ambitions TS3A Icon.png
TS3LN The Sims 3: Late Night Late Night TS3LN Icon.png
TS3WA The Sims 3: World Adventures World Adventures TS3WA Icon.png
TS3FLS The Sims 3: Fast Lane Stuff Fast Lane Stuff TS3FLS Icon.png
TS3HELS The Sims 3: High-End Loft Stuff High-End Loft Stuff TS3HELS Icon.png
CS The Sims Castaway Stories Castaway Stories TSCS Icon.png
LS The Sims Life Stories Life Stories TSLS Icon.png
PS The Sims Pet Stories Pet Stories TSPS Icon.png
BOC The Sims Bustin' Out Bustin' Out Bo logo.gif
BOH The Sims Bustin' Out Bustin' Out Bo logo.gif
URBZ The Urbz: Sims in the City The Urbz Urbz logo.jpg
TSM The Sims Medieval Medieval TSM Icon.png
Wiki
none mentioned-only mentioned-only

Adding new abbrevations[edit source]

Simply add the following to the template and fill it out:

-->|ABBREVIATION=<!--
 -->{{#switch:{{lc:{{{mode|}}}}}<!--
  -->|icon          =[[File:|link=|{{{icon size|}}}]]<!--
  -->|short         =<!--
  -->|text|#default =<!--
 -->}}<!--

Please note that the abbreviation needs to be in uppercase. In addition, please try to maintain alphabetical order of abbreviations within the template.

Examples[edit source]

Input Result
{{abb|TS3FLS}} The Sims 3: Fast Lane Stuff
{{abb|mode=short|TS3FLS}} Fast Lane Stuff
{{abb|mode=icon|TS3FLS}} TS3FLS Icon.png