Hi
I use the variable {{PAGESINCATEGORY:category_name}}, but would prefer to display the total of the number of pages in a category + 1. That is, if the total number of pages is 6, I'd like 7 to be displayed. Does anyone know a way to do this?
Best
Derrick
With parser functions[1] installed you can use something like that:
{{#expr: {{PAGESINCATEGORY:category_name}} + 1}}
Greets, Wuzur
[1] http://www.mediawiki.org/wiki/Extension:ParserFunctions
On Tue, Mar 31, 2009 at 11:33 AM, Derrick Farnell derrick.farnell@gmail.com wrote:
Hi
I use the variable {{PAGESINCATEGORY:category_name}}, but would prefer to display the total of the number of pages in a category + 1. That is, if the total number of pages is 6, I'd like 7 to be displayed. Does anyone know a way to do this?
Best
Derrick _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
That's great - thanks very much!
On Tue, Mar 31, 2009 at 11:03 AM, Michael Rosenthal < rosenthal3000@googlemail.com> wrote:
With parser functions[1] installed you can use something like that:
{{#expr: {{PAGESINCATEGORY:category_name}} + 1}}
Greets, Wuzur
[1] http://www.mediawiki.org/wiki/Extension:ParserFunctions
On Tue, Mar 31, 2009 at 11:33 AM, Derrick Farnell derrick.farnell@gmail.com wrote:
Hi
I use the variable {{PAGESINCATEGORY:category_name}}, but would prefer to display the total of the number of pages in a category + 1. That is, if
the
total number of pages is 6, I'd like 7 to be displayed. Does anyone know
a
way to do this?
Best
Derrick _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org