Diferencia entre revisiones de «Plantilla:Infobox»

De Inkipedia
(Spelling fixes (Noteable -> Notable))
(Rewrote using BubbleBox)
Línea 1: Línea 1:
{| class="infobox" align="right"
<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}}}}}}}
! colspan="2" class="infobox1" | {{{name|{{PAGENAME}}}}}
<div style="text-align: center; margin: 8px;">[[File:{{{image}}}|x250px]]{{#if:{{{caption|}}}|<br />''{{{caption}}}''}}</div>
|- style="text-align:center;"
</div>
| colspan="2" style="padding:0.5em;" | [[{{{image|Image:Placeholder person.png}}}|250px]]<br/>''{{{caption| }}}''
</includeonly><noinclude>__NOTOC__
|-
Produces an infobox for a game.
{{#if: {{{Notable Inklings<includeonly>|</includeonly>}}} |
 
{{!}} '''Notable Inklings'''
=== Parameters ===
{{!}} {{{Notable Inklings}}}
{|
|- 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.
|- style="vertical-align: top;"
|<code>style</code>||Optional.||A CSS property list to apply to the top-level container.
|- style="vertical-align: top;"
|<code>title</code>||Optional.||The game's title. If absent, the page name is used.
|- style="vertical-align: top;"
|<code>image</code>||&nbsp;||The filename of the game's box art.
|- style="vertical-align: top;"
|<code>caption</code>||Optional.||Text displayed below the box art image.
|- style="vertical-align: top;"
|}
 
=== Example ===
==== Markup ====
<nowiki>{{Infobox
|color    = {{SiteColor|Splatoon}}
|title    = Splatoon
|image    = Boxart.jpg
|caption  = North American box art
}}</nowiki>
 
==== Output ====
{{Infobox
|color    = {{SiteColor|Splatoon}}
|title    = Splatoon
|image    = Boxart.jpg
|caption  = North American box art
}}
}}
|-
{{clr}}
{{#if: {{{Allies<includeonly>|</includeonly>}}} |
</noinclude>
{{!}} '''Allies'''
{{!}} {{{Allies}}}
}}
|-
{{#if: {{{Enemies<includeonly>|</includeonly>}}} |
{{!}} '''Enemies'''
{{!}} {{{Enemies}}}
}}
|-
{{#if: {{{Location<includeonly>|</includeonly>}}} |
{{!}} '''Location'''
{{!}} {{{location}}}
}}
|-
|}<noinclude>{{-}}
{{documentation}}</noinclude>

Revisión del 23:09 4 abr 2017

Produces an 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