Template:Infobox video game: Difference between revisions

From Research Realm
(Undo revision 2310 by Ringtail Raider (talk))
Tag: Undo
mNo edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{main other|{{short description|2=noreplace|{{if both|{{{released|{{{release|}}}}}}|{{#invoke:String|match|{{{released|{{{release|}}}}}}|[12]%d%d%d|match=1|nomatch=}}|{{#invoke:String|match|{{{released|{{{release|}}}}}}|[12]%d%d%d|match=1|nomatch=}} video game|Video game}}}}}}{{#invoke:infobox|infoboxTemplate
{{Infobox
<!-- Start and styling -->
<!-- Start and styling -->
| child          = {{{child|}}}
| child          = {{{child|}}}
Line 9: Line 9:


<!-- Title -->
<!-- Title -->
| above          = <includeonly>{{{title|{{#if:{{#invoke:WikidataIB|label}}|{{#invoke:WikidataIB|label}}|{{PAGENAMEBASE}}}}}}}</includeonly>
| above          = <includeonly>{{{title|{{{name|{{PAGENAMEBASE}}}}}}}}</includeonly>


<!-- Image -->
<!-- Image -->
| image          = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB |getValue|rank=best|P18 |name=image |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |onlysourced=no |noicon=yes|{{{image|}}}}}|size={{{image size|{{{image_size|{{{imagesize|}}}}}}}}}|sizedefault=frameless|upright<!--={{{image_upright|1}}}-->|alt={{{alt|}}}|border={{{border|}}}|suppressplaceholder=yes}}
| image          = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image size|{{{image_size|{{{imagesize|}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|border={{{border|}}}|suppressplaceholder=yes}}


| caption        = {{#if:{{{image|}}}|{{{caption|}}}|{{{caption|{{#invoke:WikidataIB|getValue|P18|qual=P2096|qualsonly=y|fwd=ALL}}}}}}}
| caption        = {{#if:{{{image|}}}|{{{caption|}}}|{{{caption|}}}}}


<!-- Start of content -->
<!-- Start of content -->
| label2  = [[Wikipedia:Video game developer|Developer(s)]]
| label2  = [[Wikipedia:Video game developer|Developer(s)]]
| data2  = {{{developer|{{If first display both|{{#invoke:WikidataIB|getValue|rank=best|P178|qid={{{qid|}}}|name=developer|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|yes}}}|noicon={{{noicon|no}}}|list=ubl|sorted=yes|{{{developer|}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P178}}}}}}}}}
| data2  = {{{developer|{{If first display both|{{{developer|}}}}}}}}


| label3  = [[Wikipedia:Video game publisher|Publisher(s)]]
| label3  = [[Wikipedia:Video game publisher|Publisher(s)]]
| data3  = {{{publisher|{{If first display both|{{#invoke:WikidataIB|getValue|rank=best|P123|qid={{{qid|}}}|name=publisher|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|yes}}}|noicon={{{noicon|no}}}|list=ubl|sorted=yes|{{{publisher|}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P123}}}}}}}}}
| data3  = {{{publisher|{{If first display both|{{{publisher|}}}}}}}}


| label4  = [[Wikipedia:Video game creative director|Director(s)]]
| label4  = [[Wikipedia:Video game creative director|Director(s)]]
| data4  = {{{director|{{If first display both|{{#invoke:WikidataIB|getValue|rank=best|P57|qid={{{qid|}}}|name=director|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|yes}}}|noicon={{{noicon|no}}}|list=ubl|sorted=yes|{{{director|}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P57}}}}}}}}}
| data4  = {{{director|{{If first display both|{{{director|}}}}}}}}


| label5  = [[Wikipedia:Video game producer|Producer(s)]]
| label5  = [[Wikipedia:Video game producer|Producer(s)]]
| data5  = {{{producer|{{If first display both|{{#invoke:WikidataIB|getValue|rank=best|P162|qid={{{qid|}}}|name=producer|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|yes}}}|noicon={{{noicon|no}}}|list=ubl|sorted=yes|{{{producer|}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P162}}}}}}}}}
| data5  = {{{producer|{{If first display both|{{{producer|}}}}}}}}


| label6  = [[Wikipedia:Video game designer|Designer(s)]]
| label6  = [[Wikipedia:Video game designer|Designer(s)]]
| data6  = {{{designer|{{If first display both|{{#invoke:WikidataIB|getValue|rank=best|P287|qid={{{qid|}}}|name=designer|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|yes}}}|noicon={{{noicon|no}}}|list=ubl|sorted=yes|{{{designer|}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P287}}}}}}}}}
| data6  = {{{designer|{{If first display both|{{{designer|}}}}}}}}


| label7  = [[Wikipedia:Video game programmer|Programmer(s)]]
| label7  = [[Wikipedia:Video game programmer|Programmer(s)]]
| data7  = {{{programmer|{{If first display both|{{#invoke:WikidataIB|getValue|rank=best|P943|qid={{{qid|}}}|name=programmer|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|yes}}}|noicon={{{noicon|no}}}|list=ubl|sorted=yes|{{{programmer|}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P943}}}}}}}}}
| data7  = {{{programmer|{{If first display both|{{{programmer|}}}}}}}}


| label8  = [[Wikipedia:Video game artist|Artist(s)]]
| label8  = [[Wikipedia:Video game artist|Artist(s)]]
| data8  = {{{artist|{{If first display both|{{#invoke:WikidataIB|getValue|rank=best|P3080|qid={{{qid|}}}|name=artist|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|yes}}}|noicon={{{noicon|no}}}|list=ubl|sorted=yes|{{{artist|}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P3080}}}}}}}}}
| data8  = {{{artist|{{If first display both|{{{artist|}}}}}}}}


| label9  = [[Wikipedia:Video game writer|Writer(s)]]
| label9  = [[Wikipedia:Video game writer|Writer(s)]]
| data9  = {{{writer|{{If first display both|{{#invoke:WikidataIB|getValue|rank=best|P50|qid={{{qid|}}}|name=writer|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|yes}}}|noicon={{{noicon|no}}}|list=ubl|sorted=yes|{{{writer|}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P50}}}}}}}}}
| data9  = {{{writer|{{If first display both|{{{writer|}}}}}}}}


| label10 = [[Wikipedia:Video game composer|Composer(s)]]
| label10 = [[Wikipedia:Video game composer|Composer(s)]]
| data10  = {{{composer|{{If first display both|{{#invoke:WikidataIB|getValue|rank=best|P86|qid={{{qid|}}}|name=composer|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|yes}}}|noicon={{{noicon|no}}}|list=ubl|sorted=yes|{{{composer|}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P86}}}}}}}}}
| data10  = {{{composer|{{If first display both|{{{composer|}}}}}}}}


| label11 = Series
| label11 = Series
| data11  = {{{series|{{If first display both|{{#invoke:WikidataIB|getValue|rank=best|P179|qid={{{qid|}}}|name=series|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|yes}}}|noicon={{{noicon|no}}}|list=ubl|sorted=yes|prefix=''|postfix=''|{{{series|}}}}}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P179}}}}}}}}}
| data11  = {{{series|{{If first display both|{{{series|}}}}}}}}


| label12 = [[Wikipedia:Game engine|Engine]]
| label12 = [[Wikipedia:Game engine|Engine]]
| data12  = {{{engine|{{If first display both|{{#invoke:WikidataIB|getValue|rank=best|P408|qid={{{qid|}}}|name=engine|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|yes}}}|noicon={{{noicon|no}}}|list=ubl|sorted=yes|{{{engine|}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P408}}}}}}}}}
| data12  = {{{engine|{{If first display both|{{{engine|}}}}}}}}


| label13 = [[Wikipedia:Computing platform|Platform(s)]]
| label13 = [[Wikipedia:Computing platform|Platform(s)]]
| data13  = {{{platform|{{{platforms|{{If first display both|{{#invoke:WikidataIB|getValue|rank=best|P400|qid={{{qid|}}}|name=platform|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|yes}}}|noicon={{{noicon|no}}}|list=ubl|sorted=yes|{{{platform|{{{platforms|}}}}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P400}}}}}}}}}}}}
| data13  = {{{platform|{{{platforms|{{If first display both|{{{platform|{{{platforms|}}}}}}}}}}}}}}


| label14 = Release
| label14 = Release
Line 57: Line 57:


| label15 = [[Wikipedia:Video game genre|Genre(s)]]
| label15 = [[Wikipedia:Video game genre|Genre(s)]]
| data15  = {{{genre|{{If first display both|{{#invoke:String2 |ucfirst |{{#invoke:WikidataIB|getValue|rank=best|P136|qid={{{qid|}}}|name=genre|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|yes}}}|noicon={{{noicon|no}}}|list=ubl|sorted=yes|shortname=yes|{{{genre|}}} }} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P136}}}}}}}}}
| data15  = {{{genre|{{If first display both|{{#invoke:String2 |ucfirst |{{{genre|}}}}}}}}}}


| label16 = Mode(s)
| label16 = Mode(s)
| data16  = {{{modes|{{If first display both|{{#invoke:String2 |ucfirst |{{#invoke:WikidataIB|getValue|rank=best|P404|qid={{{qid|}}}|name=modes|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|yes}}}|noicon={{{noicon|no}}}|list=ubl|sorted=yes|shortname=yes|{{{modes|}}} }} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P404}}}}}}}}}
| data16  = {{{modes|{{If first display both|{{#invoke:String2 |ucfirst |{{{modes|}}}}}}}}}}


| label17 = [[Wikipedia:Arcade system board|Arcade system]]
| label17 = [[Wikipedia:Arcade system board|Arcade system]]
| data17  = {{{arcade system|{{If first display both|{{#invoke:WikidataIB|getQualifierValue|P2670|pval=Q631229|qual=P31|qid={{{qid|}}}|name=arcade_system|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|yes}}}|noicon={{{noicon|no}}}|list=ubl|sorted=yes|{{{arcade system|}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P2670|Q631229}}}}}}}}}
| data17  = {{{arcade system|{{If first display both|{{{arcade system|}}}}}}}}


<!-- For embedded infoboxes -->
<!-- For embedded infoboxes -->
| data30  = {{{embedded|}}}<!--
| data30  = {{{embedded|}}}
we don't use wikidata as far as i know
| below    = <includeonly>{{EditOnWikidata|noicon={{{noicon|no}}}|qid={{{qid|}}}}}</includeonly>-->


<!-- Checking code and closing -->
<!-- Checking code and closing -->
}}{{main other|{{#ifeq:{{lc:{{{italic title|}}}}}|no||{{italic title|force={{#ifeq:{{lc:{{{italic title|}}}}}|force|true}}}}}}
}}{{main other|{{#ifeq:{{lc:{{{italic title|}}}}}|no||{{italic title|force={{#ifeq:{{lc:{{{italic title|}}}}}|force|true}}}}}}
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox video game with unknown parameters|_VALUE_{{PAGENAME}}]]}}|ignoreblank=1|preview=Page using [[Template:Infobox video game]] with unknown parameter "_VALUE_"| alt | arcade system | artist | caption | border | child | collapsible | commons | composer | designer | developer | director | embedded | engine | fetchwikidata | genre | image | image_size | image_upright | italic title | modes | noicon | onlysourced | platform | platforms | producer | programmer | publisher | qid | refs | release | released | series | state | subbox | suppressfields | title | writer }}<includeonly>{{main other|{{#if:{{safesubst:#invoke:Check for unknown parameters|check|unknown=1|preview=1|embedded|image}}|[[Category:Articles using Infobox video game using locally defined parameters]]|[[Category:Articles with infoboxes completely from Wikidata]]}}}}{{#if:{{{image|}}}|[[Category:Articles using Wikidata infoboxes with locally defined images]]}}</includeonly><noinclude><!-- NOTE: The {{#if:1| ... }} syntax allows for list markup to be included in the data fields -->
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox video game with unknown parameters|_VALUE_{{PAGENAME}}]]}}|ignoreblank=1|preview=Page using [[Template:Infobox video game]] with unknown parameter "_VALUE_"| alt | arcade system | artist | caption | border | child | collapsible | commons | composer | designer | developer | director | embedded | engine | genre | image | image_size | image_upright | italic title | modes | platform | platforms | producer | programmer | publisher | release | released | series | state | subbox | suppressfields | title | writer }}<noinclude><!-- NOTE: The {{#if:1| ... }} syntax allows for list markup to be included in the data fields -->
{{documentation}}<!-- Add cats and interwikis to the /doc subpage, not here! -->
{{documentation}}<!-- Add cats and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 06:50, 16 May 2024