Template:Infobox world: Difference between revisions

Update to recognize custom namespace
m (15 revisions imported: Import from https://sims.wikia.com)
(Update to recognize custom namespace)
 
(4 intermediate revisions by 3 users not shown)
Line 1:
<templatestyles src="Metainfobox/styles.css" /><!---*****OVERALL DESIGN CODE*****--->
{| class="metainfobox {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{#if:{{{game|}}}|{{{game<includeonly>|</includeonly>}}}|{{{game1}}} }} }} }} }} }}" cellpadding="1.5"
! class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{#if:{{{game|}}}|{{{game<includeonly>|</includeonly>}}}|{{{game1}}} }} }} }} }} }}" colspan="2"{{!}}{{{name|{{PAGENAME}}}}}
Line 39:
{{#ifexist: {{FULLPAGENAME}}/Onomatology |
{{!}} colspan="2" {{!}} [[{{FULLPAGENAME}}/Onomatology|Onomatology]]
}}<!-- Not used on Miraheze
{{!}}-
}}
{{#ifeq:{{NAMESPACE}}|Fanon|
{{!}} colspan="2" {{!}} [[{{FULLPAGENAME}}#WikiaArticleComments|Comments and Reviews]]
{{!}}-
}}-->
}}
|}<includeonly>{{#ifeq: {{Yesno-yes|{{{cat}}}|no=no}}|no| <!-- Don't add categories --> |
}}
{{Namespace detect
|}<includeonly>{{Checkmns|[[Category:Worlds in {{Checkgame|{{{name}}}}}]]}}{{Checkfns|[[Category:Worlds in {{Checkgame|{{{name}}}}} (fanon)]]}}</includeonly><noinclude>{{Documentation}}</noinclude>
|main = {{#if:{{{game|}}}|[[Category:Worlds in {{Vgcode|{{MGL|{{Delink|{{{game}}} }} }} }}]]}}
|fanon = {{#if:{{{game|}}}|[[Category:Worlds in {{Vgcode|{{MGL|{{Delink|{{{game}}} }} }} }} (fanon)]]}}
|custom = {{#if:{{{game|}}}|[[Category:Worlds in {{Vgcode|{{MGL|{{Delink|{{{game}}} }} }} }} (custom)]]}}
}}
}}</includeonly>
<noinclude>{{clr}}{{Documentation}}</noinclude>