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

       Web browser: ---
             Bug #: 29926
           Summary: request a delink or debracket magic word
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Templates
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified


Problem:
In template tags, parameter values sometimes are linked and sometimes are not.
Inserting those values into double brackets (in template code) may conduce to
four-bracketed links. In the other hand, not inserting them into brackets may
conduce to 0-bracketed not-linked titles.

Proposal:
Add a new "delink" function that eliminates internal-linking double brackets.
* {{delink:[[Title]]}} &arr; Title
* {{delink:Title}} &arr; Title
* {{delink:[external link]}} &arr; [external link]

And possibly a "link" counterpart.
* {{link: [[foo]] }} &arr; [[foo]]
* {{link: foo }} &arr; [[foo]]
* {{link: [external] }} &arr; [external]

It should also be very useful for parameter comparison:
{{#ifeq: {{delink: {{{1}}} }} |my title|yes|no}}

An alternative (or additional) option to help bypass the problem could be to
introduce a overall wikitext conversion of four brackets into two, wherever it
occurs:
* [[[[ &arr; [[
* ]]]] &arr; ]]

comments? Gustavo

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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