Module:EveryCRTLinks: Difference between revisions

Created page with "-- Module:EveryCRTLinks local p = {} function p.addDocumentLink(frame) local crt = mw.title.getCurrentTitle().text -- You can tweak this target naming scheme local target = crt .. " - document" local url = mw.uri.fullUrl( "Special:FormEdit", { form = "Document", target = target, crt = crt } ) return string.format("[%s %s]", tostring(url), "Add a document for this CRT") end return p"
 
No edit summary
 
Line 13: Line 13:
       form = "Document",
       form = "Document",
       target = target,
       target = target,
       crt = crt
 
       -- PageForms prefill syntax:
      ["Document[crt_model]"] = crt
     }
     }
   )
   )
MediaWiki Appliance - Powered by TurnKey Linux