Editing Template:·/doc

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 2: Line 2:


<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{tsh|dot|middot|,}}
__NOTOC__
__NOTOC__
This is the '''bold middot''' template, it looks like this: " '''&middot;''' ". It works similarly to the html+wiki markup sequence [<code>'''&amp;nbsp;<nowiki><b>&amp;middot;</b></nowiki>'''&nbsp;</code>]. That is, a non-breaking space, a bolded middot and a normal space.
This is the '''bold middot''' template, it looks like this: " '''&middot;''' ". It works similarly to the html+wiki markup sequence [<code>'''&amp;nbsp;<nowiki><b>&amp;middot;</b></nowiki>'''&nbsp;</code>]. That is, a [[non-breaking space]], a bolded middot and a normal space.
 
This template is used when you want something smaller than a [[Template:•|bullet]] "&bull;", or [[Template:spaced ndash|ndash]] "&ndash;".
 
This template's use for dotted lists is now '''deprecated'''. Use {{Tl|Flatlist}} or <code>class="hlist"</code> instead; see [[WP:HLIST]].
 


{| class="wikitable" style="border: none; background: none;"
{| class="wikitable" style="border: none; background: none;"
Line 11: Line 17:
|}
|}


Template Dot is not really intended to be used in article text; it's intended for use in other templates, tables, lists and other equivalent things, in order to include a separator between items such as in infoboxes.
Template Dot is not really intended to be used in article text; it's intended for use in other templates, tables, lists and other equivalent things, in order to include a separator between items such as in infoboxes. It's also to be consistent so that the article editor can use their choice of '''<nowiki>{{</nowiki>bull}}''', '''<nowiki>{{</nowiki>dot}}''', '''<nowiki>{{</nowiki>middot}}''', or  '''<nowiki>{{</nowiki>spaced ndash}}''' and not have to insert the {{bull}}, {{dot}}, {{middot}}, or {{spaced ndash}} symbol, they can use any of these as a simple macro.  The idea being that if you have a table with a list of items, you can insert a bolded middot (or the other symbols) between items that will appear correct, in that the items always have just one separator between them, and when a list crawls to the next line, the dash hangs onto the prior item instead of rolling over to the next line.  Notice on the end of this box, the dot symbol "'''&middot;'''" hangs on the end of the last item that will fit on the line indicating that additional items follow on the next line as part of this list, but the item only stays on the line if the item and the dot will fit.  See the column on the right.  In code it's ''' Item1<nowiki>{{</nowiki>dot}} Item2<nowiki>{{</nowiki>dot}} Item3<nowiki>{{</nowiki>dot}} Item4<nowiki>{{</nowiki>dot}} Item5<nowiki>{{</nowiki>dot}}''' etc. (with some smaller items squeezed in to show that the list doesn't have to be the same number of items per line) but in the box they all fold perfectly once it runs out of space on the line to fit the next item and the symbol following.
 
== Technical details ==
The space before the dot is a [[non-breaking space]]. That means it will not line break and will not collapse together with normal spaces that come before the template.
 
The space after the dot is a normal space. That means it wraps (allows line breaks) and it will collapse together with normal spaces that come after the template to form one single space.
 
Under some circumstances dotted link lists misbehave. They might get unexpected line wraps or they might expand outside the box they are enclosed in. The how-to guide [[Wikipedia:Line break handling]] explains when that happens and how to fix it.
 
== Redirects ==
* {{tl2|,}}
* {{tl2|dot}}
* {{tl2|middot}}
 
== Dot sizes ==
{{Dot size}}
 
== See also ==
There are several similar templates:
 
* {{tn|•}} – Bullet "&bull;" is mostly used for dotted lists that use small font sizes.
* {{tl|mid-dot}} – middot without the bold.
* {{tl|spaced ndash}} – Ndash "&ndash;" is a short dash.
* {{tn|\}} – For the occasional slash "/" in lists.
* {{tl2|-!}} – Spaced pipe "|"


<noinclude>[[Category:Templates]]</noinclude>
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Wikipedia formatting and function templates|{{PAGENAME}}]]
</includeonly>
Please note that all contributions to PS4 Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see PS4 Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)