Template:Infobox/Property: Difference between revisions

From Inkipedia, the Splatoon wiki
mNo edit summary
m (moved category into noinclude)
 
(14 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly>|- {{#if:{{{content|}}}||style="display: none;"}}
<includeonly>{{#invoke:InfoboxProperty|main}}</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>
Template invocation of [[Module:InfoboxProperty]].
__NOTOC__
Produces a labeled property for an infobox. The markup produced represents a table row.


=== Usage ===
{{:Module:InfoboxProperty/doc}}
<nowiki>{{</nowiki>InfoboxLabel
[[Category:Infobox templates]]
  |''mode''=
  |''color''=
  |''style''=
  |''label''=
  |''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 ====
<nowiki>{{User:InfoboxProperty|color={{SiteColor|Splatoon}}|label=Label|content=Content}}</nowiki>
 
==== Output ====
{|
{{User:GuyPerfect/InfoboxProperty|color={{User:GuyPerfect/SiteColor|Splatoon}}|label=Label|content=Content}}
|}
</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