Extension talk:Autoincrement
From MediaWiki.org
Hi. Please give me more descriptions or examples of this extension.--Roc michael 14:24, 29 December 2007 (UTC)
- 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". --Skizzerz talk 16:27, 29 December 2007 (UTC)
- 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}},.......
--Roc michael 13:01, 31 December 2007 (UTC)
- You could just do to prime the pump. {{#if:{{AUTOINCREMENT}}}} {{AUTOINCREMENT}} {{AUTOINCREMENT}} {{AUTOINCREMENT}} {{AUTOINCREMENT}} {{AUTOINCREMENT}} would display as: "1 2 3 4 5"
- -- BlindWanderer 11:07, 14 May 2009 (UTC)