Topic on Extension talk:InputBox

Passing pagename as a category

2
Ziggurat146 (talkcontribs)

Firstly, sorry for the troubles as I'm new to mediawiki and can't find any beginner-friendly documentation that doesn't assume I can code in HTML/PHP, but hopefully this is an easy one.

I'm trying to use an InputBox to create a child page of the current page the InputBox is on, and for the life of me I cannot find a way to take the current PAGENAME and pass it to the created page to be it's Category. Can this be easily done, or am I destined to use a million and one templates for each of the possible categories? A crazy theory I had was to create a single page to be preloaded with the text 'Category:PAGENAME' (notated appropriately, of course), though I concluded it would likely grab the PAGENAME from the newly created page, which does me no good.

Thanks alot, I appreciate any help or guidance!

Ciencia Al Poder (talkcontribs)

In the preload page, you should put the category without variables nor PAGENAME. The category as-is.

This of course means you'll need to create one preload page for each page you put the inputbox in.

Reply to "Passing pagename as a category"