Toggle menu
15
236
70
27.5K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 02:16, 19 February 2025 by Prd (talk | contribs) (Created page with "<includeonly> {{#ifexpr:{{#expr:{{{style|1}}} / 2 round 0 }}*2={{{style|1}}}|<!------------------ --- --- --- if style even, horizontal chart --- ---------------------------------------------> {{!}} {{{!}} cellpadding="0" cellspacing="0" {{!}}- {{!}} {{#ifexpr:{{{8|0}}}>0| {{Data bars/bar|title={{#if:{{{detailed|}}}||{{{8|0}}}}}|width={{#expr:{{{scale|1}}}*{{{8|0}}}}}|color={{{color8|#ddd}}}|name=<!---- ---------->{{#if:{{{de...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


This sub-template handles one "column" of data (zero and positive numbers only) to produce a bar for display inside a barchart table.

No more than eight numbers are accepted as unnamed parameters
Colors are named color1, color2, color3, and so on, up to eight colors.
A style number may be specified. If even, the bar is horizontal.
A scale number may be specified. If so, the bar size in pixels becomes scale times data.

The template call must be enclosed within a table.

Examples:
Default style = 1, scale = 1
{| <!------ begin table ------>

{{Data bars/column
|16|color1=red
|32|color2=yellow
|64|color3=green
|48|color4=blue
}}

|} <!------ end table ------>
160
Specified style = 2, scale = 0.001
{| <!------ begin table ------>

{{Data bars/column
|style = 2
|scale = 0.001
|16000|color1=red
|32000|color2=yellow
|64000|color3=green
|48000|color4=blue
}} 

|} <!------ end table ------>
160000