Diferencia entre revisiones de «Plantilla:InfoboxTitle»

De Inkipedia
m (Decreasing margin)
(Reworking everything)
Línea 1: Línea 1:
<includeonly><div style="padding: 10px; background: rgba({{{color|192, 192, 192}}}, 0.3); border-width: 1px 5px 1px 5px; border-style: solid; border-color: rgba({{{color|192, 192, 192}}}, 0.5); border-radius: 5px 5px 5px 5px; text-align: center; font-size: 20px;">'''{{{text}}}'''</div></includeonly><noinclude>
<includeonly><div style="padding: 10px; background: rgba({{{color|192, 192, 192}}}, 0.3); border-width: 1px 5px 1px 5px; border-style: solid; border-color: rgba({{{color|192, 192, 192}}}, 0.5); border-radius: 5px 5px 5px 5px; text-align: center; font-size: 20px; {{{style|}}}">'''{{{1|}}}'''</div></includeonly><noinclude>
__NOTOC__
__NOTOC__
Produces a title header for an infobox.
Produces a title header for an infobox.


=== Usage ===
=== Parameters ===
Syntax
{|
<nowiki>{{</nowiki>InfoboxTitle
|- style="vertical-align: top;"
  |''color''=
|<code>text</code>||Unnamed.||The infobox's title text.
  |''text''=
|- style="vertical-align: top;"
}}
|<code>color</code>||Optional.||An RGB triplet to use as the base color for formatting.
 
|- style="vertical-align: top;"
==== Parameters ====
|<code>style</code>||Optional.||A CSS property list to apply to the container.
:''color'' - An RGB triplet to use as the base color for formatting.
|}
:''text'' - The infobox's title text.


=== Example ===
=== Example ===


==== Markup ====
==== Markup ====
  <nowiki>{{InfoboxTitle|color={{SiteColor|Splatoon}}|text=Title Text}}</nowiki>
  <nowiki>{{InfoboxTitle|color={{SiteColor|Splatoon}}|Title Text}}</nowiki>


==== Output ====
==== Output ====
{{User:GuyPerfect/InfoboxTitle|color={{User:GuyPerfect/SiteColor|Splatoon}}|text=Title Text}}
{{User:GuyPerfect/InfoboxTitle|color={{User:GuyPerfect/SiteColor|Splatoon}}|Title Text}}
</noinclude>
</noinclude>

Revisión del 07:00 18 ene 2017


Produces a title header for an infobox.

Parameters

text Unnamed. The infobox's title text.
color Optional. An RGB triplet to use as the base color for formatting.
style Optional. A CSS property list to apply to the container.

Example

Markup

{{InfoboxTitle|color={{SiteColor|Splatoon}}|Title Text}}

Output

Usuario:GuyPerfect/InfoboxTitle