Modify

Opened 9 years ago

Closed 6 years ago

Last modified 5 years ago

#12379 closed enhancement (wontfix)

make adding new items for tag2link more straightforward

Reported by: Polyglot Owned by: Don-vip
Priority: normal Milestone:
Component: Core tag2link Version:
Keywords: Cc: Klumbumbus, stoecker

Description (last modified by Don-vip)

For styles and presets we can change a page on the wiki to expand them.

Could this be done for Tag2Link as well?

Here are a few suggestions:

    <src name="Search">
            <rule>
                <condition k="name(:..)?" />
                <link name="Search on DuckDuckGo" href="https://duckduckgo.com/?q=%v%" />
            </rule>
            <rule>
                <condition k="name(:..)?" />
                <link name="Search on Google" href="https://www.google.be/search?q=%v%" />
            </rule>
    </src>

    <src name="Wikipedia">
        <rule>
            <condition k="wikipedia(?::(\p{Lower}{2,}))?" v="(?:(\p{Lower}{2,}):)?(.*)" />
            <link name="View %name% article" href="https://%k.1:v.1:en%.wikipedia.org/wiki/%v.2:v.1%" />
        </rule>
        <rule>
            <condition k="wikidata" />
            <link name="View Wikidata page" href="https://www.wikidata.org/wiki/%v%" />
        </rule>
        <rule>
            <condition k="[operator|brand|name:etymology|artist|architect|subject]:wikidata" />
            <link name="View Wikidata page" href="https://www.wikidata.org/wiki/%v%" />
        </rule>
    </src>

Attachments (0)

Change History (6)

comment:1 by Klumbumbus, 9 years ago

Cc: Klumbumbus added

comment:2 by Don-vip, 9 years ago

Description: modified (diff)

comment:3 by Polyglot, 6 years ago

Resolution: wontfix
Status: newclosed

comment:4 by Klumbumbus, 5 years ago

Cc: stoecker added

The wikipedia rules were added meanwhile.

@Dirk and Vincent: any objections against adding the rule to search for names with DuckDuckGo?

        <rule>
            <condition k="^(.+(:|_))?name((:|_).+)?$" />
            <link name="Search on DuckDuckGo" href="https://duckduckgo.com/?q=%v%" />
        </rule>

comment:5 by Klumbumbus, 5 years ago

Search for names with DuckDuckGo added in [o35043:35044]

comment:6 by stoecker, 5 years ago

Changes to Tag2Link are seldom enough and making it a wiki brings additional security issues and thus active monitoring requirements for admins. While it is not complicated to setup in general ATM I'd say no to the main request of this ticket.

P.S. Some years ago I would immediatelly have said yes, but currently security issues come up too often...

So until reconsideration simply make tickets with patches.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Don-vip.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.