Module:Sandbox/KEmel49
Appearance
- Step 1:
This will go in module
function p.hello(frame)
if frame.args[1] == nil then
return "[[Module:Sandbox/KEmel49]]"
elseif frame.args[1] then
return '[[Module:'..frame.args[1]..'|'..frame.args[1]..']]'
end
end
return p
- Step 2:
This will go in template page
{{#invoke:Sandbox/KEmel49|hello}}
- Step 3:
Final output
{{Templatepage}}
output:
Module:Sandbox/KEmel49
{{Templatepage |Math}}
output:
Module:Sandbox/KEmel49
Navigate to