Toggle menu
1
18
17
345
Emergency Response: Liberty County Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Vehicle specifications

From Emergency Response: Liberty County Wiki
Revision as of 12:07, 20 February 2026 by Lucah1337 (talk | contribs)
Module documentation[view][edit][history][purge]
This documentation is transcluded from Module:Vehicle specifications/doc. Changes can be proposed in the talk page.
Function list
L 3 — p.main

local p = {}

function p.main(frame)
    local getArgs = require('Module:Arguments').getArgs
    local args = getArgs(frame)
    
    local _ = args[1]
    
    if next(args) == nil then
    	return '|-|Error=\n\n{{error|The [[Template:Vehicle_specifications]] template requires at least one parameter to display content. Check the documentation for usage.}}'
    end

    local wikitext = ''

    if args['price'] 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

return p
🍪 Cookies help us deliver our services. By using our site, you agree to our use of cookies.