Template:CounterItem/doc
From Dragon Mania Legends (DML) Wiki
< Template:CounterItemDocumentation 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.
... Some more content.
Example 2
{{CSSCounter|name=1| {{notebox|'''{{CounterItem|1}}.''' Example}} {{notebox|'''{{CounterItem|1}}.''' Example}} }}
Result:
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
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.
| String | optional |