Template:Infobox world: Difference between revisions

Update to recognize custom namespace
imported>LostInRiverview
No edit summary
(Update to recognize custom namespace)
 
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|{{#if:{{{game|}}}|[[Category:Worlds in {{Vgcode|{{MGL|{{{game}}}}}}}]]}}}}{{Checkfns|{{#if:{{{game|}}}|[[Category:Worlds in {{Vgcode|{{MGL|{{{game}}}}}}} (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>