Template:Infobox/Property: Difference between revisions

From Inkipedia, the Splatoon wiki
(attempt to add spacing on skin that defaults to none)
m (moved category into noinclude)
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>|- {{#if:{{{2|}}}||style="display: none;"}}
<includeonly>{{#invoke:InfoboxProperty|main}}</includeonly><noinclude>
|style="border-collapse: initial; border-spacing: .2em; padding: 5px; background: linear-gradient(to right, rgba({{#if:{{{color|}}}|{{{color}}}|{{SiteColor|Generic}}}}, 0.3) 0%, rgba({{{color|{{SiteColor|Generic}}}}}, 0) 100%); border-width: 1px 0px 1px 5px; border-style: solid; border-color: rgba({{#if:{{{color|}}}|{{{color}}}|{{SiteColor|Generic}}}}, 0.5); border-radius: 5px 0px 0px 5px;"|'''{{{1|}}}'''
Template invocation of [[Module:InfoboxProperty]].
|style="border-collapse: initial; border-spacing: .2em;{{{style|}}}"|{{{2|}}}</includeonly><noinclude>__NOTOC__
Produces a labeled property for an infobox. The markup produced represents a two-column table row.


=== Parameters ===
{{:Module:InfoboxProperty/doc}}
{|
[[Category:Infobox templates]]
|- style="vertical-align: top;"
|<code>name</code>||Unnamed.||The contents of the property's name cell.
|- style="vertical-align: top;"
|<code>value</code>||Unnamed.||The contents of the property's value cell.
|- 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 property's value cell.
|}
 
=== Example ===
 
==== Markup ====
<nowiki>{{InfoboxProperty|color={{SiteColor|Splatoon}}|Name|Value}}</nowiki>
 
==== Output ====
{|
{{InfoboxProperty|color=|Name|Value}}
|}
</noinclude>
</noinclude>

Latest revision as of 12:45, 28 June 2024

Template invocation of Module:InfoboxProperty.


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

Parameters

name Unnamed. The contents of the property's name cell.
value Unnamed. The contents of the property's value cell.
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 property's value cell.

Example

Markup

{{Infobox/Property|color={{SiteColor|Splatoon}}|Name|Value}}
{{Infobox/Property|color=something else|Name 2|Value 2}}
{{Infobox/Property|Name 3|Value 3}}

Output

Name Value
Name 2 Value 2
Name 3 Value 3