Template:Infobox/Property: Difference between revisions

From Inkipedia, the Splatoon wiki
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>|-
<includeonly>|-
|style="padding: 5px; background: {{#ifeq:{{{mode|}}}|full|rgba({{{color|192, 192, 192}}}, 0.3)|linear-gradient(to right, rgba({{{color|192, 192, 192}}}, 0.3) 0%, rgba({{{color|192, 192, 192}}}, 0) 100%)}}; border-width: 1px {{#ifeq:{{{mode|}}}|full|1px|0px}} 1px 5px; border-style: solid; border-color: rgba({{{color|192, 192, 192}}}, 0.5); border-radius: 5px {{#ifeq:{{{mode|}}}|full|5px 5px|0px 0px}} 5px; {{{style|}}}"|'''{{{label|}}}'''||{{{content}}}</includeonly><noinclude>
|style="padding: 5px; background: linear-gradient(to right, rgba({{{color|192, 192, 192}}}, 0.3) 0%, rgba({{{color|192, 192, 192}}}, 0) 100%); border-width: 1px 0px 1px 5px; border-style: solid; border-color: rgba({{{color|192, 192, 192}}}, 0.5); border-radius: 5px 0px 0px 5px; {{{style|}}}"|'''{{{label|}}}'''||{{{content}}}</includeonly><noinclude>
__NOTOC__
__NOTOC__
Produces a labeled property for an infobox. The markup produced represents a table row.
Produces a labeled property for an infobox. The markup produced represents a table row.

Revision as of 04:38, 17 January 2017


Produces a labeled property for an infobox. The markup produced represents a table row.

Usage

{{InfoboxLabel|mode=mode|color=color|style=style|label=label|content=content}}

Parameters

color - A comma-delimited RGB hex triplet to use as the base color for the label's border and background. The default is 192, 192, 192.

style - A CSS property list to apply to the label.

label - The text to display as the label.

content - The document markup for the contents of the infobox property.

Example

Markup

{{User:InfoboxProperty|color={{SiteColor|Splatoon}}|label=Label|content=Content}}

Output

User:GuyPerfect/InfoboxProperty