Toggle menu
209
928
189
6.4K
Dovedale Railway Wiki
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
a
Restored template contents.
 
Line 1: Line 1:
<!-- Ported over from the Star Citizen Wiki !-->
<includeonly>{{#invoke:Statsbar|statsbar}}</includeonly><noinclude>{{/doc}}
{{Documentation}}
<!-- Categories go in the /doc subpage -->
 
</noinclude>
{{t|Statsbar}} displays a list of stats in a horizontal scrollable bar.
 
== Usage ==
Please remove the parameters that are left blank.
 
<syntaxhighlight lang="wiki">
{{Statsbar
|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
 
== Example ==
<syntaxhighlight lang="wiki">
{{Statsbar
|label1 = Class 156
|data1 = 85
|desc1 = Maximum Speed
 
|label2 = Mercury
|data2 = 18,037
 
|label3 = C2 Hercules
|data3 = 12,894
}}
</syntaxhighlight>
 
gives
<syntaxhighlight lang="wiki">
 
{{Statsbar
|label1 = MPUV Cargo
|data1 = 18,211
|desc1 = Winner
 
|label2 = Mercury
|data2 = 18,037
 
|label3 = C2 Hercules
|data3 = 12,894
}}
</syntaxhighlight>
 
 
<includeonly>
<!-- Template catergories go here -->
[[Category:Graph, chart, and plot templates]]
</includeonly>

Latest revision as of 03:05, 25 June 2024

Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Statsbar/doc. Changes can be proposed in the talk page.

{{Statsbar}} displays a list of stats in a horizontal scrollable bar.

Usage

Please remove the parameters that are left blank.

{{Statsbar
|label1 = 
|data1 = 

|label2 = 
|data2 = 

|label3 = 
|data3 = 
}}

Parameter list

labeln
Label text for the stat
datan
Data/value for the stat
descn
Description text for the stat
id
ID used for HTML, mostly used in template

Example

{{Statsbar
|label1 = MPUV Cargo
|data1 = 18,211
|desc1 = Winner

|label2 = Mercury
|data2 = 18,037

|label3 = C2 Hercules
|data3 = 12,894
}}

gives

MPUV Cargo
18,211
Winner
Mercury
18,037
C2 Hercules
12,894


🍪 Yum Yum Yum! Cookies help us better deliver our services. By using our site, you agree to our use of cookies.