https://bugzilla.wikimedia.org/show_bug.cgi?id=12853

Bawolff (Brian Wolff) <bawolff...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|PATCH_TO_REVIEW             |RESOLVED
         Resolution|---                         |FIXED

--- Comment #8 from Bawolff (Brian Wolff) <bawolff...@gmail.com> ---
(In reply to Technical 13 from comment #7)
> (In reply to Bawolff (Brian Wolff) from comment #5)
> > >&preload=Template:Foo^param=bar^one
> > 
> > I know pipes are a pain for wiki syntax, but if we're going to do this, I
> > would still prefer we used them instead of using other characters (What if
> > you want to use ^ in a parameter name, what if you have a template named
> > Foo^. Using |'s doesn't cause any more confusion, and its already a reserved
> > character). Users can always use %7C instead of {{!}} in urls.
> 
> Per [[gerrit:116482]] the syntax will be:
> action=edit&preload=Foo&preloadparams[]=first&preloadparams[]=second
> 
> Where "first" will be available as $1 and "second" will be available as $2
> in the preload template of "Foo" if my understanding is correct.  Does this
> address your issue/question Brian?

I'm fine with that syntax. I object to suddenly treating ^ as magic divider.

---

Anyways, patch merged. As has been stated above you can do things like
action=edit&preload=Foo&preloadparams[]=first&preloadparams[]=second and have
$1 replaced with first, $2 replaced with second, etc. $* will output all
parameters, plus a colon (Consider the $* a side effect, which would probably
not change, but we make no guarantees that it won't some far off day in the
future). It should probably be available on Wikipedia by April 17.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to