North Forge:Broken by link: Difference between revisions

Ttenbergen (talk | contribs)
No edit summary
Ttenbergen (talk | contribs)
No edit summary
Line 5: Line 5:
The creation of the random page name in the Broken namespace is defined within [[Form:Broken]]'s info tag.  
The creation of the random page name in the Broken namespace is defined within [[Form:Broken]]'s info tag.  


Opening form with pre-filled field:
* https://nf.squirrelslair.ca/index.php?title=Broken:111&action=formedit&returnto=Broken&Broken%5Btool%5D=Test%20tool
{{Collapsable|always= steps|full=
* Using form link  
* Using form link  
** {{#formlink:form=Broken|link text=test|returnto=Broken}} - this doesn't work for non-logged-in users
** {{#formlink:form=Broken|link text=test|returnto=Broken}} - this doesn't work for non-logged-in users
* passing tool name
* passing tool name
** {{#formlink:form=Broken|link text=test|returnto=Broken|query string=Broken[tool]=Test tool}}  
** {{#formlink:form=Broken|link text=test|returnto=Broken|query string=Broken[tool]=Test tool}}  
 
* to make it work for non-logged in users, it needs to be an action=formedit link instead:
works for non-logged in users:
** https://nf.squirrelslair.ca/index.php?title=Broken:111&action=formedit&returnto=Broken
* https://nf.squirrelslair.ca/index.php?title=Broken:111&action=formedit&returnto=Broken
}}
 
trying to pre-fill field:  
* https://nf.squirrelslair.ca/index.php?title=Broken:111&action=formedit&returnto=Broken&Broken%5Btool%5D=Test%20tool


=== Left to do ===
=== Left to do ===
*add tool name to link
*add tool name to link