Différences entre versions de « Modèle:Infobox video game »

De ArcadePlus
Sauter à la navigation Sauter à la recherche
en>RexxS
(add shortname=yes to enable shortname if available for genre and modes)
 
m
 
(8 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
 
{{Infobox
 
{{Infobox
<!-- Start and styling -->
+
| title = {{{title|}}}
| child          = {{{child|}}}
+
| bodyclass    = vevent
| subbox        = {{{subbox|}}}
+
| bodystyle    = font-size: 90%
| italic title  = {{{italic title|<noinclude>no</noinclude>}}}
+
| labelstyle  = white-space: nowrap
| bodystyle      = float: {{{align|right}}}; width: {{#if:{{{width|}}}|{{{width|}}}|22em}}; font-size: 90%; text-align: left; border-spacing: 3px;
+
| aboveclass  = summary
| bodyclass      = {{#ifeq:{{{collapsible|}}}|yes|collapsible {{#if:{{{state|}}}|{{{state}}}|autocollapse}}}} hproduct
+
| abovestyle  = font-size: 110%; font-style: italic
| labelstyle    = white-space:nowrap;padding-right:0.65em<!--(to ensure gap between any long/nonwrapped label and subsequent data on same line-->;
+
| above        = {{{name|<includeonly>{{PAGENAME}}</includeonly>}}}
| datastyle      = line-height:1.3em;
+
| image        = {{#if:{{{image|}}}|[[File:{{{image}}}|{{px|{{{image_size|{{{image size|}}}}}}|frameless}}|alt={{{alt|}}}]]}}
| aboveclass    = fn
+
| image2        = {{#if:{{{image2|}}}|[[File:{{{image2}}}|{{px|{{{image_size|{{{image size|}}}}}}|frameless}}|alt={{{alt|}}}]]}}
| abovestyle    = font-size:110%;font-style:italic;
+
| image3        = {{#if:{{{image3|}}}|[[File:{{{image3}}}|{{px|{{{image_size|{{{image size|}}}}}}|frameless}}|alt={{{alt|}}}]]}}
 +
| captionstyle = font-size: 95%; line-height: 1.5em
 +
| caption      = {{{caption|}}}
  
<!-- Title -->
+
| label1      = Katakana
| above          = <includeonly>{{{title|{{#if:{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{PAGENAMEBASE}}}}}}}</includeonly>
+
| class1      = description
 +
| data1        = {{{kana|}}}
  
<!-- Image -->
+
| label2      = Rōmaji
| image          = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB |getPreferredValue |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}}
+
| class2      = description
| captionstyle  = font-size: 95%;
+
| data2       = {{#if: {{{romaji|}}}|''{{{romaji|}}}''}}
| caption       = {{#if:{{{image|}}}|{{{caption|}}}|{{{caption|{{#invoke:Wikidata|getImageLegend|FETCH_WIKIDATA}}}}}}}
 
  
<!-- Start of content -->
+
| label3      = Développeur
| label2  = [[Video game developer|Developer(s)]]
+
| data3        = {{{developer|}}}
| data2  = {{{developer|{{If first display both|{{#invoke:WikidataIB|getPreferredValue|P178|qid={{{qid|}}}|name=developer|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|noicon={{{noicon|no}}}|sep="<br />"|sorted=yes|{{{developer|}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P178}}}}}}}}}
 
  
| label3  = [[Video game publisher|Publisher(s)]]
+
| label4      = Editeur
| data3  = {{{publisher|{{If first display both|{{#invoke:WikidataIB|getPreferredValue|P123|qid={{{qid|}}}|name=publisher|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|noicon={{{noicon|no}}}|sep="<br />"|sorted=yes|{{{publisher|}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P123}}}}}}}}}
+
| data4        = {{{publisher|}}}
  
| label4  = [[Video game creative director|Director(s)]]
+
| label5      = Directeur
| data4  = {{{director|{{If first display both|{{#invoke:WikidataIB|getPreferredValue|P57|qid={{{qid|}}}|name=director|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|noicon={{{noicon|no}}}|sep="<br />"|sorted=yes|{{{director|}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P57}}}}}}}}}
+
| data5      = {{{director|}}}
  
| label5  = [[Video game producer|Producer(s)]]
+
| label6      = Producteur
| data5  = {{{producer|{{If first display both|{{#invoke:WikidataIB|getPreferredValue|P162|qid={{{qid|}}}|name=producer|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|noicon={{{noicon|no}}}|sep="<br />"|sorted=yes|{{{producer|}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P162}}}}}}}}}
+
| data6        = {{{producer|}}}
  
| label6  = [[Video game designer|Designer(s)]]
+
| label7      = Designer
| data6  = {{{designer|{{If first display both|{{#invoke:WikidataIB|getPreferredValue|P287|qid={{{qid|}}}|name=designer|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|noicon={{{noicon|no}}}|sep="<br />"|sorted=yes|{{{designer|}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P287}}}}}}}}}
+
| data7        = {{{designer|}}}
  
| label7  = [[Video game programmer|Programmer(s)]]
+
| label8      = Programmeur
| data7  = {{{programmer|{{If first display both|{{#invoke:WikidataIB|getPreferredValue|P943|qid={{{qid|}}}|name=programmer|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|noicon={{{noicon|no}}}|sep="<br />"|sorted=yes|{{{programmer|}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P943}}}}}}}}}
+
| data8        = {{{programmer|}}}
  
| label8  = [[Video game artist|Artist(s)]]
+
| label9      = Artiste
| data8  = {{{artist|{{If first display both|{{#invoke:WikidataIB|getPreferredValue|P3080|qid={{{qid|}}}|name=artist|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|noicon={{{noicon|no}}}|sep="<br />"|sorted=yes|{{{artist|}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P3080}}}}}}}}}
+
| data9        = {{{artist|}}}
  
| label9  = [[Video game writer|Writer(s)]]
+
| label10      = Compositeur
| data9  = {{{writer|{{If first display both|{{#invoke:WikidataIB|getPreferredValue|P50|qid={{{qid|}}}|name=writer|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|noicon={{{noicon|no}}}|sep="<br />"|sorted=yes|{{{writer|}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P50}}}}}}}}}
+
| data10        = {{{composer|}}}
  
| label10 = [[Video game composer|Composer(s)]]
+
| label11      = Séries
| data10  = {{{composer|{{If first display both|{{#invoke:WikidataIB|getPreferredValue|P86|qid={{{qid|}}}|name=composer|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|noicon={{{noicon|no}}}|sep="<br />"|sorted=yes|{{{composer|}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P86}}}}}}}}}
+
| data11        = {{{series|}}}
  
| label11 = Series
+
| label12      = Date de sortie
| data11  = {{{series|{{If first display both|{{#invoke:WikidataIB|getPreferredValue|P179|qid={{{qid|}}}|name=series|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|noicon={{{noicon|no}}}|sep="<br />"|sorted=yes|{{{series|}}}}}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P179}}}}}}}}}
+
| data12        = {{{released|}}}
  
| label12 = [[Game engine|Engine]]
+
| label13      = Genre
| data12  = {{{engine|{{If first display both|{{#invoke:WikidataIB|getPreferredValue|P408|qid={{{qid|}}}|name=engine|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|noicon={{{noicon|no}}}|sep="<br />"|sorted=yes|{{{engine|}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P408}}}}}}}}}
+
| data13      = {{{genre|}}}
  
| label13 = [[Computing platform|Platform(s)]]
+
| label14      = Media
| data13  = {{{platform|{{{platforms|{{If first display both|{{#invoke:WikidataIB|getPreferredValue|P400|qid={{{qid|}}}|name=platform|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|noicon={{{noicon|no}}}|sep="<br />"|sorted=yes|{{{platform|{{{platforms|}}}}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P400}}}}}}}}}}}}
+
| data14        = {{{media|}}}
  
| label14 = Release
+
| label15      = Contrôles
| data14  = {{{released|{{{release|}}}}}}
+
| data15        = {{{control|}}}
  
| label15 = [[Video game genre|Genre(s)]]
+
| label16      = Orientation
| data15  = {{{genre|{{If first display both|{{#invoke:String2 |ucfirst |{{#invoke:WikidataIB|getPreferredValue|P136|qid={{{qid|}}}|name=genre|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|noicon={{{noicon|no}}}|sep="<br />"|sorted=yes|shortname=yes|{{{genre|}}} }} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P136}}}}}}}}}
+
| data16        = {{{orientation|}}}
  
| label16 = Mode(s)
+
| label17      = Matériel
| data16  = {{{modes|{{If first display both|{{#invoke:String2 |ucfirst |{{#invoke:WikidataIB|getPreferredValue|P404|qid={{{qid|}}}|name=modes|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|noicon={{{noicon|no}}}|sep="<br />"|sorted=yes|shortname=yes|{{{modes|}}} }} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P404}}}}}}}}}
+
| data17      = {{{arcade hardware|}}}
  
| label17 = [[Arcade cabinet|Cabinet]]
+
| label18      = CPU
| data17  = {{{cabinet|{{If first display both|{{#invoke:WikidataIB|getQualifierValue|P2670|pval=Q1349717|qual=P31|qid={{{qid|}}}|name=cabinet|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|noicon={{{noicon|no}}}|sep="<br />"|sorted=yes|{{{cabinet|}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P2670|Q1349717}}}}}}}}}
+
| data18      = {{{cpu|}}}
  
| label18 = [[Arcade system board|Arcade system]]
+
| label19      = Son
| data18  = {{{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|no}}}|noicon={{{noicon|no}}}|sep="<br />"|sorted=yes|{{{arcade system|}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P2670|Q631229}}}}}}}}}
+
| data19      = {{{sound|}}}
  
| label19 = [[Central processing unit|CPU]]
+
| label20      = Affichage
| data19  = {{{cpu|{{If first display both|{{#invoke:WikidataIB|getPreferredValue|P880|qid={{{qid|}}}|name=cpu|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|noicon={{{noicon|no}}}|sep="<br />"|sorted=yes|{{{cpu|}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P880}}}}}}}}}
+
| data20      = {{{display|}}}
  
| label20 = Sound
+
| label21      = Connectique
| data20  = {{{sound|{{If first display both|{{#invoke:WikidataIB|getQualifierValue|P2670|pval=Q1418253|qual=P31|qid={{{qid|}}}|name=sound|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|noicon={{{noicon|no}}}|sep="<br />"|sorted=yes|{{{sound|}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P2670|Q1418253}}}}}}}}}
+
| data21      = {{{pinout|}}}
  
| label21 = Display
+
}}<noinclude>
| data21  = {{{display|{{If first display both|{{#invoke:WikidataIB|getQualifierValue|P2670|pval=Q1852898|qual=P31|qid={{{qid|}}}|name=display|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|noicon={{{noicon|no}}}|sep="<br />"|sorted=yes|{{{display|}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P2670|Q1852898}}}}}}}}}
+
Template for usage:
 
+
<pre style="overflow:auto">
<!-- For embedded infoboxes -->
+
{{Infobox video game
| data30  = {{{embedded|}}}
+
|name =
 
+
|kana =  
<!--| data32 = <div style="text-align: center;">{{#if:{{#invoke:Wikidata|getValue|P373|{{{commons|FETCH_WIKIDATA}}} }} | {{icon|Commons}} [[Commons:{{#if:{{{commons|}}} | {{{commons}}} | Category:{{#invoke:Wikidata|getValue|P373|FETCH_WIKIDATA}} }} |Related media on Wikimedia Commons]]}}</div> -->
+
|romaji =  
 
+
|image =
| below    = <includeonly>{{EditOnWikidata|noicon={{{noicon|no}}}|qid={{{qid|}}}}}</includeonly>
+
|caption=  
 
+
|developer =  
<!-- Checking code and closing -->
+
|director =  
}}{{main other|{{#ifeq:{{lc:{{{italic title|}}}}}|no||{{italic title|force={{#ifeq:{{lc:{{{italic title|}}}}}|force|true}}}}}}
+
|publisher =
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox video game with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox video game]] with unknown parameter "_VALUE_"| align | alt | arcade system | artist | cabinet | caption | border | child | collapsible | commons | composer | cpu | designer | developer | director | display | embedded | engine | fetchwikidata | genre | image | image_size | image_upright | italic title | modes | noicon | onlysourced | platform | platforms | producer | programmer | publisher | qid | refs | release | released | series | sound | state | subbox | suppressfields | title | width | 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 -->
+
|producer =  
{{documentation}}<!-- Add cats and interwikis to the /doc subpage, not here! -->
+
|designer =
 +
|programmer =
 +
|artist =
 +
|composer =
 +
|series =  
 +
|released =
 +
|genre =  
 +
|media =
 +
|control =
 +
|orientation =
 +
|arcade hardware =
 +
|cpu =
 +
|sound =
 +
|display =
 +
|pinout =
 +
}}
 +
</pre>
 +
[[Category: Templates]]
 
</noinclude>
 
</noinclude>
 +
<Includeonly>
 +
[[Category:Jeux]]
 +
</includeonly>

Version actuelle datée du 1 juin 2019 à 16:06

Template for usage:

{{Infobox video game
|name =
|kana = 
|romaji = 
|image =
|caption= 
|developer = 
|director = 
|publisher =
|producer = 
|designer =
|programmer =
|artist =
|composer =
|series = 
|released =  
|genre = 
|media =
|control =
|orientation =
|arcade hardware = 
|cpu = 
|sound =
|display = 
|pinout =
}}