Template:Infobox neighborhood: Difference between revisions

Update for new custom namespace
sims>LostInRiverview
No edit summary
(Update for new custom namespace)
 
(27 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|}}}|{{Delink|{{{game<includeonly>|</includeonly>}}}}}|{{Delink|{{{game1}}}}} }} }} }} }} }}" cellpadding="1.5"
{{Metabox
! class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{#if:{{{game|}}}|{{Delink|{{{game<includeonly>|</includeonly>}}}}}|{{Delink|{{{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 | {{{game<includeonly>|</includeonly>}}} }} }} }}" cellpadding="1.5"
! class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{{game<includeonly>|</includeonly>}}} }} }} }}" colspan="2"{{!}}{{{name|{{PAGENAME}}}}}
{{!}}-
<!---*****GAME LOGO*****--->
{{#if:{{{namegame<includeonly>|</includeonly>}}} |
{{!}} class="metainfobox-logo" colspan="2" {{!}} <small><center>{{GetGameImage|{{Delink|{{{game}}}}}|{{{neighbor|}}}}}</center></small>
{{!}}-
}}
<!---*****BOX ART AND CAPTION*****--->
{{#if:{{{image<includeonly>|</includeonly>}}} |
Line 21 ⟶ 17:
}}
}}
{{#if:{{{name<includeonly>|</includeonly>}}} |
{{!}} Name
{{!}} {{#if:{Name{{name|}}}|{{PAGENAME{name}}}|{{PAGENAME}}}}
{{!}}-
{{#if: {{{world<includeonly>|</includeonly>}}} |
{{!}} World
{{!}} {{Addlink|{{{world}}}}}
{{!}}-
}}
{{#if: {{{game<includeonly>|</includeonly>}}} |
{{!}} Game
{{!}} {{GetGameIcon|{{{game}}}}}&nbsp;''{{Addlink|{{{game}}}}}''
{{!}}-
}}
{{#if: {{{game</includeonly>game1|</includeonly>}}} |
{{!}} Game
{{!}} {{GetGameIcon|{{{gamegame1}}}}}[[&nbsp;''{{Addlink|{game{{game1}}}}}]]''
{{!}}-
}}
{{#ifeq: {{#expr: <noinclude>1 or </noinclude> {{#ifexist: {{FULLPAGENAME}}/Onomatology|1|0}}<inlcudeonly> or {{checkfns|1|0}}</includeonly> }} | 1 | {{!}} class="metainfobox-header line {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{#if:{{{game|}}}|{{Delink|{{{game<includeonly>|</includeonly>}}}}}|{{Delink|{{{game1}}}}} }} }} }} }} }}" colspan="2" {{!}}
{{!}}-
{{#ifexist: {{FULLPAGENAME}}/Onomatology |
Line 37 ⟶ 41:
{{!}}-
}}
<!---*****FANON COMMENTS LINK***** - not used on Miraheze
<includeonly>{{checkfns|
{{#ifeq:{{NAMESPACE}}|Fanon|
{{!}} colspan="2" {{!}} [[{{FULLPAGENAME}}#WikiaArticleComments|Comments and Reviews]]
{{!}}-
}}-->
}}</includeonly>
}}
|}<includeonly>{{#ifeq: {{Yesno-yes|{{{cat}}}|no=no}}|no| <!-- Don't add categories --> |
|}<includeonly>{{Checkmns|[[Category:Neighborhoods in {{Checkgame|{{{name}}}}}]]}}{{Checkfns|[[Category:Neighborhoods in {{Checkgame|{{{name}}}}} (fanon)]]}}</includeonly>
{{Namespace detect
<noinclude>{{Documentation}}</noinclude>
|main = {{#if:{{{game|}}}|[[Category:Neighborhoods in {{Vgcode|{{MGL|{{Delink|{{{game}}} }} }} }}]]}}{{#if:{{{world|}}}|[[Category:{{Delink|{{{world}}}}} neighborhoods]]}}
|fanon = {{#if:{{{game|}}}|[[Category:Neighborhoods in {{Vgcode|{{MGL|{{Delink|{{{game}}} }} }} }} (fanon)]]}}{{#if:{{{world|}}}|[[Category:{{Delink|{{{world}}}}} neighborhoods (fanon)]]}}
|custom = {{#if:{{{game|}}}|[[Category:Neighborhoods in {{Vgcode|{{MGL|{{Delink|{{{game}}} }} }} }} (custom)]]}}{{#if:{{{world|}}}|[[Category:{{Delink|{{{world}}}}} neighborhoods (custom)]]}}
}}
}}</includeonly><noinclude>{{clr}}{{Documentation}}</noinclude>