44,465
edits
(Added shortcuts.) |
No edit summary |
||
Line 245: | Line 245: | ||
Arguments can have names, which means that instead of just separating the arguments by vertical bars, each argument contains a name and a value connected by an equals sign. | Arguments can have names, which means that instead of just separating the arguments by vertical bars, each argument contains a name and a value connected by an equals sign. | ||
Some templates are more complex, featuring many arguments. An example of this is {{tem|infobox upgrade}}, which is used to show basic information about [[ | Some templates are more complex, featuring many arguments. An example of this is {{tem|infobox upgrade}}, which is used to show basic information about [[gear]]. These include which games the upgrade appears in, an image of the gear, its function, and how to obtain. To make large templates like this easier to work with, it's recommended to place each argument on its own line. For the [[Dodge Whistle]], the template would look like this: | ||
{|class="wikitable" | {|class="wikitable" | ||
!Code!!Result | !Code!!Result | ||
Line 259: | Line 259: | ||
|max_carriers = 20 | |max_carriers = 20 | ||
|function = Allows leaders and Pikmin to dodge | |function = Allows leaders and Pikmin to dodge | ||
|requirements = Retrieve the capsule | |||
}}</nowiki></pre> | }}</nowiki></pre> | ||
{{infobox upgrade | |||
|p3 = y | |p3 = y | ||
|name = Dodge Whistle | |name = Dodge Whistle | ||
Line 270: | Line 271: | ||
|max_carriers = 20 | |max_carriers = 20 | ||
|function = Allows leaders and Pikmin to dodge | |function = Allows leaders and Pikmin to dodge | ||
|requirements = Retrieve the capsule | |||
}} | }} | ||
|} | |} |