Template:Infobox Sim: Difference between revisions

Made it so that "Family/Families" appear even when parents, siblings, children, etc. aren't listed.
(use TemplateStyles)
imported>SimDestroyer
(Made it so that "Family/Families" appear even when parents, siblings, children, etc. aren't listed.)
Line 1:
<noinclude>{{Metabox
<noinclude>{{Widely-used}}{{era|PR}}</noinclude><templatestyles src="Metainfobox/styles.css" />
|type = notice
|image = Icon-warning-48x48.png
|headline = This template is used on thousands of pages
|text = To avoid large-scale disruption and unnecessary server load, consider testing your changes elsewhere, such as by copying the source code of this template and pasting it into your [[w:Help:User page|user space]], or in the [[The Sims Wiki:Sandbox|sandbox]]. Consider proposing your changes on the [[Template talk:Sim|talk page]] before editing this template.
|nocat = true
}}{{era|PR}}</noinclude>
<!---*****OVERALL DESIGN CODE*****--->
{| class="metainfobox {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" cellpadding="1.5"
Line 120 ⟶ 126:
 
<!---*****FAMILY*****--->
{{#ifeq: {{#expr: {{#if:{{{parentsfamily|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{parents|}}}|1|0}} or {{#if:{{{siblings|}}}|1|0}} or {{#if:{{{spouse|}}}|1|0}} or {{#if:{{{maritalstatus|}}}|1|0}} or {{#if:{{{child|}}}|1|0}} }} | 1 |
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2" {{!}} Family
{{!}}-
Line 561 ⟶ 567:
{{!}} class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{game<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2"{{!}} {{{fanoncomments}}}
}}<!--Closing bracket for "Fanon Comments" section-->
|}<noinclude>{{clr}}{{Documentation}}</noinclude>
Anonymous user