User:Nikel23/Sandbox6: Difference between revisions

From The Sims Wiki, a collaborative database for The Sims series
Jump to navigation Jump to search
Content added Content deleted
imported>Nikel23
No edit summary
imported>Nikel23
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!---*****OVERALL DESIGN CODE*****--->
<!---*****OVERALL DESIGN CODE*****--->
{| class="metabox {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" cellpadding="1.5"
{| class="metainfobox {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" cellpadding="1.5"
! class="metabox-header large {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2"{{!}}{{{name|{{PAGENAME}}}}}
! class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2"{{!}}{{{name|{{PAGENAME}}}}}
<includeonly>{{Checkmns|[[Category:Sims]]}}{{Checkfns|[[Category:Sims (fanon)]]}}</includeonly>
<includeonly>{{Checkmns|[[Category:Sims]]}}{{Checkfns|[[Category:Sims (fanon)]]}}</includeonly>
{{!}}-
{{!}}-
Line 7: Line 7:
<!---*****GAME LOGO*****--->
<!---*****GAME LOGO*****--->
{{#if:{{{game<includeonly>|</includeonly>}}} |
{{#if:{{{game<includeonly>|</includeonly>}}} |
{{!}} class="metabox-logo" colspan="2" {{!}} <small><center>{{GetGameImage|{{{game}}}|{{{neighbor|}}}}}</center></small>
{{!}} class="metainfobox-logo" colspan="2" {{!}} <small><center>{{GetGameImage|{{{game}}}|{{{neighbor|}}}}}</center></small>
{{!}}-
{{!}}-
}}
}}
Line 13: Line 13:
<!---*****HEADSHOT*****--->
<!---*****HEADSHOT*****--->
{{#if:{{{image<includeonly>|</includeonly>}}} |
{{#if:{{{image<includeonly>|</includeonly>}}} |
{{!}} class="metabox-image" colspan="2" {{!}} {{{image}}}
{{!}} class="metainfobox-image" colspan="2" {{!}} {{{image}}}
{{!}}-
{{!}}-
}}
}}
Line 19: Line 19:
<!---*****BIOGRAPHY SECTION*****--->
<!---*****BIOGRAPHY SECTION*****--->
{{#if:{{{caption<includeonly>|</includeonly>}}} |
{{#if:{{{caption<includeonly>|</includeonly>}}} |
{{!}} class="metabox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} Biography
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} Biography
{{!}}-
{{!}}-
{{!}} class="metabox-caption" colspan="2" {{!}} {{{caption}}}
{{!}} class="metainfobox-caption" colspan="2" {{!}} {{{caption}}}
{{!}}-
{{!}}-
{{!}} class="metabox-header line" colspan="2" {{!}}
{{!}} class="metainfobox-header line" colspan="2" {{!}}
{{!}}-
{{!}}-
}}
}}
Line 71: Line 71:
<!---*****EDUCATION/EMPLOYMENT*****--->
<!---*****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}} }} | 1 |
{{#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}} }} | 1 |
{{!}} class="metabox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} Education and employment
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} Education and employment
{{!}}-
{{!}}-


Line 118: Line 118:
<!---*****FAMILY*****--->
<!---*****FAMILY*****--->
{{#ifeq: {{#expr: {{#if:{{{parents|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{siblings|}}}|1|0}} or {{#if:{{{spouse|}}}|1|0}} or {{#if:{{{maritalstatus|}}}|1|0}} or {{#if:{{{child|}}}|1|0}} }} | 1 |
{{#ifeq: {{#expr: {{#if:{{{parents|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{siblings|}}}|1|0}} or {{#if:{{{spouse|}}}|1|0}} or {{#if:{{{maritalstatus|}}}|1|0}} or {{#if:{{{child|}}}|1|0}} }} | 1 |
{{!}} class="metabox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} {{#if:{{{family<includeonly>|</includeonly>}}} | {{{family}}} | Family}}
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} {{#if:{{{family<includeonly>|</includeonly>}}} | {{{family}}} | Family}}
{{!}}-
{{!}}-


Line 156: Line 156:
<!---*****HOUSEHOLD/PETS*****--->
<!---*****HOUSEHOLD/PETS*****--->
{{#ifeq: {{#expr: {{#if:{{{roommates|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{pets|}}}|1|0}} }} | 1 |
{{#ifeq: {{#expr: {{#if:{{{roommates|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{pets|}}}|1|0}} }} | 1 |
{{!}} class="metabox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} {{#if:{{{household<includeonly>|</includeonly>}}} | {{{household}}} | Household}}
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} {{#if:{{{household<includeonly>|</includeonly>}}} | {{{household}}} | Household}}
{{!}}-
{{!}}-


Line 175: Line 175:
<!---*****PERSONALITY/TRAITS/FAVORITES/ZODIAC/ASPIRATIONS/ETC*****--->
<!---*****PERSONALITY/TRAITS/FAVORITES/ZODIAC/ASPIRATIONS/ETC*****--->
{{#ifeq: {{#expr: {{#if:{{{trait1|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{trait2|}}}|1|0}} or {{#if:{{{trait3|}}}|1|0}} or {{#if:{{{trait4|}}}|1|0}} or {{#if:{{{trait5|}}}|1|0}} or {{#if:{{{trait6|}}}|1|0}} or {{#if:{{{trait7|}}}|1|0}} or {{#if:{{{hiddentrait1|}}}|1|0}} or {{#if:{{{hiddentrait2|}}}|1|0}} or {{#if:{{{hiddentrait3|}}}|1|0}} or {{#if:{{{medievaltrait1|}}}|1|0}} or {{#if:{{{medievaltrait2|}}}|1|0}} or {{#if:{{{flaw|}}}|1|0}} or {{#if:{{{legendary|}}}|1|0}} or {{#if:{{{sign|}}}|1|0}} or {{#if:{{{sign2|}}}|1|0}} or {{#if:{{{asp|}}}|1|0}} or {{#if:{{{asp2|}}}|1|0}} or {{#if:{{{asp3|}}}|1|0}} or {{#if:{{{want|}}}|1|0}} or {{#if:{{{wish|}}}|1|0}} or {{#if:{{{music|}}}|1|0}} or {{#if:{{{food|}}}|1|0}} or {{#if:{{{color|}}}|1|0}} }} | 1 |
{{#ifeq: {{#expr: {{#if:{{{trait1|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{trait2|}}}|1|0}} or {{#if:{{{trait3|}}}|1|0}} or {{#if:{{{trait4|}}}|1|0}} or {{#if:{{{trait5|}}}|1|0}} or {{#if:{{{trait6|}}}|1|0}} or {{#if:{{{trait7|}}}|1|0}} or {{#if:{{{hiddentrait1|}}}|1|0}} or {{#if:{{{hiddentrait2|}}}|1|0}} or {{#if:{{{hiddentrait3|}}}|1|0}} or {{#if:{{{medievaltrait1|}}}|1|0}} or {{#if:{{{medievaltrait2|}}}|1|0}} or {{#if:{{{flaw|}}}|1|0}} or {{#if:{{{legendary|}}}|1|0}} or {{#if:{{{sign|}}}|1|0}} or {{#if:{{{sign2|}}}|1|0}} or {{#if:{{{asp|}}}|1|0}} or {{#if:{{{asp2|}}}|1|0}} or {{#if:{{{asp3|}}}|1|0}} or {{#if:{{{want|}}}|1|0}} or {{#if:{{{wish|}}}|1|0}} or {{#if:{{{music|}}}|1|0}} or {{#if:{{{food|}}}|1|0}} or {{#if:{{{color|}}}|1|0}} }} | 1 |
{{!}} class="metabox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} Personality
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} Personality
{{!}}-
{{!}}-


Line 343: Line 343:
<!---*****CHEMISTRY*****--->
<!---*****CHEMISTRY*****--->
{{#ifeq: {{#expr: {{#if:{{{turnon1|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{turnon2|}}}|1|0}} or {{#if:{{{turnoff|}}}|1|0}} }} | 1 |
{{#ifeq: {{#expr: {{#if:{{{turnon1|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{turnon2|}}}|1|0}} or {{#if:{{{turnoff|}}}|1|0}} }} | 1 |
{{!}} class="metabox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} Chemistry
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} Chemistry
{{!}}-
{{!}}-


Line 369: Line 369:
<!---*****APPEARANCE*****--->
<!---*****APPEARANCE*****--->
{{#ifeq: {{#expr: {{#if:{{{hair|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{hair2|}}}|1|0}} or {{#if:{{{eye|}}}|1|0}} or {{#if:{{{eye2|}}}|1|0}} or {{#if:{{{skin|}}}|1|0}} or {{#if:{{{skin2|}}}|1|0}} or {{#if:{{{body|}}}|1|0}} or {{#if:{{{build|}}}|1|0}} }} | 1 |
{{#ifeq: {{#expr: {{#if:{{{hair|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{hair2|}}}|1|0}} or {{#if:{{{eye|}}}|1|0}} or {{#if:{{{eye2|}}}|1|0}} or {{#if:{{{skin|}}}|1|0}} or {{#if:{{{skin2|}}}|1|0}} or {{#if:{{{body|}}}|1|0}} or {{#if:{{{build|}}}|1|0}} }} | 1 |
{{!}} class="metabox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} Appearance
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} Appearance
{{!}}-
{{!}}-


Line 425: Line 425:
<!---*****REPUTATION/CELEBRITY STATUS/GROUP*****--->
<!---*****REPUTATION/CELEBRITY STATUS/GROUP*****--->
{{#ifeq: {{#expr: {{#if:{{{celebritystatus|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{rep|}}}|1|0}} or {{#if:{{{district|}}}|1|0}} or {{#if:{{{reputation|}}}|1|0}} or {{#if:{{{social|}}}|1|0}} or {{#if:{{{group1|}}}|1|0}} or {{#if:{{{group2|}}}|1|0}} or {{#if:{{{group3|}}}|1|0}} }} | 1 |
{{#ifeq: {{#expr: {{#if:{{{celebritystatus|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{rep|}}}|1|0}} or {{#if:{{{district|}}}|1|0}} or {{#if:{{{reputation|}}}|1|0}} or {{#if:{{{social|}}}|1|0}} or {{#if:{{{group1|}}}|1|0}} or {{#if:{{{group2|}}}|1|0}} or {{#if:{{{group3|}}}|1|0}} }} | 1 |
{{!}} class="metabox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} Social standing
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} Social standing
{{!}}-
{{!}}-


Line 495: Line 495:
{{!}}-
{{!}}-
}}
}}
}}<!--Closing bracket for "Social Standing" header section-->
}}<!--Closing bracket for "Social Standing" header section-->

|}
<!---*****OTHER INFORMATION*****--->
{{#ifeq: {{#expr: {{#if:{{{game|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{play|}}}|1|0}} or {{#if:{{{cod|}}}|1|0}} or {{#if:{{{neighbor|}}}|1|0}} }} | 1 |
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} Social standing
{{!}}-

{{#if:{{{game<includeonly>|</includeonly>}}} |
{{!}} Game
{{!}} {{GetGameIcon|{{{game}}}|{{{neighbor}}} }} ''[[{{{game}}}]]''
<includeonly>{{Checkmns|{{GetGameCat|{{{game}}}}} }}</includeonly>
{{!}}-
}}

{{#if:{{{play<includeonly>|</includeonly>}}} |
{{!}} Playability
{{!}} {{{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 || {{Checkmns|[[Category:Sims that died young]]}}{{Checkfns|[[Category:Sims that died young (fanon)]]}} }} }}</includeonly>
{{!}}-
}}

{{#if:{{{cod<includeonly>|</includeonly>}}} |
{{!}} Cause of death
{{!}} {{{cod}}}
<includeonly>{{GetCodCat|{{{cod}}}}}</includeonly>
{{!}}-
}}

{{#if:{{{neighbor<includeonly>|</includeonly>}}} |
{{!}} {{#switch:{{MGL|{{{game}}} }}
|TS3
|TS4= World
|#default= Neighborhood}}
{{!}}{{Checkmns| {{#switch: {{{neighbor}}}
|Downtown = {{#ifeq:{{{game}}}|The Sims: Hot Date|[[Downtown (The Sims)|Downtown]]|[[Downtown (The Sims 2)|Downtown]]}}
|Pets = [[Pets (neighborhood)|Pets]]
|Weather = [[Weather (neighborhood)|Weather]]
|Hobbies = [[Hobbies (neighborhood)|Hobbies]]
|Magic = [[Magic (neighborhood)|Magic]]
|[[{{{neighbor}}}]]
}} }}{{Checkfns| {{#ifexist: Fanon:{{{neighbor}}}|[[Fanon:{{{neighbor}}}]]|{{{neighbor}}} }} }}
<includeonly>{{Checkmns|[[Category:{{{neighbor}}} Sims]]}}{{Checkfns|[[Category:{{{neighbor}}} Sims (fanon)]]}}</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 | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2"{{!}} {{{fanoncomments}}}
}}<!--Closing bracket for "Fanon Comments" section-->
|}<noinclude>


Things done:
Things done:
Line 506: Line 556:
#Every cell is now vertically-aligned.
#Every cell is now vertically-aligned.
#Removed triple quotes for first column of each row – bolding the text is now part of css class. Text should be as raw as possible and let css class modify the style. The same is applied to caption.
#Removed triple quotes for first column of each row – bolding the text is now part of css class. Text should be as raw as possible and let css class modify the style. The same is applied to caption.
</noinclude>

Latest revision as of 03:45, 16 January 2018

Nikel23/Sandbox6
{{{image}}}
Biography
{{{caption}}}
Name {{{name}}}
Gender {{{sex}}}
Gender {{{sex2}}}
Age {{{age}}}
Life state [[{{{state}}}]]
Life state [[{{{state2}}}]]
Education and employment
School {{{school}}}
Grade {{{grade}}}
Year {{{year}}}
Career {{{career}}}
Career {{{career2}}}
Career {{{career3}}}
{{{family}}}
Parents {{{parents}}}
Siblings {{{siblings}}}
Marital status {{{maritalstatus}}}
Romances {{{spouse}}}
Children {{{child}}}
{{{household}}}
Roommates {{{roommates}}}
Pets {{{pets}}}
Personality
Traits {{{trait1}}}
{{{trait2}}}
{{{trait3}}}
{{{trait4}}}
{{{trait5}}}
{{{trait6}}}
{{{trait7}}}
Hidden traits {{{hiddentrait1}}}
{{{hiddentrait2}}}
{{{hiddentrait3}}}
Traits {{{medievaltrait1}}}
{{{medievaltrait2}}}
Fatal flaw  {{{flaw}}}
Legendary trait {{{legendary}}}
Zodiac sign {{{sign}}}
Zodiac sign {{{sign2}}}
Aspiration {{{asp}}}
Secondary aspiration {{{asp2}}}
Aspiration {{{asp3}}}
Lifetime want {{{want}}}
Lifetime wish {{{wish}}}
Favorites {{{music}}}
{{{food}}}
{{{color}}}
Chemistry
Turn-ons {{{turnon1}}}
{{{turnon2}}}
Turn-off {{{turnoff}}}
Appearance
Hair color {{{hair}}}
Hair color {{{hair2}}}
Eye color {{{eye}}}
Eye color {{{eye2}}}
Skin color {{{skin}}}
Skin color {{{skin2}}}
Body shape {{{body}}}
Social standing
Celebrity status
Rep group {{{rep}}}
District {{{district}}}
Reputation {{{reputation}}}
Social class {{{social}}}
Social group [[File:{{{group1}}} social group.png|20px]] {{{group1}}}
[[File:{{{group2}}} social group.png|20px]] {{{group2}}}
[[File:{{{group3}}} social group.png|20px]] {{{group3}}}
Clubs {{{club1}}}
{{{club2}}}
{{{club3}}}
Social standing
Game [[{{{game}}}]]
Playability {{{play}}}
Cause of death {{{cod}}}
Neighborhood
{{{fanoncomments}}}

Things done:

  1. Categorization now consistently uses {{Checkmns}} and {{Checkfns}} to check namespace.
  2. {{{family}}} and {{{household}}} parameters are properly added.
  3. Css elements and styles now properly use class whenever applicable.
  4. Generally tidied the code.
  5. Column width for first column of each row is now set by class, so it can be made consistent for other infoboxes that use this class (might still have possible bugs – need to foresee more).
  6. Every cell is now vertically-aligned.
  7. Removed triple quotes for first column of each row – bolding the text is now part of css class. Text should be as raw as possible and let css class modify the style. The same is applied to caption.