Template:TestingTemplate: Difference between revisions
m (Testing) |
m (Testing) |
||
Line 23: | Line 23: | ||
<hr> | <hr> | ||
<pre>{{TestingTemplate}}</pre> | <pre>{{TestingTemplate|Ranch|huge|es}}</pre> | ||
{{TestingTemplate}} | {{TestingTemplate|Ranch|huge|es}} | ||
<hr> | |||
<pre>{{TestingTemplate|huge|Ranch|es}}</pre> | |||
{{TestingTemplate|huge|Ranch|es}} | |||
</noinclude> | </noinclude> |
Latest revision as of 02:11, 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|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.