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 |
||
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="metabox-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="metabox-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> |
Revision as of 11:07, 12 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.