پودمان:NotInLang
ظاهر
--[[
This module is intended to create link to the NotInLang tools URI
{{#invoke:CoordNotInLang |latitude|longitude|distance }}
: General function formatting and displaying articles for which.
]]
require('Module:No globals')
-- خط زیر برای بومیسازی ضروری است
local convert = require( "Module:Numeral converter" ).convert;
local math_mod = require("Module:Math")
local CoordNotInLang = {};
local magic = mw.uri.encode( '625', 'WIKI' );
local srcLang = mw.uri.encode( 'en', 'WIKI' );
local dstLang = mw.uri.encode( 'fa', 'WIKI' );
local lBrak='%5B';
local rBrak='%5D';
local comma='%2C';
function CoordNotInLang.getURL(frame)
local lat = tonumber( convert("en",frame.args[1]));
local long = tonumber( convert("en",frame.args[2]));
local dist = tonumber( convert("en",frame.args[3]));
if (lat==nil or long==nil or dist==nil) then return'خطا!' end
local toolsLink = 'tools.wmflabs.org/not-in-the-other-language/'
..'?lang1='..srcLang
..'&lang2='..dstLang
..'&wdq=around'..lBrak..magic..comma..lat..comma..long..comma..dist..rBrak
..'&doit=Do+it';
return toolsLink;
end
return CoordNotInLang