Editing Template:•/doc

From Guild of Archivists
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 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>'''&amp;nbsp;&amp;bull;'''&nbsp;</code>], that is, a non-breaking space, a bullet and a normal space.
It works similarly to the HTML markup sequence: [<code>'''&amp;nbsp;&amp;bull;'''&nbsp;</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]] ['''&middot;'''], but something smaller than an [[Template:spaced ndash|en dash]] [&ndash;].  
This template is used when you want a larger bullet than a [[Template:·|bold middot]] ['''&middot;'''], but something smaller than an [[Template:spaced ndash|en dash]] [&ndash;].  


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>[[Atrus]]{{&bull;}} [[Catherine]]</nowiki>
  <nowiki>[[Salt]]{{&bull;}} [[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:
:[[Atrus]] &bull; [[Catherine]]
:[[Salt]] &bull; [[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.
:[[Atrus]] &bull;  
:[[Salt]] &bull;  
:[[Catherine]]
:[[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>[[Atrus]]{{&bull;}}[[Catherine]]</nowiki>
  <nowiki>[[Salt]]{{&bull;}}[[Pepper]]</nowiki>
  <nowiki>[[Atrus]]{{&bull;}}  [[Catherine]]</nowiki>
  <nowiki>[[Salt]]{{&bull;}}  [[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:
:[[Atrus]] &bull; [[Catherine]]
:[[Salt]] &bull; [[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:
:[[Atrus]] &bull;  
:[[Salt]] &bull;  
:[[Catherine]]
:[[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>[[Atrus]] {{&bull;}}[[Catherine]]</nowiki>
  <nowiki>[[Salt]] {{&bull;}}[[Pepper]]</nowiki>
  <nowiki>[[Atrus]]  {{&bull;}}[[Catherine]]</nowiki>
  <nowiki>[[Salt]]  {{&bull;}}[[Pepper]]</nowiki>
  <nowiki>[[Atrus]] {{&bull;}} [[Catherine]]</nowiki>
  <nowiki>[[Salt]] {{&bull;}} [[Pepper]]</nowiki>
  <nowiki>[[Atrus]]  {{&bull;}}  [[Catherine]]</nowiki>
  <nowiki>[[Salt]]  {{&bull;}}  [[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:
:[[Atrus]] &nbsp;&bull; [[Catherine]]
:[[Salt]] &nbsp;&bull; [[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:
:[[Atrus]]  
:[[Salt]]  
:&nbsp;&bull; [[Catherine]]
:&nbsp;&bull; [[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>
Please note that all contributions to Guild of Archivists may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, 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 (see GoArch:Copyrights for details). Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)