Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:StatsBar: Difference between revisions

Template page
mNo edit summary
No edit summary
Line 1: Line 1:
{{t|Statsbar}} displays a list of stats in a horizontal scrollable bar.
<div class="statsbar">
 
  {{#if: {{{label1|}}} | <div class="stat"><strong>{{{label1}}}:</strong> {{{data1}}}</div> }}
== Usage ==
  {{#if: {{{label2|}}} | <div class="stat"><strong>{{{label2}}}:</strong> {{{data2}}}</div> }}
Please remove the parameters that are left blank.
  {{#if: {{{label3|}}} | <div class="stat"><strong>{{{label3}}}:</strong> {{{data3}}}</div> }}
 
  {{#if: {{{label4|}}} | <div class="stat"><strong>{{{label4}}}:</strong> {{{data4}}}</div> }}
<syntaxhighlight lang="wiki">
  {{#if: {{{label5|}}} | <div class="stat"><strong>{{{label5}}}:</strong> {{{data5}}}</div> }}
{{Statsbar
</div>
|label1 =
|data1 =
 
|label2 =
|data2 =
 
|label3 =  
|data3 =
}}
</syntaxhighlight>
 
 
 
== Parameter list ==
;<code>label<sub>n</sub></code>
:Label text for the stat
 
;<code>data<sub>n</sub></code>
:Data/value for the stat
 
;<code>desc<sub>n</sub></code>
:Description text for the stat
 
;<code>id</code>
:ID used for HTML, mostly used in template

Revision as of 22:50, 14 February 2025



Cookies help us deliver our services. By using our services, you agree to our use of cookies.