Template:InfoboxTitle: Difference between revisions

From Inkipedia, the Splatoon wiki
m (Decreasing margin)
(making into module invocation)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 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>{{#invoke:InfoboxTitle|main}}</includeonly><noinclude>
__NOTOC__
Template invocation of [[Module:InfoboxTitle]].
Produces a title header for an infobox.


=== Usage ===
{{:Module:InfoboxTitle/doc}}
Syntax
<nowiki>{{</nowiki>InfoboxTitle
  |''color''=
  |''text''=
}}
 
==== Parameters ====
:''color'' - An RGB triplet to use as the base color for formatting.
:''text'' - The infobox's title text.
 
=== Example ===
 
==== Markup ====
<nowiki>{{InfoboxTitle|color={{SiteColor|Splatoon}}|text=Title Text}}</nowiki>
 
==== Output ====
{{User:GuyPerfect/InfoboxTitle|color={{User:GuyPerfect/SiteColor|Splatoon}}|text=Title Text}}
</noinclude>
</noinclude>

Latest revision as of 20:27, 12 September 2023

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