Is there a way to implement an autoincrement site wide? like store the {{AUTOINCREMENT}} hook in a template and call that template across multiple pages? like template:Autoincrement {{AUTOINCREMENT}} then you have page Cookies calls {{Template:Autoincrement}} which brings 1 then page Bananas calls {{Template:Autoincrement}} and gets 2, etc...
Extension talk:Autoincrement
I tried to use this in a template but I was wrong: multiple instances of such a template will print a series of 1, 1, 1, 1, etc., while use of the same syntax without a template will give you a series of 1, 2, 3, 4, etc. Is this intended behaviour? A bug? Or a limitation?
Hi, the Autoincrement extension does not seem to be available via the drop down menu of the Download MediaWiki extension page (http://www.mediawiki.org/wiki/Special:ExtensionDistributor/Autoincrement) as described under the Installation section of this page.
Would anybody know if there is another place where I can find the download for this extension please?
I've googled it extensively, but could not find anything.
Many thanks Pan
This post was posted by Pana~mediawikiwiki, but signed as Pana.
You can find the SVN checkout URL in the infobox to the right, if you make a folder and copy/paste into mediawiki/extensions/Autoincrement folder creating all the files are they are stated on the SVN it works fine.
Hi. Please give me more descriptions or examples of this extension.
This post was posted by Kghbln, but signed as Roc michael.
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".
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.
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.
Hello,
I recently upgraded from MediaWiki 1.17 to 1.25.1. I use the AutoIncrement extension. After upgrade, AutoIncrement loads (1.e. no errors and It's listed on the Version special page), but no longer functions. I confirmed we are on the latest version. Does anyone know if there are changes to MediaWiki hoooks or variables between 1.17 and 1.25 that would make this extension stop working?
Barring any solutions with this code, does anyone have a suggestion for alternative methods of achieving an Autoincrement-like behavior with other tags/functions?
Thanks!
There are no older topics