Hi,
I've posted a question on StackOverflow on this topic
(
http://stackoverflow.com/questions/28677871/how-do-i-add-specialprefixindex…)
and I think I may be able to answer the question myself, if someone
would tell me what the full page name variable is in JavaScript and how
to insert a JavaScript variable like this into strings like
'http://127.0.0.1/mediawiki/index.php/Special:PrefixIndex/'
I have done some research into JavaScript, which is what inspired me to
ask this question because I knew that quotation marks "" substitute
variable names with their variable value leaving the rest of what is in
them as a string, whereas apostrophes like ' ' render everything inside
them as a string. So I initially tried to define the page name variable
using:
|var page= mw.config.get( 'wgPageName' );|
then I defined the URL string
|'http://127.0.0.1/mediawiki/index.php/Special:PrefixIndex/'"page"| then
I thought I must have screwed up with my quotation marks vs. apostrophes
and their roles in JS so I switched the apostrophes for quotation marks
and vice versa, but this didn't solve my problem.
Thanks for your time,
Brenton