Difference between revisions of "Template:Infobox"
Jump to navigation
Jump to search
(Initial setup) |
|||
Line 1: | Line 1: | ||
− | {{#invoke: | + | <includeonly>{{Infobox |
+ | |||
+ | <!-- Start and styling --> | ||
+ | | child = {{{child|}}} | ||
+ | | subbox = {{{subbox|}}} | ||
+ | | italic title = {{{italic title|<noinclude>no</noinclude>}}} | ||
+ | | bodystyle = float: {{{align|right}}}; width: {{#if:{{{width|}}}|{{{width|}}}|22em}}; font-size: 90%; text-align: left; border-spacing: 3px; | ||
+ | | bodyclass = {{#ifeq:{{{collapsible|}}}|yes|collapsible {{#if:{{{state|}}}|{{{state}}}|autocollapse}}}} hproduct | ||
+ | | labelstyle = white-space:nowrap;padding-right:0.65em<!--(to ensure gap between any long/nonwrapped label and subsequent data on same line-->; | ||
+ | | datastyle = line-height:1.3em; | ||
+ | | aboveclass = fn | ||
+ | | abovestyle = font-size:110%;font-style:italic; | ||
+ | |||
+ | <!-- Title --> | ||
+ | | above = <includeonly>{{{title|{{#if:{{#invoke:WikidataIB|label}}|{{#invoke:WikidataIB|label}}|{{PAGENAMEBASE}}}}}}}</includeonly> | ||
+ | |||
+ | <!-- 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}} | ||
+ | | captionstyle = font-size: 95%; | ||
+ | | caption = {{#if:{{{image|}}}|{{{caption|}}}|{{{caption|{{#invoke:WikidataIB|getValue|P18|qual=P2096|qualsonly=y|fwd=ALL}}}}}}} | ||
+ | |||
+ | <!-- Start of content --> | ||
+ | | label2 = [[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|no}}}|noicon={{{noicon|no}}}|sep="<br />"|sorted=yes|{{{developer|}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P178}}}}}}}}} | ||
+ | |||
+ | </includeonly> | ||
+ | <noinclude> | ||
{{documentation}} | {{documentation}} | ||
<!-- Categories go in the /doc subpage, and interwikis go in Wikidata. --> | <!-- Categories go in the /doc subpage, and interwikis go in Wikidata. --> | ||
</noinclude> | </noinclude> |
Revision as of 03:54, 10 October 2020
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB |getValue|rank=best|P18 |name=image |qid= |suppressfields= |fetchwikidata=ALL |onlysourced=no |noicon=yes|}}|size=|sizedefault=frameless|upright=1|alt=|border=|suppressplaceholder=yes}}
| captionstyle = font-size: 95%;
| caption = {{#invoke:WikidataIB|getValue|P18|qual=P2096|qualsonly=y|fwd=ALL}}
| label2 = Developer(s) | data2 = Template:If first display both
</includeonly>
[create] Template documentation
Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |