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

Erik Bernhardson <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #7 from Erik Bernhardson <[email protected]> ---
as this is intended for messages, my intended use case was more like:

   {{#link:$1|$2}}

and

    $msg->params( $title->getLinkUrl( 'action=edit' ), 'edit' );

As suggested this becomes

    {{#link:$1|returnto=$2|$3}}

Which just moves some of the logic from the php into the message template.  I
don't think its desirable for the programmer or the translator to move this
logic into the message. Alternatively the programmer will use the first example
but stick 'Main_page|action=edit' into $1 which is equally undesirable. It is
quite likely the caller has a Title object and know how to use it.

-- 
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to