မေႃႇၵျူး:Redirect and target
This module is rated as alpha. It is ready for third-party input, and may be used on a few pages to see if problems arise, but should be watched. Suggestions for new features or changes in their input and output mechanisms are welcome. |
Implements {{redirect and target}}
လွင်ႈၸႂ်ႉတိုဝ်း
မႄးထတ်း{{#invoke:Redirect and target|function_name}}
ၽိုၼ်ၵႅမ်မိုဝ်းလၢႆးၸႂ်ႉတိုဝ်း (documentation)တီႈၽၢႆႇၼိူဝ်ၼႆႉ လုၵ်ႉတီႈ မေႃႇၵျူး:Redirect and target/doc သေ ၶၢႆႉသႂ်ႇၶဝ်ႈ (ႁဵတ်း transclude ဝႆႉၶႃႈဢေႃႈ။ (မႄးထတ်း | ပိုၼ်း) ၽူႈၸိူဝ်းမႄးထတ်းၶဝ် ၸၢင်ႈၸၢမ်းတူၺ်းလႆႈ ၸိူဝ်းပဵၼ်ၼႃႈလိၵ်ႈ sandbox (သၢင်ႈ | ငဝ်းမိူၼ်) လႄႈ testcases (သၢင်ႈ) ႁင်း မေႃႇၵျူးဢၼ်ၼႆႉ လႆႈယူႇၶႃႈ။ ၼႃႈလိၵ်ႈၽႄ ႁင်း မေႃႇၵျူး ဢၼ်ၼႆႉ။. |
local getTarget = require('Module:Redirect').getTarget
local p = {}
function p.line(frame)
local pageTitle = frame.args[1]
local target = getTarget(pageTitle)
if target then
return string.format('[[%s]] → [[%s]]', pageTitle, target)
end
return string.format('[[%s]] is not a redirect', pageTitle)
end
function p.report(frame)
local pageTitle = frame.args[1]
local target = getTarget(pageTitle)
if target then
return string.format('<i>[[%s]] (R)</i> → [[%s]]', pageTitle, target)
end
return string.format('[[%s]]', pageTitle)
end
return p