Template:Counter/doc

From RuneRealm Wiki

This is the current revision of this page, as edited by Alex (talk | contribs) at 00:22, 17 October 2024 (Created page with "{{Documentation}} This template serves one function, which is to keep track of a counter on the page. Keep in mind that using ordered lists (starting a line of text with a <code>#</code>) is likely preferable over using this template in many situations. The template takes an optional first parameter that specifies the (''case-sensitive'') counter name. This allows multiple parallel counters to be used on a single page. The default counter name is <code>0</code>. The t..."). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This is a documentation subpage for Template:Counter.
It contains usage information, categories, and other content that is not part of the original template page.

This template serves one function, which is to keep track of a counter on the page. Keep in mind that using ordered lists (starting a line of text with a #) is likely preferable over using this template in many situations.

The template takes an optional first parameter that specifies the (case-sensitive) counter name. This allows multiple parallel counters to be used on a single page. The default counter name is 0.

The template also takes a reset parameter which, when set to anything but no, will reset the counter. If this parameter is omitted this does not happen.

Example

<poem>
{{Counter}} {{Counter}} {{Counter}},
it's easy as {{Counter|reset=yes}} {{Counter}} {{Counter}},
as simple as {{Counter|foo}} {{Counter|foo}} {{Counter|foo}}.
That's how easy counters can be.
Limitless (even more than {{Counter}}{{Counter|foo}}{{Counter|Foo}}) possibilities!
</poem>

1 2 3,
it's easy as 1 2 3,
as simple as 1 2 3.
That's how easy counters can be.
Limitless (even more than 141) possibilities!