Probando tema nuevo
{{#formlink:form=Quote|link text=Add a quote for this author|link type=button|query string=Quote[Author]=S7lqovf9khut7osi}}
i'm amateur user, learning how use mediawiki!! this is my e-mail contact
25 June 2015 04:30 UTC
Hi! i can't make it work "query string" in parser function "#formlink"
i have this:
in a page i have
{{#formlink:form=Quote|link text=Add a quote for this author|link type=button|query string=Quote[Author]={{PAGENAME}} }}
{{{info|page name=<Quote[Author]>_<unique number;start=1>}}} {{{for template|Quote}}} {| class="formtable" ! Date | {{{field|Fecha|input type=date}}} |- ! Author: | {{{field|Author}}} |- ! Menu: | {{{field|Menu|input type=textarea with autocomplete}}} |} {{{end template}}}
{|class="wikitable" |Date |{{{date|}}} |- |Author |{{{Author|}}} |- |Menu |{{{Menu|}}} |}
Please help me!
i.e. let's say that i have a page called "main", in that page i have the button "Add a quote for this author" and when i push the button, it send me to the form "Quote" whit the field "Author" filled whit the page name of the page "main" and this form will create a page called "main 1" as an example. And the next time that i push the button that will create a new page called "main 2"
that's what i want
I hope you can help me!! please!!
I think, that i need rise the question another time...
i'll try to explain me, i have this code:
1.
{{#formlink:form=Quote|link text=Add a quote for this author|link type=button|query string=Quote[Author]={{PAGENAME}} }}
but it does not work, the "query string" does not send any information to the form, i don't know why.
in the same page i have this code below
2.
{{#autoedit:form=Quote|link type=button|link text=Modify Author|query string=Quote[Author]=Mark|target={{FULLPAGENAME}}|summary=Modify author }}
whit this code the "query string" works and sends the information,
i want to know what i've done wrong in the first case. why does not work "query string" in the first code?.
thanks man!
yes, the URL yes, looks like this after i click the button #formlink:
/atcaresdemo/index.php/Especial:FormEdit/Quote?Quote%5BAuthor%5D=Pruebas%2FQuery+String
The URL contains the words "Quote" and "Author"
the name of my wiki is : atcaresdemo
the the "pagename" is: Pruebas
The form name is: Quote
The template name is: Quote
The variable is: Author
The "Author" field appears as blank. No data
this is the link where i've the example.
maybe, i'm not pretty sure, my old programer modified some extensions, i´m going to take a look at the SF code. The strange is that the "query string" works for "#autoedit" but does not work for "#formlink" or "forminput"... anyway i'm pretty greatful by your help. if the SF code it's fine, have you any idea that what's happening?
Probando tema nuevo
{{#formlink:form=Quote|link text=Add a quote for this author|link type=button|query string=Quote[Author]=S7lqovf9khut7osi}}