User:Nikel23/Sandbox6: Difference between revisions
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=" |
{| class="metainfobox {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" cellpadding="1.5" |
||
! class=" |
! 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=" |
{{!}} 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=" |
{{!}} class="metainfobox-image" colspan="2" {{!}} {{{image}}} |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
Line 19: | Line 19: | ||
<!---*****BIOGRAPHY SECTION*****---> |
<!---*****BIOGRAPHY SECTION*****---> |
||
{{#if:{{{caption<includeonly>|</includeonly>}}} | |
{{#if:{{{caption<includeonly>|</includeonly>}}} | |
||
{{!}} class=" |
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2" {{!}} Biography |
||
{{!}}- |
{{!}}- |
||
{{!}} class=" |
{{!}} class="metainfobox-caption" colspan="2" {{!}} {{{caption}}} |
||
{{!}}- |
{{!}}- |
||
{{!}} class=" |
{{!}} 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=" |
{{!}} 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=" |
{{!}} 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=" |
{{!}} 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=" |
{{!}} 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=" |
{{!}} 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=" |
{{!}} 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=" |
{{!}} 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
Things done:
- Categorization now consistently uses {{Checkmns}} and {{Checkfns}} to check namespace.
- {{{family}}} and {{{household}}} parameters are properly added.
- Css elements and styles now properly use class whenever applicable.
- Generally tidied the code.
- 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).
- 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.