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

 Actions

Template

Template:CounterItem/doc

From Dragon Mania Legends (DML) Wiki

< Template:CounterItem
Documentation subpage
View this documentation's related template:
Template:CounterItem

Examples

Example 1

{{CSSCounter|name=1|
{{CounterItem|1}}... This is my content. <br>
{{CounterItem|1}}... Some more content. <br>
}}

Result:

... This is my content.
... Some more content.

Example 2

{{CSSCounter|name=1|
{{notebox|'''{{CounterItem|1}}.''' Example}}
{{notebox|'''{{CounterItem|1}}.''' Example}}
}}

Result:

Important Icon.png
 
. Example
Important Icon.png
 
. Example

Example 3 (2 counters in text)

Using {{CounterItem|1}} counters {{CounterItem|1}} works {{CounterItem|1}} even if {{CounterItem|1}} they never {{CounterItem|1}} got a {{CounterItem|1}} reset. And the {{CounterItem|2}} same goes {{CounterItem|2}} for {{CounterItem|2}} Counter2.

Result:

Using counters works even if they never got a reset. And the same goes for Counter2.

See Also

Creates a generic, inline count when wrapped in {{template|CSSCounter}} and both have the same specified (counter) number (1 - 5). Usable in headers, tables, paragraph text, templates etc.

Template parameters

ParameterDescriptionTypeStatus
name (lowercase, no spaces or special characters)name 1

Specify a name (without spaces or special characters, dashes are fine) which is then used as both the counter-increment name, and the CSS class name.

Example
mycounter1
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.