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
Line 556: 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>
<noinclude>
{| class="metainfobox {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" cellpadding="1.5"
! class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2"{{!}}{{{name|{{PAGENAME}}}}}
{{!}}-

{{#if:{{{image<includeonly>|</includeonly>}}} |
{{!}} class="metainfobox-image" colspan="2" {{!}} {{{image}}}
{{!}}-
}}

{{#ifeq: {{#expr: {{#if:{{{sims1|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{sims2|}}}|1|0}} or {{#if:{{{sims3|}}}|1|0}} or {{#if:{{{sims4|}}}|1|0}} }} | 1 |
{{!}} Games
{{!}}
{{#if: {{{sims1<includeonly>|</includeonly>}}} | [[File:The Sims Logo.png|30px]]}}
{{#if: {{{sims2<includeonly>|</includeonly>}}} | [[File:The Sims 2 Logo.png‎|25px]]}}
{{#if: {{{sims3<includeonly>|</includeonly>}}} | [[File:The Sims 3 Logo.png|35px]]}}
{{#if: {{{sims4<includeonly>|</includeonly>}}} | [[File:The Sims 4 Logo.png|35px]]}}
{{!}}-
}}

{{#if:{{{focus<includeonly>|</includeonly>}}} |
{{!}} Focus
{{!}} {{{focus}}}
{{!}}-
}}

{{#ifeq: {{#expr: {{#if:{{{paysite|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{nopaysite|}}}|1|0}} }} | 1 |
{{!}} Pay site
{{!}}
{{#if: {{{paysite<includeonly>|</includeonly>}}} | [[File:Gold_simoleon.png|15px]] {{{paysite}}}}}
{{#if: {{{nopaysite<includeonly>|</includeonly>}}} | [[File:Gold_simoleon_no_forbidden.png|25px|This site is completely free.]]}}
{{!}}-
}}

{{#if:{{{founded<includeonly>|</includeonly>}}} |
{{!}} Date founded
{{!}} {{{founded}}}
{{!}}-
}}

{{#if:{{{status<includeonly>|</includeonly>}}} |
{{!}} Status
{{!}} {{{status}}}
{{!}}-
}}

{{#if:{{{closed<includeonly>|</includeonly>}}} |
{{!}} Date closed
{{!}} {{{closed}}}
{{!}}-
}}

{{#ifeq: {{#expr: {{#if:{{{donate|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{forum|}}}|1|0}} or {{#if:{{{rss|}}}|1|0}} or {{#if:{{{facebook|}}}|1|0}} or {{#if:{{{youtube|}}}|1|0}} or {{#if:{{{twitter|}}}|1|0}} or {{#if:{{{flickr|}}}|1|0}} }} | 1 |
{{!}} class="metainfobox-header line" colspan="2" {{!}}
{{!}}-
{{!}} colspan="2" {{!}} {{#if: {{{donate<includeonly>|</includeonly>}}} | [[File:Icon_moodlet_charity_good_donate_donation.png{{!}}20px{{!}}link={{{donate}}}]] }}{{#if: {{{forum<includeonly>|</includeonly>}}} | [[File:Icon_speech_bubble_chat_balloon.png{{!}}20px{{!}}link={{{forum}}}]] }}{{#if: {{{rss<includeonly>|</includeonly>}}} | [[File:Rss_feed_icon.svg{{!}}20px{{!}}link={{{rss}}}]] }}{{#if: {{{facebook<includeonly>|</includeonly>}}} | [[File:Facebook_logo_icon.png{{!}}20px{{!}}link={{{facebook}}}]] }}{{#if: {{{youtube<includeonly>|</includeonly>}}} | [[File:Youtube.jpg.gif{{!}}20px{{!}}link={{{youtube}}}]] }}{{#if: {{{twitter<includeonly>|</includeonly>}}} | [[File:Twitter_icon_logo.png{{!}}20px{{!}}link={{{twitter}}}]] }}{{#if: {{{flickr<includeonly>|</includeonly>}}} | [[File:Flickr_icon_logo.png{{!}}20px{{!}}link={{{flickr}}}]] }}
{{!}}-
}}

{{#ifeq: {{#expr: {{#if:{{{link|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{banner|}}}|1|0}} }} | 1 |
{{!}} class="metainfobox-header line" colspan="2" {{!}}
{{!}}-

{{#if:{{{link<includeonly>|</includeonly>}}} |
{{!}} colspan="2" {{!}} {{{link}}}
{{!}}-
}}

{{#if:{{{banner<includeonly>|</includeonly>}}} |
{{!}} colspan="2" {{!}} {{{banner}}}
{{!}}-
}}
}}

|}
</noinclude>
</noinclude>

Revision as of 07:21, 15 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.


Nikel23/Sandbox6
{{{image}}}
Games

Focus {{{focus}}}
Pay site

{{{paysite}}} This site is completely free.

Date founded {{{founded}}}
Status {{{status}}}
Date closed {{{closed}}}
link={{{donate}}}link={{{forum}}}link={{{rss}}}link={{{facebook}}}link={{{youtube}}}link={{{twitter}}}link={{{flickr}}}
{{{link}}}
{{{banner}}}