
Questo è un modulo scritto in Lua. Le istruzioni che seguono sono contenute nella sottopagina Modulo:Indicatore GPX/man (modifica · cronologia)
Sandbox: Modulo:Indicatore GPX/sandbox (modifica · cronologia) · Test: Modulo:Indicatore GPX/test (modifica · cronologia · Esegui)
Vedi anche
--[[ Source script: https://it.wikivoyage.org/wiki/Modulo:Indicatore GPX Maintainer: Andyrom75 ]] local p = {} function p.gpx() local ns = mw.title.getCurrentTitle().namespace local output = '' if (ns == 0) or (ns == 10) then --NS principale o template local contentLang = mw.getContentLanguage():getCode() local title = mw.title.getCurrentTitle().prefixedText output = mw.getCurrentFrame():extensionTag{ name = "indicator", content = '[[File:GPX Document rev3-20x20.png|20px|link=https://wikivoyage.toolforge.org/w/poi2gpx.php?print=gpx&lang=' .. contentLang .. '&name=' .. mw.uri.encode( title, 'wiki' ) .. '|Scarica il file GPX di questo articolo]]', args = { name = "GPX"} } end return output end return p