« Modèle:InfoboxTitle » : différence entre les versions

De Inkipédia
(Page créée avec « <includeonly><div style="padding: 10px; background: rgba({{#if:{{{color|}}}|{{{color}}}|{{SiteColor|Generic}}}}, 0.3); border-width: 1px 5px 1px 5px; border-style: solid; border-color: rgba({{#if:{{{color|}}}|{{{color}}}|{{SiteColor|Generic}}}}, 0.5); border-radius: 5px 5px 5px 5px; text-align: center; font-size: 20px; {{{style|}}}">'''{{{1|}}}'''</div></includeonly><noinclude>__NOTOC__ Produces a title header for an infobox. === Parameters === {| |- style="vert... »)
Balises : Modification par mobile Modification par le web mobile
 
m (1 version importée)
 
(Une version intermédiaire par un autre utilisateur non affichée)
Ligne 1 : Ligne 1 :
<includeonly><div style="padding: 10px; background: rgba({{#if:{{{color|}}}|{{{color}}}|{{SiteColor|Generic}}}}, 0.3); border-width: 1px 5px 1px 5px; border-style: solid; border-color: rgba({{#if:{{{color|}}}|{{{color}}}|{{SiteColor|Generic}}}}, 0.5); border-radius: 5px 5px 5px 5px; text-align: center; font-size: 20px; {{{style|}}}">'''{{{1|}}}'''</div></includeonly><noinclude>__NOTOC__
<includeonly>{{#invoke:InfoboxTitle|main}}</includeonly><noinclude>
Produces a title header for an infobox.
Template invocation of [[Module:InfoboxTitle]].


=== Parameters ===
{{:Module:InfoboxTitle/doc}}
{|
|- style="vertical-align: top;"
|<code>text</code>||Unnamed.||The infobox's title text.
|- style="vertical-align: top;"
|<code>color</code>||Optional.||An RGB triplet to use as the base color for formatting. The default color is {{SiteColor|Generic}}, defined in [[Template:SiteColor|SiteColor]] as "Generic".
|- style="vertical-align: top;"
|<code>style</code>||Optional.||A CSS property list to apply to the container.
|}
 
=== Example ===
 
==== Markup ====
<nowiki>{{InfoboxTitle|color={{SiteColor|Splatoon}}|Title Text}}</nowiki>
 
==== Output ====
{{InfoboxTitle|color={{SiteColor|Splatoon}}|Title Text}}
</noinclude>
</noinclude>

Dernière version du 13 décembre 2023 à 20:18

Template invocation of Module:InfoboxTitle.


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. The default color is 0, 153, 255, defined in SiteColor as "Generic".
style Optional. A CSS property list to apply to the container.

Example

Markup

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

Output

Title Text