Template:Clean URL: Difference between revisions
Robertbaxter (talk | contribs) No edit summary |
Robertbaxter (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<!-- This should probably become a Lua module at some point, the #if chaining is going to get cumbersome if too many more patterns are added --><includeonly> | <!-- This should probably become a Lua module at some point, the #if chaining is going to get cumbersome if too many more patterns are added --><includeonly><!-- | ||
-->{{#ifexpr:{{#invoke:String|find|{{lc:{{{1|}}}}}|instagram.com}}>0 | |||
{{#ifexpr:{{#invoke:String|find|{{lc:{{{1|}}}}}|instagram.com}}>0 | |||
|[{{{1|}}} @{{#rmatch:{{{1|}}}|/^(?:https?:\/\/)?(?:www\.)?(?:instagram.com\/)(.+?)\/?$/|\1}}] | |[{{{1|}}} @{{#rmatch:{{{1|}}}|/^(?:https?:\/\/)?(?:www\.)?(?:instagram.com\/)(.+?)\/?$/|\1}}] | ||
|{{#ifexpr:{{#invoke:String|find|{{lc:{{{1|}}}}}|web.archive.org}}>0 | |{{#ifexpr:{{#invoke:String|find|{{lc:{{{1|}}}}}|web.archive.org}}>0 | ||
Line 10: | Line 6: | ||
|[{{{1|}}} {{#rmatch:{{{1|}}}|/^(?:https?:\/\/)?(?:www\.)?(.+?)\/?$/|\1}}] | |[{{{1|}}} {{#rmatch:{{{1|}}}|/^(?:https?:\/\/)?(?:www\.)?(.+?)\/?$/|\1}}] | ||
}} | }} | ||
}} | }}</includeonly> | ||
</includeonly> |