No edit summary |
No edit summary Tag: Manual revert |
||
| (19 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation}} | {{Documentation}} | ||
<includeonly><onlyinclude><div class | <includeonly><onlyinclude><div class="catlinks" style=" | ||
display: block; | display: block; | ||
clear:both; | clear: both; | ||
padding: 10px | padding: 0.75em 10px; | ||
border: 1px solid #333333; | border: 1px solid #333333; | ||
margin-top: 2em; | {{#if:{{{bottom|}}} | ||
| margin: 0px; | |||
| margin-top: 2em; margin-bottom: -1.5em; | |||
}} | |||
color: #d5d4d4; | color: #d5d4d4; | ||
line-height: 1.8em;" >{{{1|{{Required|2|Bar}}}}}:<ul>{{{2|{{Required|2|Bar}}}}}</ul></div></onlyinclude></includeonly> | line-height: 1.8em;" >{{{1|{{Required|2|Bar}}}}}:<ul>{{#ifeq:{{#count:{{{2|{{Required|2|Bar}}}}}|;}}|0 | ||
|<li>{{{2}}}</li> | |||
|{{#loop: items | |||
| 0 | |||
| {{#expr:1+{{#count:{{{2}}}|;}}}} | |||
| <li>{{#explode:{{{2}}}|;|{{#var:items}}}}</li>}} | |||
}}</ul></div></onlyinclude></includeonly> | |||
Latest revision as of 17:51, 20 March 2024
Template:Bar is used to format a bar matching the format of the "Categories" bar found at the bottom of every page.
Usage
It accepts two mandatory string parameters.
- The label for the list, generally a link to a category page the next parameters articles are part of.
- A semi-colon separated list, generally links to articles.
Returns
{{Bar|{{Category|Episode}}s|[[S01E01]];[[S01E02]]}} returns:
The documentation above was transcluded from Template:Bar/Documentation. [edit]
