Makes a horizontal stacked chart of up to 12 counts (plus a gray bar if the total is greater than the sum of the 12). If no total is supplied, defaults to 100 (for percentages). By default, uses nice rainbow of colors that don't correspond to reserved article class or importance colors, but colors can be customized.
Article counts may be automatically calculated with the {{PAGESINCATEGORY}} magic word, e.g. {{PAGESINCATEGORY:FA-Class Square Enix articles|R}}
A# variables: Amounts. Given as any plain number. No units permitted.
T# variables: Optional titles. If no title is wanted, leave completely blank. (A or similar is not helpful.)
C# variables: Optional colour values as any valid CSS colour. Defaults to a rainbow-type progression
Total Optional total amount. Given as any plain number. No units permitted. Defaults to 100.
height Optional height of the bar. Given as a CSS length (px recommended). Defaults to 10.
vertical_caption: If set to yes/true, have the labels use vertical text. If set to lean, tilts the text at an angle.
caption_height: If the captions are vertical, their height is limited to this. Given as a CSS length, e.g. 8em or 200px.
Makes a horizontal stacked chart of up to 12 counts (plus a gray bar if the total is greater than the sum of the 12). If no total is supplied, defaults to 100 (for percentages). By default, uses nice rainbow of colors that don't correspond to reserved article class or importance colors, but colors can be customized.
Article counts may be automatically calculated with the {{PAGESINCATEGORY}} magic word, e.g. {{PAGESINCATEGORY:FA-Class Square Enix articles|R}}
• A# variables: Amounts. Given as any plain number. No units permitted.
• T# variables: Optional titles. If no title is wanted, leave completely blank. (An or similar is not helpful.
• C# variables: Optional colour values as any valid CSS colour. Defaults to a rainbow-type progression
If set to yes/true, have the labels use vertical text.
ਬੂਲੀਅਨ (ਸੱਚ/ਝੂਠ ਕਿਸਮ)
optional
Caption height limit
caption_height
If the captions are vertical, their height is limited to this. Given as a CSS length.
ਮੂਲ ਰੂਪ
8em
String
optional
Bar height
height
Height of the bar as a CSS length (px recommended).
ਮੂਲ ਰੂਪ
Default is 10px; this is as thin as you would want to go.
String
optional
Total amount
Total
Total amount that the bars sum to. Should be a number with no units.
ਮੂਲ ਰੂਪ
Defaults to 100 so that percentages can be used as the amounts.
Number
optional
Text 1
T1
Label of this item
Line
suggested
Amount 1
A1
Amount of this item (plain number)
Number
required
Text 2
T2
Label of this item
Line
suggested
Amount 2
A2
Amount of this item (plain number)
Number
required
Text 3
T3
Label of this item
Line
suggested
Amount 3
A3
Amount of this item (plain number)
Number
suggested
Text 4
T4
Label of this item
Line
optional
Amount 4
A4
Amount of this item (plain number)
Number
optional
Text 5
T5
Label of this item
Line
optional
Amount 5
A5
Amount of this item (plain number)
Number
optional
Text 6
T6
Label of this item
Line
optional
Amount 6
A6
Amount of this item (plain number)
Number
optional
Text 7
T7
Label of this item
Line
optional
Amount 7
A7
Amount of this item (plain number)
Number
optional
Text 8
T8
Label of this item
Line
optional
Amount 8
A8
Amount of this item (plain number)
Number
optional
Text 9
T9
Label of this item
Line
optional
Amount 9
A9
Amount of this item (plain number)
Number
optional
Text 10
T10
Label of this item
Line
optional
Amount 10
A10
Amount of this item (plain number)
Number
optional
Text 11
T11
Label of this item
Line
optional
Amount 11
A11
Amount of this item (plain number)
Number
optional
Text 12
T12
Label of this item
Line
optional
Amount 12
A12
Amount of this item (plain number)
Number
optional
Colour 1
C1
CSS colour of this item
String
optional
Colour 2
C2
CSS colour of this item
String
optional
Colour 3
C3
CSS colour of this item
String
optional
Colour 4
C4
CSS colour of this item
String
optional
Colour 5
C5
CSS colour of this item
String
optional
Colour 6
C6
CSS colour of this item
String
optional
Colour 7
C7
CSS colour of this item
String
optional
Colour 8
C8
CSS colour of this item
String
optional
Colour 9
C9
CSS colour of this item
String
optional
Colour 10
C10
CSS colour of this item
String
optional
Colour 11
C11
CSS colour of this item
String
optional
Colour 12
C12
CSS colour of this item
String
optional
Examples
Video game good articles by arbitrary category
{{Stacked bar|A1=833|T1=Video games |A2=33|T2=Series |A3=94|T3=Characters |A4=99|T4=Development |A5=71|T5=Music |A6=29|T6=Media |A7=36|T7=Etc|C7=Black |Total=1195}}
Note that if the width of the bar section is narrower than the width of the lables, then the labels push each other out of the way, harming readability. The final section has also been given a specified color, while the rest are left at defaults.
Video games
Series
Characters
Development
Music
Media
Etc
Video game good articles with vertical text
This is slightly harder to read, but will allow all but the narrowest categories to line up properly.
{{Stacked bar|vertical_caption=yes|A1=833|T1=Video games |A2=33|T2=Series |A3=94|T3=Characters |A4=99|T4=Development |A5=71|T5=Music |A6=29|T6=Media |A7=36|T7=Etc|C7=Black |Total=1195}}
Video games
Series
Characters
Development
Music
Media
Etc
Number of video game articles in the 70s and earlier by year with a higher total than the sum
Note that some labels are abbreviated to avoid displacement. Note also the gray area at the end, as the sum of the categories is less than the "Total" number.