Changes

Help:Creating templates

17 bytes removed, 15:00, June 11, 2007
/* Types of templates */ formatting with template
* '''List of links'''. Many templates might includes links to other articles. Templates consisting solely of links are usually referred to as navigation boxes, because they allow you to jump to related articles. And example is {{tl|statistics}} which is shown at right.
{{Ship|name=Victory|disp=3,500 tons|length=226 feet|beam=52 feet|draft=29 feet|speed=8-9 knots|armament=104 guns on 3 decks|crew=850}}
* '''With parameters'''. These templates are designed to have values passed to it to include different information in the same basic layout. ''Info boxes'' are one type of such template. The example at right is an information box for a ship, with the details of the ship passed as parameters like this: <small><{{tt>|<nowiki>{{Ship|name=Victory|disp=3,500 tons|length=226 feet|beam=52 feet|draft=29 feet|speed=8-9 knots|armament=104 guns on 3 decks|crew=850}}</nowiki></tt></small>}}<br/>There are several different options for parameters:
** Parameters can be required or optional. Optional parameters often require more effort by the editor creating the parameter, but less effort by the editor using the template.
** Parameters can be named or not named. Named parameters are more flexible (they can be supplied in any order, and any optional parameters can be omitted), but require a bit more typing by the editor using them. Unnamed parameters must be supplied in order, and only parameters at the end of the list can be omitted.
NsTeam2RO, nsTeam2RW, nsTeam2_talkRO, nsTeam2_talkRW
13,254
edits