Opened 10 years ago

Last modified 7 years ago

#12379 closed enhancement

make adding new items for tag2link more straightforward — at Initial Version

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

Description

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>

Change History (0)

Note: See TracTickets for help on using tickets.