Board Thread:Support Requests - Getting Technical/@comment-4347751-20160102202559/@comment-24155515-20160103004508

I don't know how to do it in pywikipedia, but replacing with  changes the editor text where pagename was with the actual pagename (minus any namespaces because that's how the pagename variable works (getting the namespace requires  )). PAGENAME isn't a template but it can be substituted like a template would.

For instance:

Here is a sentence with not substituted: This reply's page title (minus the namespace) is. (In the page editor, this sentence reads as: This reply's page title (minus the namespace) is .)

Here is a sentence with not substituted (i.e.  ): This reply's page title (minus the namespace) is Support Requests - Getting Technical/@comment-Original Authority-20160102202559/@comment-Citrusellaeditswikis-20160103004508. (In the page editor, this sentence reads as: This reply's page title (minus the namespace) is Support Requests - Getting Technical/@comment-Original Authority-20160102202559/@comment-Citrusellaeditswikis-20160103004508.)

TL;DR: Looking around (and I may be wrong since I have no Pywikipedia experience), you should be able to use pywikibot's replacement script to replace with , which will remove  from the text and replace it with the actual page name instead of the variable.

Unless I'm misreading you and you're talking about doing something else entirely.