Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Format link: Difference between revisions

From MassiveCraft Wiki
starcitizentools>Alistair3149
Sync with upstream
m 1 revision imported
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
-- Imported from: https://en.wikipedia.org/wiki/Module:Format_link
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Format link
-- Format link
Line 74: Line 72:
section = postHash
section = postHash
end
end
 
return {
return {
link = link,
link = link,
Line 101: Line 99:
mError = require('Module:Error')
mError = require('Module:Error')
return mError.error{message =
return mError.error{message =
'Error: no link or target specified! ([[' .. target .. '#Errors|help]])'
'Error: no link or target specified! ([[' .. target .. '#Errors|help]])'
}
}
end
end
Line 177: Line 175:
end
end
end
end
 
-- Format the result as a link
-- Format the result as a link
if parsed.link == display then
if parsed.link == display then