Toggle menu
15
236
75
27.7K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Article length bar/c/doc: Difference between revisions

Template page
Created page with "{{Documentation subpage}} {{tsh|Alb/c}} Config file for {{tl|Article length bar}} ==Usage== {{tlc|Article length bar/c|''token''}} ==Parameters== One required positional parameter: {{para|1}} – config token; required. Values: {{pval|T1}}, {{pval|T2}}, {{pval|TMAX}}, {{pval|L0MAX}}, {{pval|L1MAX}}, {{pval|FADE1}}, {{pval|FADE2}}. * {{pval|T1}} – green up to this byte length, then switch to yellow, indicating: "probably should split" * {{pval|T2}} – yellow until..."
 
(No difference)

Latest revision as of 02:42, 19 February 2025

Config file for {{Article length bar}}

Usage

{{Article length bar/c|token}}

Parameters

One required positional parameter: |1= – config token; required. Values: T1, T2, TMAX, L0MAX, L1MAX, FADE1, FADE2.

  • T1 – green up to this byte length, then switch to yellow, indicating: "probably should split"
  • T2 – yellow until this byte length, then red, indicating:"almost certainly" should be split
  • TMAX – articles this size fill the bar 100%; larger sizes do not extend past the right border
  • L0MAX – max size of the green area in pct; derived as: {{#expr: T1 * 100 / TMAX round 0}}
  • L1MAX – high point of the yellow area in pct; derived as: {{#expr: (T2 * 100 / TMAX) round 0}}
  • FADE1 – start point of red to maroon gradient when length > TMAX
  • FADE2 – end point of red to maroon gradient when length > TMAX, thereafter maroon to right border
  • Longest – size of longest article #1 at Special:LongPages not in use currently

Examples

  • {{Article length bar/c|T1}} ? 150000, {{Alb/c|T1}} ? 150000
  • {{Article length bar/c|T2}} ? 225000
  • {{Article length bar/c|TMAX}} ? 325000
  • {{Article length bar/c|L0MAX}} ? 46
  • {{Article length bar/c|L1MAX}} ? 69, {{Alb/c|L1MAX}} ? 69
  • {{Article length bar/c|FADE1}} ? 76
  • {{Article length bar/c|FADE2}} ? 93