Template:Infobox game: Difference between revisions

not done... need to test real quick
(move to /doc)
imported>Ferretwings
(not done... need to test real quick)
Line 1:
{{infobox family test2
<templatestyles src="Metainfobox/styles.css" /><!---*****OVERALL DESIGN CODE*****--->
{| classinfoboxtheme="metainfobox {{#switch:{{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegamegame|}}}|{{{name<includeonly>|</includeonly>}}} }} }} }} |ts1=The-Sims|ts2=The-Sims-2|ts3=The-Sims-3|ts4=The-Sims-4}}" cellpadding="1.5"
|name = {{{name|{{PAGENAME}}}}}
! class="metainfobox-header large {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{name<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2"{{!}}{{{name|{{PAGENAME}}}}}
|image = {{{image|}}}
{{!}}-
|caption = {{{caption|}}}
<!---*****BOX ART AND CAPTION*****--->
|developer = {{{developer|}}}
{{#if:{{{image<includeonly>|</includeonly>}}} |
|publisher = {{{publisher|}}}
{{!}} class="metainfobox-image" colspan="2" {{!}} {{{image}}}
|distributor = {{{distributor|}}}
{{!}}-
|designer = {{{designer|}}}
{{!}} class="metainfobox-caption" colspan="2" {{!}} {{#if:{{{caption|}}}|{{{caption}}}|Box art for {{{name|{{PAGENAME}} }}} }} }}
|series = {{{series|}}}
{{!}}-
|engine = {{{|}}}
<!---*****DEVELOPMENT INFO*****--->
|aspect ratio = {{{|}}}
{{#ifeq: {{#expr: {{#if:{{{developer|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{publisher|}}}|1|0}} or {{#if:{{{distributor|}}}|1|0}} or {{#if:{{{designer|}}}|1|0}} or {{#if:{{{ratings|}}}|1|0}} or {{#if:{{{series|}}}|1|0}} or {{#if:{{{release|}}}|1|0}} }} | 1 |
|resolution = {{{|}}}
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{name<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2" {{!}} Development
|version = {{{|}}}
{{!}}-
|platform = {{{|}}}
{{#if:{{{developer<includeonly>|</includeonly>}}} |
|release = {{{|}}}
{{!}} [[wikipedia:Video game developer|Developer(s)]]
{{!}}|genre = {{{developer|}}}
|modes = {{{|}}}
{{!}}-
|ratings = {{{|}}}
|media = {{{|}}}
|requirements = {{{|}}}
|input = {{{|}}}
|theme = {{{|}}}
|creature = {{{|}}}
|neighbor = {{{|}}}
|gameplay addition ={{{|}}}
}}
<noinclude>
{{#if:{{{publisher<includeonly>|</includeonly>}}} |
This template calls the Game infobox. This is so themes can still match CSS without having to mass edit pages/add a new field. That said, please note, if you ever need to edit/add a field to this infobox, you'll need to add it here AND to the actual template at [[Template:Infobox family test2]].
{{!}} [[wikipedia:Video game publisher|Publisher(s)]]
</noinclude>
{{!}} {{{publisher}}}
{{!}}-
}}
{{#if:{{{distributor<includeonly>|</includeonly>}}} |
{{!}} Distributor(s)
{{!}} {{{distributor}}}
{{!}}-
}}
{{#if:{{{designer<includeonly>|</includeonly>}}} |
{{!}} [[wikipedia:Game designer|Designer(s)]]
{{!}} {{{designer}}}
{{!}}-
}}
{{#if:{{{ratings<includeonly>|</includeonly>}}} |
{{!}} [[wikipedia:Video game content rating system|Ratings]]
{{!}} {{{ratings}}}
{{!}}-
}}
{{#if:{{{series<includeonly>|</includeonly>}}} |
{{!}} Series
{{!}} {{{series}}}
{{!}}-
}}
{{#if:{{{release<includeonly>|</includeonly>}}} |
{{!}} Release date(s)
{{!}} {{{release}}}
{{!}}-
}}
}}
<!---*****TECHNICAL INFO*****--->
{{#ifeq: {{#expr: {{#if:{{{engine|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{aspect ratio|}}}|1|0}} or {{#if:{{{resolution|}}}|1|0}} or {{#if:{{{version|}}}|1|0}} or {{#if:{{{platform|}}}|1|0}} or {{#if:{{{modes|}}}|1|0}} or {{#if:{{{media|}}}|1|0}} or {{#if:{{{requirements|}}}|1|0}} }} | 1 |
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{name<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2" {{!}} Technical information
{{!}}-
{{#if:{{{engine<includeonly>|</includeonly>}}} |
{{!}} [[Game engine|Engine]]
{{!}} {{{engine}}}
{{!}}-
}}
{{#if:{{{aspect ratio<includeonly>|</includeonly>}}} |
{{!}} [[wikipedia:Aspect ratio|Aspect ratio]]
{{!}} {{{aspect ratio}}}
{{!}}-
}}
{{#if:{{{resolution<includeonly>|</includeonly>}}} |
{{!}} [[wikipedia:Display resolution|Native resolution]]
{{!}} {{{resolution}}}
{{!}}-
}}
{{#if:{{{version<includeonly>|</includeonly>}}} |
{{!}} [[Patch notes|Version]]
{{!}} {{{version}}}
{{!}}-
}}
{{#if:{{{platform<includeonly>|</includeonly>}}} |
{{!}} [[wikipedia:Video game#Platforms|Platform(s)]]
{{!}} {{{platform}}}
{{!}}-
}}
{{#if:{{{modes<includeonly>|</includeonly>}}} |
{{!}} Mode(s)
{{!}} {{{modes}}}
{{!}}-
}}
{{#if:{{{media<includeonly>|</includeonly>}}} |
{{!}} Media
{{!}}{{{media}}}
{{!}}-
}}
{{#if:{{{requirements<includeonly>|</includeonly>}}} |
{{!}} System requirements
{{!}} {{{requirements}}}
{{!}}-
}}
{{#if:{{{input<includeonly>|</includeonly>}}} |
{{!}} Input methods
{{!}} {{{input}}}
{{!}}-
}}
}}
<!---******GAME FEATURES*****--->
{{#ifeq: {{#expr: {{#if:{{{theme|<noinclude>-</noinclude>}}}|1|0}} or {{#if:{{{genre|}}}|1|0}} or {{#if:{{{creature|}}}|1|0}} or {{#if:{{{neighbor|}}}|1|0}} or {{#if:{{{world|}}}|1|0}} or {{#if:{{{gameplay addition|}}}|1|0}} }} | 1 |
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{name<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2" {{!}} Game features
{{!}}-
{{#if:{{{genre<includeonly>|</includeonly>}}} |
{{!}}[[wikipedia:Video game genres|Genres]]
{{!}} {{{genre}}}
{{!}}-
}}
{{#if:{{{theme<includeonly>|</includeonly>}}} |
{{!}} {{!}}[[Theme|Themes]]
{{!}} {{{theme}}}
{{!}}-
}}
{{#if:{{{creature<includeonly>|</includeonly>}}} |
{{!}}[[Life state|Creatures]]
{{!}}{{{creature}}}
{{!}}-
}}
{{#if:{{{neighbor<includeonly>|</includeonly>}}} |
{{!}} [[Neighborhood]]s
{{!}} {{{neighbor}}}
{{!}}-
}}
{{#if:{{{world<includeonly>|</includeonly>}}} |
{{!}} [[World]]s
{{!}} {{{world}}}
{{!}}-
}}
{{#if:{{{gameplay addition<includeonly>|</includeonly>}}} |
{{!}} Gameplay additions
{{!}}{{{gameplay addition}}}
{{!}}-
}}
}}
<!---*****LINKS*****--->
{{#ifeq: {{#expr: <noinclude>1 or </noinclude>{{#ifexist: {{PAGENAME}}/cheats|1|0}} or {{#ifexist: {{PAGENAME}}/Patch|1|0}} or {{#ifexist: Game guide:{{PAGENAME}} walkthrough|1|0}} }} | 1 |
{{!}} class="metainfobox-header {{lc: {{MGL | {{vgcode | {{#if:{{{basegame|}}}|{{{basegame}}}|{{{name<includeonly>|</includeonly>}}} }} }} }} }}" colspan="2"{{!}} Related pages
{{!}}-
{{#ifexist: {{PAGENAME}}/Patch |
{{!}} colspan="2" {{!}} [[{{PAGENAME}}/Patch|Patches and updates]]
{{!}}-
}}
{{#ifexist: {{PAGENAME}}/cheats |
{{!}} colspan="2" {{!}} [[{{PAGENAME}}/cheats|Cheats]]
{{!}}-
}}
{{#ifexist: Game guide:{{PAGENAME}} walkthrough |
{{!}} colspan="2" {{!}} [[Game guide:{{PAGENAME}} walkthrough|Game walkthrough]]
{{!}}-
}}
}}
|}<includeonly>{{Checkfns|[[Category:Games (fanon)]]}}</includeonly><noinclude>{{clr}}{{Documentation}}</noinclude>
Anonymous user