Difference between revisions of "Template:Colored infobox header/doc"

From blackwiki
Jump to navigation Jump to search
imported>Jay D. Easy
(it appears shortcuts may be deprecated by some—no problem)
imported>Jay D. Easy
Line 11: Line 11:
 
  |width_style        = person
 
  |width_style        = person
 
  |name              = Example
 
  |name              = Example
{{colored infobox header|color=#afeeee|First title}}
+
{{colored infobox header|color=#ffa07a|First title}}
 
  |branch_label      = Branch
 
  |branch_label      = Branch
 
  |branch            = Templates
 
  |branch            = Templates
Line 17: Line 17:
 
  |serviceyears_label = Service years
 
  |serviceyears_label = Service years
 
  |serviceyears      = 2001–2019
 
  |serviceyears      = 2001–2019
{{colored infobox header|color=#ffa07a|Third title}}
+
{{colored infobox header|color=#c3d6ef|Third title}}
 
  |battles_label      = Wars
 
  |battles_label      = Wars
 
  |battles            = [[Emu War]]
 
  |battles            = [[Emu War]]
 
}}
 
}}
 
<pre style=overflow:auto;>{{Infobox military person|name=Example
 
<pre style=overflow:auto;>{{Infobox military person|name=Example
{{colored infobox header|color=#afeeee|First title}}
+
{{colored infobox header|color=#ffa07a|First title}}
 
  |branch      = Template Department
 
  |branch      = Template Department
 
{{colored infobox header|color=#ffe4c4|Second title}}
 
{{colored infobox header|color=#ffe4c4|Second title}}
 
  |serviceyears = 2001–2019
 
  |serviceyears = 2001–2019
{{colored infobox header|color=#ffa07a|Third title}}
+
{{colored infobox header|color=#c3d6ef|Third title}}
 
  |battles      = [[Emu War]]
 
  |battles      = [[Emu War]]
 
}}</pre><!--
 
}}</pre><!--

Revision as of 00:34, 10 May 2019

Usage

A convenient way to insert a colored header at any location in an infobox.

{{colored infobox header|color = color hex code or name|Title}}

Example

Example
First title
BranchTemplates
Second title
Service years2001–2019
Third title
WarsEmu War
{{Infobox military person|name=Example
{{colored infobox header|color=#ffa07a|First title}}
 |branch       = Template Department
{{colored infobox header|color=#ffe4c4|Second title}}
 |serviceyears = 2001–2019
{{colored infobox header|color=#c3d6ef|Third title}}
 |battles      = [[Emu War]]
}}