Template:$/doc: Difference between revisions
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
Line 1: | Line 1: | ||
{{Documentation}} |
{{Documentation}} |
||
A template link with a variable number of parameters. |
|||
The '''*''' template is used to add bullets (example: '''•''') by substituting <tt><nowiki>'''&bull;'''</nowiki></tt> automatically. |
|||
===Use=== |
|||
To use this for templates, use |
|||
:{{T|T|<nowiki>parameter 1|parameter 2|parameter 3|...|parameter 20</nowiki>}}<!-- self-referential examples! --> |
|||
To use other namespaces, use the namespace as prefix, for example |
|||
:{{T|T|User:Example}} |
|||
And to show transclusions of mainspace mw.pages, use |
|||
:{{T|T|:Bucket}} |
|||
== |
==Usage== |
||
The recommended usage is to use spaces ''before'' and ''after'' the template. |
|||
<code><nowiki>{{T|Stub}}</nowiki></code> |
|||
<pre>[[Bones]] {{*}} [[Big bones]]</pre> |
|||
:{{T|Stub}} |
|||
The template renders one space on each side of the bullet. |
|||
<code><nowiki>{{T|Stub|Item1|Item2|Item3|Item4|Item5|...}}</nowiki></code> |
|||
[[Bones]] {{*}} [[Big bones]] |
|||
:{{T|Stub|Item1|Item2|Item3|Item4|Item5|...}} |
|||
For long dotted lists each list item can be put on its own line, with spaces between each item and the template. |
|||
<pre> |
|||
[[Bones]] {{*}} |
|||
[[Bat bones]] {{*}} |
|||
[[Wolf bones]] {{*}} |
|||
[[Big bones]] {{*}} |
|||
[[Dragon bones]] |
|||
</pre> |
|||
As before, the template renders one space on each side of the bullets. |
|||
[[Bones]] {{*}} |
|||
[[Bat bones]] {{*}} |
|||
[[Wolf bones]] {{*}} |
|||
[[Big bones]] {{*}} |
|||
[[Dragon bones]] |
|||
When the list is too long and line breaks, the class "nowraplinks" should be used. |
|||
<pre style="width:95%; overflow:scroll"><div class="nowraplinks"> |
|||
[[Bones]] {{*}} [[Bat bones]] {{*}} [[Wolf bones]] {{*}} [[Big bones]] {{*}} [[Dragon bones]] {{*}} [[Bones]] {{*}} [[Bat bones]] {{*}} [[Wolf bones]] {{*}} [[Big bones]] {{*}} [[Dragon bones]] {{*}} [[Bones]] {{*}} [[Bat bones]] {{*}} [[Wolf bones]] {{*}} [[Big bones]] {{*}} [[Dragon bones]] |
|||
</div></pre> |
|||
Using "nowraplinks" forces the line break to come after one of the bullets. |
|||
<div class="nowraplinks"> |
|||
[[Bones]] {{*}} [[Bat bones]] {{*}} [[Wolf bones]] {{*}} [[Big bones]] {{*}} [[Dragon bones]] {{*}} [[Bones]] {{*}} [[Bat bones]] {{*}} [[Wolf bones]] {{*}} [[Big bones]] {{*}} [[Dragon bones]] {{*}} [[Bones]] {{*}} [[Bat bones]] {{*}} [[Wolf bones]] {{*}} [[Big bones]] {{*}} [[Dragon bones]] |
|||
</div> |
|||
<includeonly>[[Category:Formatting templates|{{PAGENAME}}]]</includeonly> |
<includeonly>[[Category:Formatting templates|{{PAGENAME}}]]</includeonly> |
||
{{TemplateData|<templatedata> |
|||
{ |
|||
"params": {}, |
|||
"description": "The * template is used to add bullets (example: •) by substituting '''•''' automatically.", |
|||
"format": "inline" |
|||
} |
|||
</templatedata> |
|||
}} |
Revision as of 00:56, 17 October 2024
The * template is used to add bullets (example: •) by substituting '''•''' automatically.
Usage
The recommended usage is to use spaces before and after the template.
[[Bones]] {{*}} [[Big bones]]
The template renders one space on each side of the bullet. Bones • Big bones
For long dotted lists each list item can be put on its own line, with spaces between each item and the template.
[[Bones]] {{*}} [[Bat bones]] {{*}} [[Wolf bones]] {{*}} [[Big bones]] {{*}} [[Dragon bones]]
As before, the template renders one space on each side of the bullets. Bones • Bat bones • Wolf bones • Big bones • Dragon bones
When the list is too long and line breaks, the class "nowraplinks" should be used.
<div class="nowraplinks"> [[Bones]] {{*}} [[Bat bones]] {{*}} [[Wolf bones]] {{*}} [[Big bones]] {{*}} [[Dragon bones]] {{*}} [[Bones]] {{*}} [[Bat bones]] {{*}} [[Wolf bones]] {{*}} [[Big bones]] {{*}} [[Dragon bones]] {{*}} [[Bones]] {{*}} [[Bat bones]] {{*}} [[Wolf bones]] {{*}} [[Big bones]] {{*}} [[Dragon bones]] </div>
Using "nowraplinks" forces the line break to come after one of the bullets.
Bones • Bat bones • Wolf bones • Big bones • Dragon bones • Bones • Bat bones • Wolf bones • Big bones • Dragon bones • Bones • Bat bones • Wolf bones • Big bones • Dragon bones
Template data
Show/hide template's data | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date. The * template is used to add bullets (example: •) by substituting '''•''' automatically.
|