Template:TestingTemplate: Difference between revisions
m (Testing) |
m (Testing) |
||
Line 20: | Line 20: | ||
{{TestingTemplate|name=Ranch|large|s}} | {{TestingTemplate|name=Ranch|large|s}} | ||
<hr> | |||
<pre>{{TestingTemplate}}</pre> | |||
{{TestingTemplate}} | |||
</noinclude> | </noinclude> |
Revision as of 02:04, 18 October 2024
{{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}}
Lua error in Module:TestModule at line 69: No building found with name: . Please see the template documentation for how to use the parameters.