Template:TestingTemplate

From Against the Storm Official Wiki


{{TestingTemplate|Ranch}}

frame.args = {
--[display] = ,
--[name] = Ranch,
--[size] = ,
}
frame:getParent().args = {
--[1] = Ranch,
}
nextParameter = Ranch
checking VALID_SIZE[nextParameter] = nil
checking VALID_PLURAL[nextParameter] = nil

Finally...
name = Ranch
iconSize = none
needsPlural = nil


{{TestingTemplate|name=Ranch|large}}

frame.args = {
--[display] = ,
--[name] = Ranch,
--[size] = ,
}
frame:getParent().args = {
--[1] = large,
--[name] = Ranch,
}
nextParameter = large
checking VALID_SIZE[nextParameter] = true
now iconSize = large

Finally...
name = Ranch
iconSize = large
needsPlural = nil


{{TestingTemplate|name=Ranch|large|s}}

frame.args = {
--[display] = ,
--[name] = Ranch,
--[size] = ,
}
frame:getParent().args = {
--[1] = large,
--[2] = s,
--[name] = Ranch,
}
nextParameter = large
checking VALID_SIZE[nextParameter] = true
now iconSize = large
nextParameter = s
checking VALID_SIZE[nextParameter] = nil
checking VALID_PLURAL[nextParameter] = true
now needsPlural = s

Finally...
name = Ranch
iconSize = large
needsPlural = es


{{TestingTemplate|Ranch|huge|es}}

frame.args = {
--[display] = ,
--[name] = Ranch,
--[size] = ,
}
frame:getParent().args = {
--[1] = Ranch,
--[2] = huge,
--[3] = es,
}
nextParameter = Ranch
checking VALID_SIZE[nextParameter] = nil
checking VALID_PLURAL[nextParameter] = nil
nextParameter = huge
checking VALID_SIZE[nextParameter] = true
now iconSize = huge
nextParameter = es
checking VALID_SIZE[nextParameter] = nil
checking VALID_PLURAL[nextParameter] = true
now needsPlural = es

Finally...
name = Ranch
iconSize = huge
needsPlural = es


{{TestingTemplate|huge|Ranch|es}}

Lua error in Module:TestModule at line 69: No building found with name: huge. Please see the template documentation for how to use the parameters.