Diferencia entre revisiones de «Plantilla:Infobox»

De Inkipedia
(Added example)
(→‎Parameters: image is also optional now)
Línea 9: Línea 9:
{|
{|
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>color</code>||Optional.||An RGB triplet to use as the base color for formatting. The default color is 192, 192, 192.
|<code>color</code>||Optional.||An RGB triplet to use as the base color for formatting. The default color is {{t|SiteColor|Generic}}.
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>style</code>||Optional.||A CSS property list to apply to the top-level container.
|<code>style</code>||Optional.||A CSS property list to apply to the top-level container.
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>title</code>||Optional.||The game's title. If absent, the page name is used.
|<code>title</code>||Optional.||The title. If absent, the page name is used.
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>image</code>||&nbsp;||The filename of the game's box art.
|<code>image</code>||Optional||The filename of the image to display.
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>caption</code>||Optional.||Text displayed below the box art image.
|<code>caption</code>||Optional.||Text displayed below the image.
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|}
|}

Revisión del 12:12 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 {{SiteColor|<Generic>}}.
style Optional. A CSS property list to apply to the top-level container.
title Optional. The title. If absent, the page name is used.
image Optional The filename of the image to display.
caption Optional. Text displayed below the 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
{{Infobox
|color     = {{SiteColor|Splatoon 2}}
|title     = Splatoon 2
|caption   = Example
}}

Output

Splatoon 2

Example