Template:Infobox world: Difference between revisions

Update to recognize custom namespace
sims>LostInRiverview
m (Adding game logo, as currently exists on Neighborhood template)
(Update to recognize custom namespace)
 
(14 intermediate revisions by 6 users not shown)
Line 1:
<templatestyles src="Metainfobox/styles.css" /><!---*****OVERALL DESIGN CODE*****--->
<noinclude>{{under construction}}
{| class="metainfobox {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{#if:{{{game|}}}|{{{game<includeonly>|</includeonly>}}}|{{{game1}}} }} }} }} }} }}" cellpadding="1.5"
{{Metabox
! class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{#if:{{{game|}}}|{{{game<includeonly>|</includeonly>}}}|{{{game1}}} }} }} }} }} }}" colspan="2"{{!}}{{{name|{{PAGENAME}}}}}
|type = Notice
|image = Icon-warning-48x48.png
|headline = NOT A "LIVE" TEMPLATE
|text = This template is still being worked on and tested. ''Please do not use this template on any articles!''
|nocat = true
}}
</noinclude>
<!---*****OVERALL DESIGN CODE*****--->
{| class="metainfobox {{lc: {{MGL | {{vgcode | {{#if:{{{game|}}}|{{{game<includeonly>|</includeonly>}}}|{{{game1}}} }} }} }} }}" cellpadding="1.5"
! class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{#if:{{{game|}}}|{{{game<includeonly>|</includeonly>}}}|{{{game1}}} }} }} }} }}" colspan="2"{{!}}{{{name|{{PAGENAME}}}}}
{{!}}-
<!---*****GAME LOGO*****--->
Line 31 ⟶ 22:
{{#if: {{{game<includeonly>|</includeonly>}}} |
{{!}} Game
{{!}} {{GetGameIcon|{{{game}}}}}&nbsp;''[[{{{game}}}]]''
{{!}}-
}}
{{#if: {{{game1|}}} |
{{!}} Game
{{!}} {{GetGameIcon|{{{game1}}}}}&nbsp;''[[{{{game1}}}]]''
{{!}}-
}}
Line 44 ⟶ 35:
{{!}}-
}}
{{#ifeq: {{#expr: <noinclude>1 or </noinclude> {{#ifexist: {{FULLPAGENAME}}/Onomatology|1|0}} or {{checkfns|1|0}} }} | 1 | {{!}} class="metainfobox-header line {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{#if:{{{game|}}}|{{{game<includeonly>|</includeonly>}}}|{{{game1}}} }} }} }} }} }}" colspan="2" {{!}}
{{!}}-
{{#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>