Opened 10 years ago
Last modified 7 years ago
#12379 closed enhancement
make adding new items for tag2link more straightforward — at Version 2
| Reported by: | Polyglot | Owned by: | Don-vip |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Core tag2link | Version: | |
| Keywords: | Cc: | Klumbumbus, stoecker |
Description (last modified by )
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 (2)
comment:1 by , 10 years ago
| Cc: | added |
|---|
comment:2 by , 10 years ago
| Description: | modified (diff) |
|---|
Note:
See TracTickets
for help on using tickets.


