Diferencia entre revisiones de «Plantilla:Infobox»
De Inkipedia
mSin resumen de edición |
m (Allowed "open" to be specified) |
||
Línea 2: | Línea 2: | ||
{{InfoboxTitle|color={{{color|}}}|{{{title|{{PAGENAME}}}}}}} | {{InfoboxTitle|color={{{color|}}}|{{{title|{{PAGENAME}}}}}}} | ||
<div style="text-align: center; margin: 8px; max-width: 334px;">[[File:{{{image|Example.png}}}|frameless|334x250px]]{{#if:{{{caption|}}}|<br />''{{{caption}}}''}}</div> | <div style="text-align: center; margin: 8px; max-width: 334px;">[[File:{{{image|Example.png}}}|frameless|334x250px]]{{#if:{{{caption|}}}|<br />''{{{caption}}}''}}</div> | ||
</div> | {{#ifeq:{{{1|}}}|open||{{{1|}}}</div>}} | ||
</includeonly><noinclude>__NOTOC__ | </includeonly><noinclude>__NOTOC__ | ||
Produces a basic infobox for a game. | Produces a basic infobox for a game. | ||
=== Parameters === | === Parameters === | ||
{| | {||- style="vertical-align: top;" | ||
|<code>open</code>||Optional.||Like with {{t|BubbleBox}}, the "open" parameter leaves the table open (unclosed div) for further customization. | |||
|- style="vertical-align: top;" | |||
|- 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 {{t|SiteColor|Generic}}. | |<code>color</code>||Optional.||An RGB triplet to use as the base color for formatting. The default color is {{t|SiteColor|Generic}}. |
Revisión del 15:13 13 abr 2017
Produces a basic infobox for a game.
Parameters
open |
Optional. | Like with {{BubbleBox}} , the "open" parameter leaves the table open (unclosed div) for further customization.
|
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
North American box art
{{Infobox |color = {{SiteColor|Splatoon 2}} |title = Splatoon 2 |caption = Example }}
Output
{{Infobox |color = {{SiteColor|Generic}} |title = Moray Towers |image = Splatoon Stage Moray Towers.png |caption = Horizontal image }}
Output
Moray Towers
Archivo:Splatoon Stage Moray Towers.png
Horizontal image
Horizontal image