ProposedPluginArch: plugin_BackReference.py

from os.path import join
  
def plugin_init():
    return ['openedWikiWord',openedWikiWord_BackReference]

def openedWikiWord_BackReference(wikidPad, wikiWord):
    #clean the page code - and insert the harvested todos after placemark = '++ auto-harvested todos:'
    editor = wikidPad.getActiveEditor()
    st = editor.FindText(0, editor.GetLength(), "Back-References:", 0)
    editor.SetSelection(st, editor.GetLength())
    editor.ReplaceSelection("\n")

    editor.AddText("Back-References:\n")
    parents = wikidPad.wikiData.getParentRelationships(wikiWord)
    i = 0
    outText = ""
    while i < len(parents):
        outText += "[%s]," % parents[i]
        i = i + 1
    editor.AddText(outText[:-1])