Topic on Extension talk:Autoincrement

more descriptions or examples

4
Kghbln (talkcontribs)

Hi. Please give me more descriptions or examples of this extension.

This post was posted by Kghbln, but signed as Roc michael.

Kghbln (talkcontribs)

It adds a variable {{AUTOINCRMENT}} that increases by 1 automatically each time it's used on a page. For example, "{{AUTOINCREMENT}} {{AUTOINCREMENT}} {{AUTOINCREMENT}} {{AUTOINCREMENT}} {{AUTOINCREMENT}}" would produce "0 1 2 3 4".

This post was posted by Kghbln, but signed as Skizzerz.

Kghbln (talkcontribs)

It's a really a good idea for using this extension in documents. But in general use, I think it's practical to make this extension start with "1" instead of "0" or users have to use this extension like the following way:

{{#expr:{{AUTOINCREMENT}}+1}},{{#expr:{{AUTOINCREMENT}}+1}},{{#expr:{{AUTOINCREMENT}}+1}},.......

This post was posted by Kghbln, but signed as Roc michael.

Kghbln (talkcontribs)

You could just do to prime the pump.

{{#if:{{AUTOINCREMENT}}}} {{AUTOINCREMENT}} {{AUTOINCREMENT}} {{AUTOINCREMENT}} {{AUTOINCREMENT}} {{AUTOINCREMENT}}

would display as: "1 2 3 4 5"

This post was posted by Kghbln, but signed as BlindWanderer.

Reply to "more descriptions or examples"