Template:Il/doc: Difference between revisions
m (moved Template:Bp/doc to Template:Il/doc) |
(→Usage) |
||
Line 7: | Line 7: | ||
Simply type <code><nowiki>{{il|item 1|item 2|item 3| ... item 20}}</nowiki></code> | Simply type <code><nowiki>{{il|item 1|item 2|item 3| ... item 20}}</nowiki></code> | ||
{{Infobox Story | {{Infobox Story | ||
|name=The Eight Doctors | |||
|doctor = [[Eighth Doctor]] | |doctor = [[Eighth Doctor]] | ||
|featuring = {{il|[[First Doctor]]|[[Second Doctor]]|[[Third Doctor]]|[[Fourth Doctor]]|[[Fifth Doctor]]|[[Sixth Doctor]]|[[Seventh Doctor]]}} | |featuring = {{il|[[First Doctor]]|[[Second Doctor]]|[[Third Doctor]]|[[Fourth Doctor]]|[[Fifth Doctor]]|[[Sixth Doctor]]|[[Seventh Doctor]]}} | ||
Line 24: | Line 25: | ||
===Guidelines=== | ===Guidelines=== | ||
{{Infobox Story | {{Infobox Story | ||
|name = The Eight Doctors | |||
|doctor = [[Eighth Doctor]] | |doctor = [[Eighth Doctor]] | ||
|featuring = [[First Doctor]], [[Second Doctor]], [[Third Doctor]], [[Fourth Doctor]], [[Fifth Doctor]], [[Sixth Doctor]], [[Seventh Doctor]]}} | |featuring = [[First Doctor]], [[Second Doctor]], [[Third Doctor]], [[Fourth Doctor]], [[Fifth Doctor]], [[Sixth Doctor]], [[Seventh Doctor]]}} | ||
}} | }} | ||
Generally, lists in infoboxes '''should be avoided'''. It is a far more efficient use of space simply to separate thigs with a comma. Returning to our earlier example, note the difference in the compactness of the form at right. '''You should strongly consider whether the extra vertical height in the infobox is actually worth it.''' Remember, the longer your infobox is, the deeper into the article the first image will be placed. If the illustrations in the body of your article are being seriously displaced, you should probably use a comma-separated list instead. | Generally, lists in infoboxes '''should be avoided'''. It is a far more efficient use of space simply to separate thigs with a comma. Returning to our earlier example, note the difference in the compactness of the form at right. '''You should strongly consider whether the extra vertical height in the infobox is actually worth it.''' Remember, the longer your infobox is, the deeper into the article the first image will be placed. If the illustrations in the body of your article are being seriously displaced, you should probably use a comma-separated list instead. | ||
==Template history== | ==Template history== | ||
This template was originally created as a way to make bullet-pointed lists in infoboxes. Hence, it was originally called {{tl|bp}}. In the wake of its changeover to a non-bullet-pointed listmaker, its name was changed. | This template was originally created as a way to make bullet-pointed lists in infoboxes. Hence, it was originally called {{tl|bp}}. In the wake of its changeover to a non-bullet-pointed listmaker, its name was changed. | ||
[[Category:Template documentation]] | [[Category:Template documentation]] |
Revision as of 16:48, 21 March 2012
{{il}} is a template for producing an infobox list in a way that conforms with T:NO HTML and uses a minimum of space.
This template can be used for up to 20 bullet points.
Usage
Simply type {{il|item 1|item 2|item 3| ... item 20}}
For instance, if we wanted to list the featured Doctors in EDA: The Eight Doctors, we might well type something like this:
{{Infobox Story |doctor = [[Eighth Doctor]] |featuring = {{il|[[First Doctor]]|[[Second Doctor]]|[[Third Doctor]]|[[Fourth Doctor]]|[[Fifth Doctor]]|[[Sixth Doctor]]|[[Seventh Doctor]]}} }}
Advantages
This has the following advantages over the bulletised lists:
- An {{il}} list takes up less space, because they don't have to allow for the character of the bullet, plus the additional space to the left and right of the bullet
- It's far easier to create than an HTML
<ul>
structure.
Disadvantages
- The lack of indentation means that things which appear on more than one line are slightly less clear than with bullets.
- This template can handle only 20 items. However, if you need more than 5 or 6 things on a list in an infobox, the chances are you're giving too much detail. Remember, the point of an infobox is to give a brief flavour of the main aspects of the thing in question. An infobox is never meant to be exhaustive.
Guidelines
}} Generally, lists in infoboxes should be avoided. It is a far more efficient use of space simply to separate thigs with a comma. Returning to our earlier example, note the difference in the compactness of the form at right. You should strongly consider whether the extra vertical height in the infobox is actually worth it. Remember, the longer your infobox is, the deeper into the article the first image will be placed. If the illustrations in the body of your article are being seriously displaced, you should probably use a comma-separated list instead.
Template history
This template was originally created as a way to make bullet-pointed lists in infoboxes. Hence, it was originally called {{bp}}. In the wake of its changeover to a non-bullet-pointed listmaker, its name was changed.