Module:ChartColors/doc: Difference between revisions
From Kenshi Wiki
More actions
Created page with "{{documentation subpage}} Used by '''{{tl|ChartColors}}'''. To translate or review the translation of the module to your language, edit carefully Data:I18n/ChartColors.tab. ===Function ShowColors=== {| class="wikitable" |- ! Code !! Result |- | {{mlx|ChartColors|ShowColors|Categ20|5}} || {{#invoke:ChartColors|ShowColors|Categ20|5}} |- | {{tlx|ChartColors|Categ20|9}} || {{ChartColors|Categ20|9}} |- | {{mlx|ChartColors|ShowColors|Ca..." |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{ | {{doc sub}} | ||
Used by '''{{tl|ChartColors}}'''. | Used by '''{{tl|ChartColors}}'''. | ||
| Line 33: | Line 33: | ||
<includeonly>{{Sandbox other|| | <includeonly>{{Sandbox other|| | ||
[[Category:Modules]] | |||
[[Category:Modules for general use]] | [[Category:Modules for general use]] | ||
}}</includeonly> | }}</includeonly> | ||
<noinclude> | <noinclude> | ||
[[Category:Module | [[Category:Module documents]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 00:47, 11 March 2025
| This is a documentation subpage for Module:ChartColors. It may contain usage information, categories and other content that is not part of the original module page. |
Used by {{ChartColors}}.
To translate or review the translation of the module to your language, edit carefully Data:I18n/ChartColors.tab.
Function ShowColors
| Code | Result |
|---|---|
{{#invoke:ChartColors|ShowColors|Categ20|5}} |
|
{{ChartColors|Categ20|9}} |
|
{{#invoke:ChartColors|ShowColors|Categ20|3|-}} |
#1f77b4 #ff7f0e #2ca02c |
{{#invoke:ChartColors|ShowColors|Categ20|3|a}} |
#1f77b4ff #ff7f0eff #2ca02cff |
{{#invoke:ChartColors|ShowColors|Plotter|5}} |
|
{{#invoke:ChartColors|Plotter|20}} |
Function Legends
{{#invoke:ChartColors|Legends|Categ20|5|2}}
produces:
{{div col|colwidth=2}}
{{legend|#1f77b4|}}
{{legend|#ff7f0e|}}
{{legend|#2ca02c|}}
{{legend|#d62728|}}
{{legend|#9467bd|}}
{{div col end}}
{{#invoke:ChartColors|Legends|Categ20|3|1|One|Two|Three}}
produces:
{{div col|colwidth=1}}
{{legend|#1f77b4|One}}
{{legend|#ff7f0e|Two}}
{{legend|#2ca02c|Three}}
{{div col end}}