Diferencia entre revisiones de «Plantilla:Infobox»
De Inkipedia
m (Changed protection level for "Template:Infobox" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite))) |
(Added default image for unspecified image parameter) |
||
Línea 1: | Línea 1: | ||
<includeonly>{{BubbleBox|open|border={{{color|}}}|background=rgba({{#if:{{{color|}}}|{{{color}}}|{{SiteColor|Generic}}}}, 0.15)|style=width: 350px; padding: 8px; float: right; {{{style|}}}}} | <includeonly>{{BubbleBox|open|border={{{color|}}}|background=rgba({{#if:{{{color|}}}|{{{color}}}|{{SiteColor|Generic}}}}, 0.15)|style=width: 350px; padding: 8px; float: right; {{{style|}}}}} | ||
{{InfoboxTitle|color={{{color|}}}|{{{title|{{PAGENAME}}}}}}} | {{InfoboxTitle|color={{{color|}}}|{{{title|{{PAGENAME}}}}}}} | ||
<div style="text-align: center; margin: 8px;">[[File:{{{image}}}|x250px]]{{#if:{{{caption|}}}|<br />''{{{caption}}}''}}</div> | <div style="text-align: center; margin: 8px;">[[File:{{{image|Example.png}}}|x250px]]{{#if:{{{caption|}}}|<br />''{{{caption}}}''}}</div> | ||
</div> | </div> | ||
</includeonly><noinclude>__NOTOC__ | </includeonly><noinclude>__NOTOC__ | ||
Produces | Produces a basic infobox for a game. | ||
=== Parameters === | === Parameters === |
Revisión del 12:08 13 abr 2017
Produces a basic infobox for a game.
Parameters
color |
Optional. | An RGB triplet to use as the base color for formatting. The default color is 192, 192, 192. |
style |
Optional. | A CSS property list to apply to the top-level container. |
title |
Optional. | The game's title. If absent, the page name is used. |
image |
The filename of the game's box art. | |
caption |
Optional. | Text displayed below the box art image. |
Example
Markup
{{Infobox |color = {{SiteColor|Splatoon}} |title = Splatoon |image = Boxart.jpg |caption = North American box art }}
Output
Splatoon
Archivo:Boxart.jpg
North American box art
North American box art