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

            Bug ID: 71114
           Summary: Update {{#translation}} parser function in the
                    Translate extension
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Translate
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
       Web browser: ---
   Mobile Platform: ---

Currently, this function is worked for currrent page only: 
called as {{#translation:}} and is returned "/code", if page is translation, or
empty string otherwise.

Proposed update for ability to using this function for specified target page,
as  {{#translation:pagename}} or {{#translation:namespace:pagename}}.

This will be useful for eliminate widely used templates
{{ifTranslation}}/{{ifNotTranslation}}, {{TNT}}/{{TNTN}} and {{Ll}}.

Taret result for my proposal: 

1) if current page is translation, and {{#translation:}} is returned "/code",
then {{#translation:pagename}} should be return "pagename/code" (if this page
is exist) or "pagename" otherwise;

2) if current page is _not_ a translation, and {{#translation:}} is returned
empty result, {{#translation:pagename}} should be return "pagename"

Note: maybe this should be separate magic word, as '#tlink' or '#tl' (or simple
create these short aliases for this function)?

-- 
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