Editing Template:•/doc
From Guild of Archivists
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 5: | Line 5: | ||
This is the '''bullet''' template; it looks like this: [ • ] | This is the '''bullet''' template; it looks like this: [ • ] | ||
It works similarly to the HTML markup sequence: [<code>'''&nbsp;&bull;''' </code>], that is, a non-breaking space, a bullet and a normal space. | It works similarly to the HTML markup sequence: [<code>'''&nbsp;&bull;''' </code>], that is, a [[non-breaking space]], a [[Bullet (typography)|bullet]] and a normal [[Space (punctuation)|space]]. | ||
This template is used when you want a larger bullet than a [[Template:·|bold middot]] ['''·'''], but something smaller than an [[Template:spaced ndash|en dash]] [–]. | This template is used when you want a larger bullet than a [[Template:·|bold middot]] ['''·'''], but something smaller than an [[Template:spaced ndash|en dash]] [–]. | ||
This template's use for dotted lists is now '''deprecated'''. use {{Tl|Flatlist}} or <code>class="hlist"</code> instead. | This template's use for dotted lists is now '''deprecated'''. use {{Tl|Flatlist}} or <code>class="hlist"</code> instead; see [[WP:HLIST]]. | ||
== Normal usage == | == Normal usage == | ||
The recommended usage is to use ''no'' space before the template and one space after the template, like this: | The recommended usage is to use ''no'' space before the template and one space after the template, like this: | ||
<nowiki>[[ | <nowiki>[[Salt]]{{•}} [[Pepper]]</nowiki> | ||
Because the template ''contains'' a non-breaking space on the left side, the text will render one space on each side of the bullet, like this: | Because the template ''contains'' a non-breaking space on the left side, the text will render one space on each side of the bullet, like this: | ||
:[[ | :[[Salt]] • [[Black pepper|Pepper]] | ||
The purpose of this is to ensure that, if the line breaks, it will do so on the right side of the bullet. | The purpose of this is to ensure that, if the line breaks, it will do so on the right side of the bullet. | ||
:[[ | :[[Salt]] • | ||
:[[ | :[[Black pepper|Pepper]] | ||
{| class="wikitable" style="border: none; background: none;" | {| class="wikitable" style="border: none; background: none;" | ||
|Colspan=2 |<center>Here's an example of how it's used</center> | |Colspan=2 |<center>Here's an example of how it's used</center> | ||
Line 31: | Line 31: | ||
If the template is used slightly wrong, it will, in some cases, still behave well. For instance, if there are no or several spaces after the template, like these examples: | If the template is used slightly wrong, it will, in some cases, still behave well. For instance, if there are no or several spaces after the template, like these examples: | ||
<nowiki>[[ | <nowiki>[[Salt]]{{•}}[[Pepper]]</nowiki> | ||
<nowiki>[[ | <nowiki>[[Salt]]{{•}} [[Pepper]]</nowiki> | ||
Both of them will render exactly as before, with just one space on each side of the bullet, like this: | Both of them will render exactly as before, with just one space on each side of the bullet, like this: | ||
:[[ | :[[Salt]] • [[Black pepper|Pepper]] | ||
And it will still only line break ''after'' the bullet, like this: | And it will still only line break ''after'' the bullet, like this: | ||
:[[ | :[[Salt]] • | ||
:[[ | :[[Black pepper|Pepper]] | ||
But putting one or more spaces before the template will cause problems, like these examples: | But putting one or more spaces before the template will cause problems, like these examples: | ||
<nowiki>[[ | <nowiki>[[Salt]] {{•}}[[Pepper]]</nowiki> | ||
<nowiki>[[ | <nowiki>[[Salt]] {{•}}[[Pepper]]</nowiki> | ||
<nowiki>[[ | <nowiki>[[Salt]] {{•}} [[Pepper]]</nowiki> | ||
<nowiki>[[ | <nowiki>[[Salt]] {{•}} [[Pepper]]</nowiki> | ||
Then it will render with ''two'' spaces before the bullet and one after, like this: | Then it will render with ''two'' spaces before the bullet and one after, like this: | ||
:[[ | :[[Salt]] • [[Black pepper|Pepper]] | ||
And if it line breaks it might break ''before'' the bullet, like this: | And if it line breaks it might break ''before'' the bullet, like this: | ||
:[[ | :[[Salt]] | ||
: • [[ | : • [[Black pepper|Pepper]] | ||
==Template data== | ==Template data== | ||
Line 65: | Line 65: | ||
== Technical details == | == Technical details == | ||
The space before the bullet 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 before the bullet 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 bullet 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. | The space after the bullet 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. | ||
Line 97: | Line 97: | ||
<!-- ADD INTERWIKIS BELOW THIS LINE --> | <!-- ADD INTERWIKIS BELOW THIS LINE --> | ||
[[ar:قالب:•]] | |||
[[bg:Шаблон:•]] | |||
[[bs:Šablon:•]] | |||
[[et:Mall:•]] | |||
[[eo:Ŝablono:•]] | |||
[[fa:الگو:•]] | |||
[[fr:Modèle:•]] | |||
[[ko:틀:•]] | |||
[[hr:Predložak:•]] | |||
[[ja:Template:•]] | |||
[[hy:Կաղապար:•]] | |||
[[ka:თარგი:••]] | |||
[[lt:Šablonas:•]] | |||
[[pt:Predefinição:•]] | |||
[[ro:Format:•]] | |||
[[sco:Template:•]] | |||
[[uk:Шаблон:•]] | |||
[[vep:Šablon:*]] | |||
[[zh:Template:•]] | |||
</includeonly> | </includeonly> |