Toggle menu
15
236
73
27.6K
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:29, 19 February 2025 by Prd (talk | contribs) (Created page with "{{Documentation subpage}} <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> == Usage == <syntaxhighlight lang="wikitext"> {{Percentile | <number> | width | height | text-size | text-colour | as-of | progress-done-colour | progress-tbd-colour }} </syntaxhighlight> {| class="wikitable" ! Parameter ! Description ! Default ! Notes |- | | The percentage done you want to display (between 0 and 100). | ''<none>'' | '''REQUIRED''' |- | <code styl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

{{Percentile
| <number>
| width
| height
| text-size
| text-colour
| as-of
| progress-done-colour
| progress-tbd-colour
}}
Parameter Description Default Notes
The percentage done you want to display (between 0 and 100). <none> REQUIRED
width The width of the progress bar, in pixels. 200
height The height of the progress bar, in pixels. 5
text-size If set to a non-zero value, it causes the value of the progress to be displayed over the progress bar. The font size of the text is the value of text-size. 0
text-colour The font colour of the text is the value of text-colour. #000000
as-of If set, it causes a line of text to be displayed after the progress bar. The text is "(As of <as-of>)". <none>
progress-done-colour The colour of the "done" part of the progress bar. #7fff00
progress-tbd-colour The colour of the "to be done" part of the progress bar. #ff7f50

Examples

{{percentile|75}}

{{percentile|33|width=500|height=20|text-size=10|text-colour=white|progress-done-colour=steelblue|progress-tbd-colour=indianred}}

33%

{{percentile|0}}

{{percentile|100}}