Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

North Forge:Broken by link: Difference between revisions

From North Forge
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
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
'''But that creates a specifically named page. How would I let the form take care of naming as per its <unique number> setting? Posted [https://www.mediawiki.org/wiki/Extension_talk:Page_Forms#allowing_an_edit_via_extension_lockdown here]. '''
* suggested change:
** https://nf.squirrelslair.ca/index.php?title=namespace=Broken&action=formedit&returnto=Broken&Broken%5Btool%5D=Test%20tool
* suggested next:
** https://nf.squirrelslair.ca/index.php?title=&action=formedit&returnto=Broken&Broken%5Btool%5D=Test%20tool&namespace=Broken
{{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
** {{#formlink:form=Broken|link text=test|returnto=Broken|query string=Broken[tool]=Test tool}} trying to pass tool name
* passing tool name
 
** {{#formlink:form=Broken|link text=test|returnto=Broken|query string=Broken[tool]=Test tool}}  
works for non-logged in users:
* to make it work for non-logged in users, it needs to be an action=formedit link instead:
* 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&query_string=Broken[tool]=Test_tool


=== Left to do ===
=== Left to do ===
*add tool name to link
*make new page have name as determined by form <unique number>

Latest revision as of 12:59, 2024 May 14

Create a link that will call Form:Broken to generate a page in the Broken: namespace with name of current date time.

Form use (ie presence of "edit with form" tab) is set in North Forge:Broken.

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:

But that creates a specifically named page. How would I let the form take care of naming as per its <unique number> setting? Posted here.


steps   

Left to do

  • make new page have name as determined by form <unique number>