Jump to content

Extension talk:Autoincrement

About this board

Site wide autoincrement?

2
76.27.83.31 (talkcontribs)

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...

Shadess (talkcontribs)

3 years later...but any way to do this?

Reply to "Site wide autoincrement?"

Not working inside templates

1
Cavila (talkcontribs)

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?

Reply to "Not working inside templates"

Autoincrement extension is not available for download

2
Pana~mediawikiwiki (talkcontribs)

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.

76.27.83.31 (talkcontribs)

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.

Reply to "Autoincrement extension is not available for download"

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"

AutoIncrement on MW 1.25.1

1
216.168.230.7 (talkcontribs)

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!

Reply to "AutoIncrement on MW 1.25.1"
There are no older topics