Module:Vehicle specifications: Difference between revisions
From Emergency Response: Liberty County Wiki
More actions
Content deleted Content added
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
local p = {} |
|||
function p.main(frame) |
function p.main(frame) |
||
local |
local getArgs = require('Module:Arguments').getArgs |
||
local args = |
local args = getArgs(frame) |
||
local |
local wikitext = '' |
||
| ⚫ | |||
if next(args) == nil then |
|||
return "{{error|The [[Template:Vehicle_specifications|Vehicle_specifications]] template requires at least one parameter to display content. Check the documentation for usage}}" |
|||
end |
|||
if args['manufacturer'] then |
|||
wikitext = wikitext .. '|-|Price=\n\n' .. "[[" .. args['price'] .. "]]" .. '\n\n' |
|||
end |
|||
| ⚫ | |||
| ⚫ | |||
wikitext = wikitext .. '|-|Health=\n\n' .. args['health'] .. '\n\n' |
|||
end |
|||
| ⚫ | |||
end |
end |
||
return p |
|||
Revision as of 11:47, 20 February 2026
This documentation is transcluded from Module:Vehicle specifications/doc. Changes can be proposed in the talk page.
This module is unused.
This module is neither invoked by a template nor required/loaded by another module. If this is in error, make sure to add
{{Documentation}}/{{No documentation}} to the calling template's or parent's module documentation.function p.main(frame)
local getArgs = require('Module:Arguments').getArgs
local args = getArgs(frame)
local wikitext = ''
if next(args) == nil then
return "{{error|The [[Template:Vehicle_specifications|Vehicle_specifications]] template requires at least one parameter to display content. Check the documentation for usage}}"
end
if args['manufacturer'] then
wikitext = wikitext .. '|-|Price=\n\n' .. "[[" .. args['price'] .. "]]" .. '\n\n'
end
if args['health'] then
wikitext = wikitext .. '|-|Health=\n\n' .. args['health'] .. '\n\n'
end
return wikitext
end