Help:Editing: Difference between revisions

m
Protected "Help:Editing" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only administrators] (indefinite))
(Added shortcuts.)
m (Protected "Help:Editing" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(2 intermediate revisions by 2 users not shown)
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 [[upgrade]]s. These include which games the upgrade appears in, an image of the upgrade, the areas it appears in, and the upgrade's weight. 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:
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 it. 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 255: Line 255:
|image        = DodgeWhistleArt.png
|image        = DodgeWhistleArt.png
|caption      = The Dodge Whistle's capsule.
|caption      = The Dodge Whistle's capsule.
|area        = [[Distant Tundra]]
|weight      = 10
|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
|{{infobox upgrade
Line 266: Line 264:
|image        = DodgeWhistleArt.png
|image        = DodgeWhistleArt.png
|caption      = The Dodge Whistle's capsule.
|caption      = The Dodge Whistle's capsule.
|area        = [[Distant Tundra]]
|weight      = 10
|max_carriers = 20
|function    = Allows leaders and Pikmin to dodge
|function    = Allows leaders and Pikmin to dodge
|requirements = Retrieve the capsule
}}
}}
|}
|}