Please remember to make use of the DML Wiki Manual of Style and Code of Conduct during your stay.

 Actions

Template

Template:ProgressBar

From Dragon Mania Legends (DML) Wiki

Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this template's documentation. (About template documentation)

Syntax

  • {{ProgressBar|icon|text|size}}

Example(s)

  • Clan Experience Icon.png3 from: {{ProgressBar|Clan Experience|3|30|color=yellow|radius=5}}
  • Clan Experience Icon.png3 from: {{ProgressBar|Clan Experience|3|99|color=yellow|radius=10}}
  • Clan Experience Icon.png3 from: {{ProgressBar|Clan Experience|3|40|color=green}} (Clans, Clan XP)
  • Experience Icon.png740.02K/1.15M XP from: {{ProgressBar|Experience|740.02K/1.15M XP|50|color=blue|align=center}} (Player Profile)
  • Gems Icon.pngMy Gems! from: {{ProgressBar|Gems|My Gems!|70|color=purple}}
  • from: {{ProgressBar|color=red|3=80}} (Clan Siege, Siege Screen tower progress)
  • 1/3 from: {{ProgressBar||1/3|33|color=green|align=center}} (Achievements)
  • Something from: {{ProgressBar|2=Something}}
  • Scrolls Icon.pngZero from: {{ProgressBar|Scrolls|Zero|0}}
  • Flag Icon.png from: {{ProgressBar|3=50|right=Flag}}
  • Clan Trinkets Icon.png  Food Icon.png    Gold Icon.png    Clan Trinkets Gift Icon.png    Food Icon.png   Gold Icon.png from: {{ProgressBar|Clan Trinkets|{{sp}} {{i|Food}} {{sp}} {{sp}}{{i|Gold}} {{sp}} {{sp}}{{i|Clan Trinkets Gift}} {{sp}} {{sp}}{{i|Food}} {{sp}} {{i|Gold}}|30|color=yellow|width=200|tstyle=position:relative; top:-4px;|color=green}}
  • 11,100/2,000 from: {{ProgressBar||1,100/2,000|55|color=blue|align=center|left={{btn|sm|blue|1|cir}}}}
  • Fill for a bonus! from: {{ProgressBar||Fill for a bonus!|15|color=yellow|align=center|bg=#666}} (Dragon's Delight)

See Also

  • {{CountBar}}, a similar template used for displaying main interface counters.
  • {{Percentage}}, a similar template used for wiki template usage counters.
  • {{Timeline}}, a long interface timeline/progress bar indicator used for displaying milestones.

Creates game interface progress indicators in different styles, for use inline on pages to display and help explain various progress bars. Syntax: {{ProgressBar|icon|text|size}}

Template parameters

ParameterDescriptionTypeStatus
(icon name) 11

Gems

Stringoptional
(text) 22

Text to display on the progress indicator.

Stringoptional
(percentage number) 33

Enter a number including or between 0 to 100.

Default
100
Example
56
Numberoptional
(corner) radiusradius

If set to a number between 0-10, rounds the corners of the progress bar accordingly.

Default
2
Example
5
Numberoptional
(progress indicator) colorcolor

Enter valid CSS for the "background:" property.

Suggested values
red yellow green blue lt-blue purple gray
Default
green
Example
#fba604
Stringoptional
(Override, CSS property) alignalign

no description

Suggested values
center right
Default
left
Stringoptional
(Override) widthwidth

no description

Default
150
Example
200
Numberoptional
(Optional) tstyletstyle

To add additional text span styles, set valid CSS styles for this parameter.

Stringoptional
(icon) rightright

Enter the name of an icon to use at the right.

Stringoptional
(Override) leftleft

To override left content (e.g., a non-icon etc), enter a value here keeping in mind the content needs to be relative in size to template icons.

Stringoptional
(Override, color) bgbg

Enter a valid hex code (including the #) or color name to override the progress bar background color.

Example
#222222
Stringoptional


This Wiki is created by players for other players and is not maintained by, or affiliated with, the game maker (Gameloft).
Cookies help us deliver our services. By using our services, you agree to our use of cookies.