iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: https://www.mediawiki.org/wiki/Topic:Tpz21dqvqgkokhfl
Passing code via GET param to external site on Extension talk:SyntaxHighlight Jump to content

Topic on Extension talk:SyntaxHighlight

Passing code via GET param to external site

3
Bjohas (talkcontribs)

Hello,

Is there any way that a <syntaxhighlight>ABC</syntaxhighlight> segement could produce a link to an external site passing the code via GET? I.e. could the <syntaxhighlight server="myserver?Q=">ABC</syntaxhighlight> also produce a link myserver?Q=urlencode:ABC ?

The OSM wiki is trying to do this here with templates: https://wiki.openstreetmap.org/wiki/Template:OverpassTurboExample, but the problem is that this only works if "ABC" is (wiki-)escaped, which is somewhat limiting. Ideally the unescaped ABC would be passed to <syntaxhighlight>, and syntaxhighlight could generate the link.

Thanks!

(Also see Help_talk:Magic_words#urlencode:syntaxhighlight.3E....2Fsyntaxhighlight.3E)

PerfektesChaos (talkcontribs)
Bjohas (talkcontribs)

Many thanks!

Reply to "Passing code via GET param to external site"