This is a documentation subpage for Template:Diff. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 31,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
File:Police man Twinkle Head.svg | If you plan to make breaking changes to this template, move it, or nominate it for deletion, please notify Twinkle's users and maintainers at OODA WIKI talk:Twinkle as a courtesy, as the standard installation of Twinkle adds and removes this template. Thank you! |
This template is intended to be useful for creating links to "diffs"; that is, links to pages that show the differences between two versions of a wiki page.
Every version of a page has a revision ID, which you can find from the history of the page by looking at the timestamp link for the edit. The timestamp link is in this form:
http[s]://en.OODA WIKI.org/w/index.php?title=SomePageName&oldid=442212827
The number after oldid=
is the revision ID.
Given one or two revision IDs, you can construct links to several types of diffs.
Usage
- {{Diff
|title |diff |oldid |label |diffonly=yes}}
title
This is a documentation subpage for Template:Diff.
It may contain usage information, categories and other content that is not part of the original template page.
This template is used on approximately 31,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template should not be used in citation templates such as Citation Style 1 and Citation Style 2, because it includes markup that will pollute the COinS metadata they produce; see Wikipedia:COinS. |
— | |
---|---|
Diff/doc | |
Punctuation marks | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||||||||||
In other scripts | ||||||||||||||||||||||||||||||
Related | ||||||||||||||||||||||||||||||
Category | ||||||||||||||||||||||||||||||
This is the spaced en dash space template; it renders text in the same format as the HTML markup sequence –
. The resulting text is three characters in a line in the following order:
- a non-breaking space (which cannot become a line break and will not collapse together with any normal spaces that come before the template),
- a short type of dash called an en dash), and
- one more of the same kind of non-breaking space (which will behave just like the first).
The recommended usage is to use no space before the template and no space after the template, like this:
- [[Salt]]{{snds}}[[Black pepper|Pepper]]{{snds}}[[Curry]]{{snds}}[[Saffron]]
- This will render one space on each side of the dash, and a line break will not come before one of the dashes nor will a line break come after one of the dashes as rendered here:
The template is used to connect words with an en dash but with a non-breaking space before and after the en dash. Others uses of the template "spaced en dash space" are within other templates, tables, lists, and similar things to provide a separator between items. It is also to be consistent so that the article editor can use their choice of {{bull}}, {{dot}}, {{middot}}, {{spaced en dash}}, or {{spaced en dash space}} and not have to insert the
This is a documentation subpage for Template:Diff. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 31,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
File:Cascade-protection-shackle.svg | This template is transcluded in one or more cascade-protected pages, so only administrators can edit it. |
This is the bullet template; it looks like this: [ • ]
It works like the HTML markup sequence: [ •
], that is, a non-breaking space, a bullet and a normal space.
This template is used when you want a larger bullet than a bold middot [·], but something smaller than an en dash [–].
This template's use for dotted lists is now deprecated. use {{Flatlist}} or {{Hlist}} instead; see WP:HLIST.
Normal usage
The recommended usage is to use no space before the template and one space after the template, like this:
[[Salt]]{{•}} [[Pepper]]
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:
The purpose of this is to ensure that, if the line breaks, it will do so on the right side of the bullet.
Here's an example of how it's used | |
Template Bull 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 {{bull}}, {{dot}}, {{middot}}, or {{ndash}} and not have to insert the Template loop detected: Template:Bull, · , · , or – 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 bullet (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 bullet hangs onto the prior item instead of rolling over to the next line. Notice on the end of this box, the bullet symbol "•" 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 dash will fit. See the column on the right. In code it's Item1{{bull}} Item2{{bull}} Item3{{bull}} Item4{{bull}} Item5{{bull}} 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. | Normally, in a real box these items would be links, but this is an example. Item1Template loop detected: Template:Bull ATemplate loop detected: Template:Bull BTemplate loop detected: Template:Bull Item2Template loop detected: Template:Bull Item3Template loop detected: Template:Bull Item4Template loop detected: Template:Bull Item5Template loop detected: Template:Bull extra itemTemplate loop detected: Template:Bull ETemplate loop detected: Template:Bull 1Template loop detected: Template:Bull 2Template loop detected: Template:Bull 3Template loop detected: Template:Bull 4Template loop detected: Template:Bull 5Template loop detected: Template:Bull 6Template loop detected: Template:Bull 7Template loop detected: Template:Bull item that won't attach to prior line unless it fits in the remaining spaceTemplate loop detected: Template:Bull QTemplate loop detected: Template:Bull A slightly longer itemTemplate loop detected: Template:Bull KKTemplate loop detected: Template:Bull An obviously really even longer item that the bullet will hang at its endTemplate loop detected: Template:Bull Item6Template loop detected: Template:Bull CTemplate loop detected: Template:Bull Item7Template loop detected: Template:Bull Item8Template loop detected: Template:Bull Item9Template loop detected: Template:Bull Item10Template loop detected: Template:Bull Item11Template loop detected: Template:Bull Item12Template loop detected: Template:Bull DTemplate loop detected: Template:Bull Item13Template loop detected: Template:Bull Item14Template loop detected: Template:Bull Item15Template loop detected: Template:Bull Item16Template loop detected: Template:Bull Item17Template loop detected: Template:Bull Item18The space on the end makes sure the bullet doesn't touch the edge of the box, either |
Incorrect usage
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:
[[Salt]]{{•}}[[Pepper]] [[Salt]]{{•}} [[Pepper]]
Both of them will render exactly as before, with just one space on each side of the bullet, like this:
And it will still only line break after the bullet, like this:
But putting one or more spaces before the template will cause problems, like these examples:
[[Salt]] {{•}}[[Pepper]] [[Salt]] {{•}}[[Pepper]] [[Salt]] {{•}} [[Pepper]] [[Salt]] {{•}} [[Pepper]]
Then it will render with two spaces before the bullet and one after, like this:
And if it line breaks it might break before the bullet, like this:
TemplateData
TemplateData for Diff
The template makes a bullet. There are no optional or required parameters for this template. 'bull' or 'bullet' may be used as alternative template names.
Parameter | Description | Type | Status | |||
---|---|---|---|---|---|---|
No parameters specified |
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 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.
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: OODA WIKI:Line-break handling, explains when that happens and how to fix it.
- The bullet used is U+2022 • BULLET (•, •⧼dot-separator⧽ hex: •).
- Not to be confused with U+00B7 · MIDDOT (·, ·, ·⧼dot-separator⧽ hex: ·), used in
{{·}}
.
Redirects
Dot sizes
· | middot |
· | bold {{middot}} |
• | small bullet |
• | {{bullet}} |
• | bold bullet |
– | {{en dash}} |
— | {{em dash}} |
See also
There are several other templates with similar stream formatting purposes and such (or related) functionality:
{{·}}
– bold middot or (·){{spaced ndash}}
– en dash or "–", a short dash{{\}}
– for the occasional slash or "/" in lists (note that the template is a backslash because template names may not contain a slash){{Colorbull}}
– a colored bullet, with an optional wikilink{{Asterisk}}
– to display an asterisk character (*) at the start of a line of text{{sdot}}
or "Template:Sdot"
Wrap control templates
- You might need to handle proper word wrapping (line breaking):
- {{nowraplinks}} – Prevents wraps inside links and only allows wraps between the links and in normal text, very useful for link lists and easy to use.
- {{nowrap begin}} – Prevents wraps in both text and links. For the really tricky wrapping cases when you need full control, for instance in very complex link lists.
- For further information, see: OODA WIKI:Line-break handling – The how-to guide detailing how to handle line wrapping on OODA WIKI.
, · , · , – , or Template loop detected: Template:Spaced en dash space symbols; they can use any of these templates as a simple macro. See above and right for shortcuts editors can use to easily implement this template in articles.
Dot sizes
· | middot |
· | bold {{middot}} |
• | small bullet |
• | {{bullet}} |
• | bold bullet |
– | {{en dash}} |
— | {{em dash}} |
See also
- {{·}}, which produces a spaced bold interpunct aka middot: " · "
- {{•}}, which produces a spaced bullet point: " • "
- {{\}}, which produces a spaced forward slash: " / "
- {{en dash}}, which produces an unspaced en dash
- {{spaced en dash}}, which produces a non-breaking space, followed by an en dash, and then a breaking space
- {{em dash}}, which produces an unspaced em dash
- Non-breaking space
The title of the page (optional in most cases)
diff
This is a documentation subpage for Template:Diff.
It may contain usage information, categories and other content that is not part of the original template page.
This template is used on approximately 31,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template should not be used in citation templates such as Citation Style 1 and Citation Style 2, because it includes markup that will pollute the COinS metadata they produce; see Wikipedia:COinS. |
— | |
---|---|
Diff/doc | |
Punctuation marks | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||||||||||
In other scripts | ||||||||||||||||||||||||||||||
Related | ||||||||||||||||||||||||||||||
Category | ||||||||||||||||||||||||||||||
This is the spaced en dash space template; it renders text in the same format as the HTML markup sequence –
. The resulting text is three characters in a line in the following order:
- a non-breaking space (which cannot become a line break and will not collapse together with any normal spaces that come before the template),
- a short type of dash called an en dash), and
- one more of the same kind of non-breaking space (which will behave just like the first).
The recommended usage is to use no space before the template and no space after the template, like this:
- [[Salt]]{{snds}}[[Black pepper|Pepper]]{{snds}}[[Curry]]{{snds}}[[Saffron]]
- This will render one space on each side of the dash, and a line break will not come before one of the dashes nor will a line break come after one of the dashes as rendered here:
The template is used to connect words with an en dash but with a non-breaking space before and after the en dash. Others uses of the template "spaced en dash space" are within other templates, tables, lists, and similar things to provide a separator between items. It is also to be consistent so that the article editor can use their choice of {{bull}}, {{dot}}, {{middot}}, {{spaced en dash}}, or {{spaced en dash space}} and not have to insert the
This is a documentation subpage for Template:Diff. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 31,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
File:Cascade-protection-shackle.svg | This template is transcluded in one or more cascade-protected pages, so only administrators can edit it. |
This is the bullet template; it looks like this: [ • ]
It works like the HTML markup sequence: [ •
], that is, a non-breaking space, a bullet and a normal space.
This template is used when you want a larger bullet than a bold middot [·], but something smaller than an en dash [–].
This template's use for dotted lists is now deprecated. use {{Flatlist}} or {{Hlist}} instead; see WP:HLIST.
Normal usage
The recommended usage is to use no space before the template and one space after the template, like this:
[[Salt]]{{•}} [[Pepper]]
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:
The purpose of this is to ensure that, if the line breaks, it will do so on the right side of the bullet.
Here's an example of how it's used | |
Template Bull 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 {{bull}}, {{dot}}, {{middot}}, or {{ndash}} and not have to insert the Template loop detected: Template:Bull, · , · , or – 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 bullet (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 bullet hangs onto the prior item instead of rolling over to the next line. Notice on the end of this box, the bullet symbol "•" 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 dash will fit. See the column on the right. In code it's Item1{{bull}} Item2{{bull}} Item3{{bull}} Item4{{bull}} Item5{{bull}} 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. | Normally, in a real box these items would be links, but this is an example. Item1Template loop detected: Template:Bull ATemplate loop detected: Template:Bull BTemplate loop detected: Template:Bull Item2Template loop detected: Template:Bull Item3Template loop detected: Template:Bull Item4Template loop detected: Template:Bull Item5Template loop detected: Template:Bull extra itemTemplate loop detected: Template:Bull ETemplate loop detected: Template:Bull 1Template loop detected: Template:Bull 2Template loop detected: Template:Bull 3Template loop detected: Template:Bull 4Template loop detected: Template:Bull 5Template loop detected: Template:Bull 6Template loop detected: Template:Bull 7Template loop detected: Template:Bull item that won't attach to prior line unless it fits in the remaining spaceTemplate loop detected: Template:Bull QTemplate loop detected: Template:Bull A slightly longer itemTemplate loop detected: Template:Bull KKTemplate loop detected: Template:Bull An obviously really even longer item that the bullet will hang at its endTemplate loop detected: Template:Bull Item6Template loop detected: Template:Bull CTemplate loop detected: Template:Bull Item7Template loop detected: Template:Bull Item8Template loop detected: Template:Bull Item9Template loop detected: Template:Bull Item10Template loop detected: Template:Bull Item11Template loop detected: Template:Bull Item12Template loop detected: Template:Bull DTemplate loop detected: Template:Bull Item13Template loop detected: Template:Bull Item14Template loop detected: Template:Bull Item15Template loop detected: Template:Bull Item16Template loop detected: Template:Bull Item17Template loop detected: Template:Bull Item18The space on the end makes sure the bullet doesn't touch the edge of the box, either |
Incorrect usage
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:
[[Salt]]{{•}}[[Pepper]] [[Salt]]{{•}} [[Pepper]]
Both of them will render exactly as before, with just one space on each side of the bullet, like this:
And it will still only line break after the bullet, like this:
But putting one or more spaces before the template will cause problems, like these examples:
[[Salt]] {{•}}[[Pepper]] [[Salt]] {{•}}[[Pepper]] [[Salt]] {{•}} [[Pepper]] [[Salt]] {{•}} [[Pepper]]
Then it will render with two spaces before the bullet and one after, like this:
And if it line breaks it might break before the bullet, like this:
TemplateData
TemplateData for Diff
The template makes a bullet. There are no optional or required parameters for this template. 'bull' or 'bullet' may be used as alternative template names.
Parameter | Description | Type | Status | |||
---|---|---|---|---|---|---|
No parameters specified |
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 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.
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: OODA WIKI:Line-break handling, explains when that happens and how to fix it.
- The bullet used is U+2022 • BULLET (•, •⧼dot-separator⧽ hex: •).
- Not to be confused with U+00B7 · MIDDOT (·, ·, ·⧼dot-separator⧽ hex: ·), used in
{{·}}
.
Redirects
Dot sizes
· | middot |
· | bold {{middot}} |
• | small bullet |
• | {{bullet}} |
• | bold bullet |
– | {{en dash}} |
— | {{em dash}} |
See also
There are several other templates with similar stream formatting purposes and such (or related) functionality:
{{·}}
– bold middot or (·){{spaced ndash}}
– en dash or "–", a short dash{{\}}
– for the occasional slash or "/" in lists (note that the template is a backslash because template names may not contain a slash){{Colorbull}}
– a colored bullet, with an optional wikilink{{Asterisk}}
– to display an asterisk character (*) at the start of a line of text{{sdot}}
or "Template:Sdot"
Wrap control templates
- You might need to handle proper word wrapping (line breaking):
- {{nowraplinks}} – Prevents wraps inside links and only allows wraps between the links and in normal text, very useful for link lists and easy to use.
- {{nowrap begin}} – Prevents wraps in both text and links. For the really tricky wrapping cases when you need full control, for instance in very complex link lists.
- For further information, see: OODA WIKI:Line-break handling – The how-to guide detailing how to handle line wrapping on OODA WIKI.
, · , · , – , or Template loop detected: Template:Spaced en dash space symbols; they can use any of these templates as a simple macro. See above and right for shortcuts editors can use to easily implement this template in articles.
Dot sizes
· | middot |
· | bold {{middot}} |
• | small bullet |
• | {{bullet}} |
• | bold bullet |
– | {{en dash}} |
— | {{em dash}} |
See also
- {{·}}, which produces a spaced bold interpunct aka middot: " · "
- {{•}}, which produces a spaced bullet point: " • "
- {{\}}, which produces a spaced forward slash: " / "
- {{en dash}}, which produces an unspaced en dash
- {{spaced en dash}}, which produces a non-breaking space, followed by an en dash, and then a breaking space
- {{em dash}}, which produces an unspaced em dash
- Non-breaking space
The ID or keyword that is used against the base ID. Possible keywords are:
cur
This is a documentation subpage for Template:Diff.
It may contain usage information, categories and other content that is not part of the original template page.
This template is used on approximately 31,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template should not be used in citation templates such as Citation Style 1 and Citation Style 2, because it includes markup that will pollute the COinS metadata they produce; see Wikipedia:COinS. |
— | |
---|---|
Diff/doc | |
Punctuation marks | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||||||||||
In other scripts | ||||||||||||||||||||||||||||||
Related | ||||||||||||||||||||||||||||||
Category | ||||||||||||||||||||||||||||||
This is the spaced en dash space template; it renders text in the same format as the HTML markup sequence –
. The resulting text is three characters in a line in the following order:
- a non-breaking space (which cannot become a line break and will not collapse together with any normal spaces that come before the template),
- a short type of dash called an en dash), and
- one more of the same kind of non-breaking space (which will behave just like the first).
The recommended usage is to use no space before the template and no space after the template, like this:
- [[Salt]]{{snds}}[[Black pepper|Pepper]]{{snds}}[[Curry]]{{snds}}[[Saffron]]
- This will render one space on each side of the dash, and a line break will not come before one of the dashes nor will a line break come after one of the dashes as rendered here:
The template is used to connect words with an en dash but with a non-breaking space before and after the en dash. Others uses of the template "spaced en dash space" are within other templates, tables, lists, and similar things to provide a separator between items. It is also to be consistent so that the article editor can use their choice of {{bull}}, {{dot}}, {{middot}}, {{spaced en dash}}, or {{spaced en dash space}} and not have to insert the
This is a documentation subpage for Template:Diff. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 31,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
File:Cascade-protection-shackle.svg | This template is transcluded in one or more cascade-protected pages, so only administrators can edit it. |
This is the bullet template; it looks like this: [ • ]
It works like the HTML markup sequence: [ •
], that is, a non-breaking space, a bullet and a normal space.
This template is used when you want a larger bullet than a bold middot [·], but something smaller than an en dash [–].
This template's use for dotted lists is now deprecated. use {{Flatlist}} or {{Hlist}} instead; see WP:HLIST.
Normal usage
The recommended usage is to use no space before the template and one space after the template, like this:
[[Salt]]{{•}} [[Pepper]]
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:
The purpose of this is to ensure that, if the line breaks, it will do so on the right side of the bullet.
Here's an example of how it's used | |
Template Bull 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 {{bull}}, {{dot}}, {{middot}}, or {{ndash}} and not have to insert the Template loop detected: Template:Bull, · , · , or – 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 bullet (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 bullet hangs onto the prior item instead of rolling over to the next line. Notice on the end of this box, the bullet symbol "•" 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 dash will fit. See the column on the right. In code it's Item1{{bull}} Item2{{bull}} Item3{{bull}} Item4{{bull}} Item5{{bull}} 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. | Normally, in a real box these items would be links, but this is an example. Item1Template loop detected: Template:Bull ATemplate loop detected: Template:Bull BTemplate loop detected: Template:Bull Item2Template loop detected: Template:Bull Item3Template loop detected: Template:Bull Item4Template loop detected: Template:Bull Item5Template loop detected: Template:Bull extra itemTemplate loop detected: Template:Bull ETemplate loop detected: Template:Bull 1Template loop detected: Template:Bull 2Template loop detected: Template:Bull 3Template loop detected: Template:Bull 4Template loop detected: Template:Bull 5Template loop detected: Template:Bull 6Template loop detected: Template:Bull 7Template loop detected: Template:Bull item that won't attach to prior line unless it fits in the remaining spaceTemplate loop detected: Template:Bull QTemplate loop detected: Template:Bull A slightly longer itemTemplate loop detected: Template:Bull KKTemplate loop detected: Template:Bull An obviously really even longer item that the bullet will hang at its endTemplate loop detected: Template:Bull Item6Template loop detected: Template:Bull CTemplate loop detected: Template:Bull Item7Template loop detected: Template:Bull Item8Template loop detected: Template:Bull Item9Template loop detected: Template:Bull Item10Template loop detected: Template:Bull Item11Template loop detected: Template:Bull Item12Template loop detected: Template:Bull DTemplate loop detected: Template:Bull Item13Template loop detected: Template:Bull Item14Template loop detected: Template:Bull Item15Template loop detected: Template:Bull Item16Template loop detected: Template:Bull Item17Template loop detected: Template:Bull Item18The space on the end makes sure the bullet doesn't touch the edge of the box, either |
Incorrect usage
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:
[[Salt]]{{•}}[[Pepper]] [[Salt]]{{•}} [[Pepper]]
Both of them will render exactly as before, with just one space on each side of the bullet, like this:
And it will still only line break after the bullet, like this:
But putting one or more spaces before the template will cause problems, like these examples:
[[Salt]] {{•}}[[Pepper]] [[Salt]] {{•}}[[Pepper]] [[Salt]] {{•}} [[Pepper]] [[Salt]] {{•}} [[Pepper]]
Then it will render with two spaces before the bullet and one after, like this:
And if it line breaks it might break before the bullet, like this:
TemplateData
TemplateData for Diff
The template makes a bullet. There are no optional or required parameters for this template. 'bull' or 'bullet' may be used as alternative template names.
Parameter | Description | Type | Status | |||
---|---|---|---|---|---|---|
No parameters specified |
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 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.
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: OODA WIKI:Line-break handling, explains when that happens and how to fix it.
- The bullet used is U+2022 • BULLET (•, •⧼dot-separator⧽ hex: •).
- Not to be confused with U+00B7 · MIDDOT (·, ·, ·⧼dot-separator⧽ hex: ·), used in
{{·}}
.
Redirects
Dot sizes
· | middot |
· | bold {{middot}} |
• | small bullet |
• | {{bullet}} |
• | bold bullet |
– | {{en dash}} |
— | {{em dash}} |
See also
There are several other templates with similar stream formatting purposes and such (or related) functionality:
{{·}}
– bold middot or (·){{spaced ndash}}
– en dash or "–", a short dash{{\}}
– for the occasional slash or "/" in lists (note that the template is a backslash because template names may not contain a slash){{Colorbull}}
– a colored bullet, with an optional wikilink{{Asterisk}}
– to display an asterisk character (*) at the start of a line of text{{sdot}}
or "Template:Sdot"
Wrap control templates
- You might need to handle proper word wrapping (line breaking):
- {{nowraplinks}} – Prevents wraps inside links and only allows wraps between the links and in normal text, very useful for link lists and easy to use.
- {{nowrap begin}} – Prevents wraps in both text and links. For the really tricky wrapping cases when you need full control, for instance in very complex link lists.
- For further information, see: OODA WIKI:Line-break handling – The how-to guide detailing how to handle line wrapping on OODA WIKI.
, · , · , – , or Template loop detected: Template:Spaced en dash space symbols; they can use any of these templates as a simple macro. See above and right for shortcuts editors can use to easily implement this template in articles.
Dot sizes
· | middot |
· | bold {{middot}} |
• | small bullet |
• | {{bullet}} |
• | bold bullet |
– | {{en dash}} |
— | {{em dash}} |
See also
- {{·}}, which produces a spaced bold interpunct aka middot: " · "
- {{•}}, which produces a spaced bullet point: " • "
- {{\}}, which produces a spaced forward slash: " / "
- {{en dash}}, which produces an unspaced en dash
- {{spaced en dash}}, which produces a non-breaking space, followed by an en dash, and then a breaking space
- {{em dash}}, which produces an unspaced em dash
- Non-breaking space
Compare with the current version of a page.
prev
This is a documentation subpage for Template:Diff.
It may contain usage information, categories and other content that is not part of the original template page.
This template is used on approximately 31,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template should not be used in citation templates such as Citation Style 1 and Citation Style 2, because it includes markup that will pollute the COinS metadata they produce; see Wikipedia:COinS. |
— | |
---|---|
Diff/doc | |
Punctuation marks | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||||||||||
In other scripts | ||||||||||||||||||||||||||||||
Related | ||||||||||||||||||||||||||||||
Category | ||||||||||||||||||||||||||||||
This is the spaced en dash space template; it renders text in the same format as the HTML markup sequence –
. The resulting text is three characters in a line in the following order:
- a non-breaking space (which cannot become a line break and will not collapse together with any normal spaces that come before the template),
- a short type of dash called an en dash), and
- one more of the same kind of non-breaking space (which will behave just like the first).
The recommended usage is to use no space before the template and no space after the template, like this:
- [[Salt]]{{snds}}[[Black pepper|Pepper]]{{snds}}[[Curry]]{{snds}}[[Saffron]]
- This will render one space on each side of the dash, and a line break will not come before one of the dashes nor will a line break come after one of the dashes as rendered here:
The template is used to connect words with an en dash but with a non-breaking space before and after the en dash. Others uses of the template "spaced en dash space" are within other templates, tables, lists, and similar things to provide a separator between items. It is also to be consistent so that the article editor can use their choice of {{bull}}, {{dot}}, {{middot}}, {{spaced en dash}}, or {{spaced en dash space}} and not have to insert the
This is a documentation subpage for Template:Diff. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 31,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
File:Cascade-protection-shackle.svg | This template is transcluded in one or more cascade-protected pages, so only administrators can edit it. |
This is the bullet template; it looks like this: [ • ]
It works like the HTML markup sequence: [ •
], that is, a non-breaking space, a bullet and a normal space.
This template is used when you want a larger bullet than a bold middot [·], but something smaller than an en dash [–].
This template's use for dotted lists is now deprecated. use {{Flatlist}} or {{Hlist}} instead; see WP:HLIST.
Normal usage
The recommended usage is to use no space before the template and one space after the template, like this:
[[Salt]]{{•}} [[Pepper]]
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:
The purpose of this is to ensure that, if the line breaks, it will do so on the right side of the bullet.
Here's an example of how it's used | |
Template Bull 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 {{bull}}, {{dot}}, {{middot}}, or {{ndash}} and not have to insert the Template loop detected: Template:Bull, · , · , or – 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 bullet (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 bullet hangs onto the prior item instead of rolling over to the next line. Notice on the end of this box, the bullet symbol "•" 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 dash will fit. See the column on the right. In code it's Item1{{bull}} Item2{{bull}} Item3{{bull}} Item4{{bull}} Item5{{bull}} 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. | Normally, in a real box these items would be links, but this is an example. Item1Template loop detected: Template:Bull ATemplate loop detected: Template:Bull BTemplate loop detected: Template:Bull Item2Template loop detected: Template:Bull Item3Template loop detected: Template:Bull Item4Template loop detected: Template:Bull Item5Template loop detected: Template:Bull extra itemTemplate loop detected: Template:Bull ETemplate loop detected: Template:Bull 1Template loop detected: Template:Bull 2Template loop detected: Template:Bull 3Template loop detected: Template:Bull 4Template loop detected: Template:Bull 5Template loop detected: Template:Bull 6Template loop detected: Template:Bull 7Template loop detected: Template:Bull item that won't attach to prior line unless it fits in the remaining spaceTemplate loop detected: Template:Bull QTemplate loop detected: Template:Bull A slightly longer itemTemplate loop detected: Template:Bull KKTemplate loop detected: Template:Bull An obviously really even longer item that the bullet will hang at its endTemplate loop detected: Template:Bull Item6Template loop detected: Template:Bull CTemplate loop detected: Template:Bull Item7Template loop detected: Template:Bull Item8Template loop detected: Template:Bull Item9Template loop detected: Template:Bull Item10Template loop detected: Template:Bull Item11Template loop detected: Template:Bull Item12Template loop detected: Template:Bull DTemplate loop detected: Template:Bull Item13Template loop detected: Template:Bull Item14Template loop detected: Template:Bull Item15Template loop detected: Template:Bull Item16Template loop detected: Template:Bull Item17Template loop detected: Template:Bull Item18The space on the end makes sure the bullet doesn't touch the edge of the box, either |
Incorrect usage
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:
[[Salt]]{{•}}[[Pepper]] [[Salt]]{{•}} [[Pepper]]
Both of them will render exactly as before, with just one space on each side of the bullet, like this:
And it will still only line break after the bullet, like this:
But putting one or more spaces before the template will cause problems, like these examples:
[[Salt]] {{•}}[[Pepper]] [[Salt]] {{•}}[[Pepper]] [[Salt]] {{•}} [[Pepper]] [[Salt]] {{•}} [[Pepper]]
Then it will render with two spaces before the bullet and one after, like this:
And if it line breaks it might break before the bullet, like this:
TemplateData
TemplateData for Diff
The template makes a bullet. There are no optional or required parameters for this template. 'bull' or 'bullet' may be used as alternative template names.
Parameter | Description | Type | Status | |||
---|---|---|---|---|---|---|
No parameters specified |
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 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.
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: OODA WIKI:Line-break handling, explains when that happens and how to fix it.
- The bullet used is U+2022 • BULLET (•, •⧼dot-separator⧽ hex: •).
- Not to be confused with U+00B7 · MIDDOT (·, ·, ·⧼dot-separator⧽ hex: ·), used in
{{·}}
.
Redirects
Dot sizes
· | middot |
· | bold {{middot}} |
• | small bullet |
• | {{bullet}} |
• | bold bullet |
– | {{en dash}} |
— | {{em dash}} |
See also
There are several other templates with similar stream formatting purposes and such (or related) functionality:
{{·}}
– bold middot or (·){{spaced ndash}}
– en dash or "–", a short dash{{\}}
– for the occasional slash or "/" in lists (note that the template is a backslash because template names may not contain a slash){{Colorbull}}
– a colored bullet, with an optional wikilink{{Asterisk}}
– to display an asterisk character (*) at the start of a line of text{{sdot}}
or "Template:Sdot"
Wrap control templates
- You might need to handle proper word wrapping (line breaking):
- {{nowraplinks}} – Prevents wraps inside links and only allows wraps between the links and in normal text, very useful for link lists and easy to use.
- {{nowrap begin}} – Prevents wraps in both text and links. For the really tricky wrapping cases when you need full control, for instance in very complex link lists.
- For further information, see: OODA WIKI:Line-break handling – The how-to guide detailing how to handle line wrapping on OODA WIKI.
, · , · , – , or Template loop detected: Template:Spaced en dash space symbols; they can use any of these templates as a simple macro. See above and right for shortcuts editors can use to easily implement this template in articles.
Dot sizes
· | middot |
· | bold {{middot}} |
• | small bullet |
• | {{bullet}} |
• | bold bullet |
– | {{en dash}} |
— | {{em dash}} |
See also
- {{·}}, which produces a spaced bold interpunct aka middot: " · "
- {{•}}, which produces a spaced bullet point: " • "
- {{\}}, which produces a spaced forward slash: " / "
- {{en dash}}, which produces an unspaced en dash
- {{spaced en dash}}, which produces a non-breaking space, followed by an en dash, and then a breaking space
- {{em dash}}, which produces an unspaced em dash
- Non-breaking space
Compare with the previous version of a page.
next
This is a documentation subpage for Template:Diff.
It may contain usage information, categories and other content that is not part of the original template page.
This template is used on approximately 31,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template should not be used in citation templates such as Citation Style 1 and Citation Style 2, because it includes markup that will pollute the COinS metadata they produce; see Wikipedia:COinS. |
— | |
---|---|
Diff/doc | |
Punctuation marks | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||||||||||
In other scripts | ||||||||||||||||||||||||||||||
Related | ||||||||||||||||||||||||||||||
Category | ||||||||||||||||||||||||||||||
This is the spaced en dash space template; it renders text in the same format as the HTML markup sequence –
. The resulting text is three characters in a line in the following order:
- a non-breaking space (which cannot become a line break and will not collapse together with any normal spaces that come before the template),
- a short type of dash called an en dash), and
- one more of the same kind of non-breaking space (which will behave just like the first).
The recommended usage is to use no space before the template and no space after the template, like this:
- [[Salt]]{{snds}}[[Black pepper|Pepper]]{{snds}}[[Curry]]{{snds}}[[Saffron]]
- This will render one space on each side of the dash, and a line break will not come before one of the dashes nor will a line break come after one of the dashes as rendered here:
The template is used to connect words with an en dash but with a non-breaking space before and after the en dash. Others uses of the template "spaced en dash space" are within other templates, tables, lists, and similar things to provide a separator between items. It is also to be consistent so that the article editor can use their choice of {{bull}}, {{dot}}, {{middot}}, {{spaced en dash}}, or {{spaced en dash space}} and not have to insert the
This is a documentation subpage for Template:Diff. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 31,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
File:Cascade-protection-shackle.svg | This template is transcluded in one or more cascade-protected pages, so only administrators can edit it. |
This is the bullet template; it looks like this: [ • ]
It works like the HTML markup sequence: [ •
], that is, a non-breaking space, a bullet and a normal space.
This template is used when you want a larger bullet than a bold middot [·], but something smaller than an en dash [–].
This template's use for dotted lists is now deprecated. use {{Flatlist}} or {{Hlist}} instead; see WP:HLIST.
Normal usage
The recommended usage is to use no space before the template and one space after the template, like this:
[[Salt]]{{•}} [[Pepper]]
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:
The purpose of this is to ensure that, if the line breaks, it will do so on the right side of the bullet.
Here's an example of how it's used | |
Template Bull 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 {{bull}}, {{dot}}, {{middot}}, or {{ndash}} and not have to insert the Template loop detected: Template:Bull, · , · , or – 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 bullet (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 bullet hangs onto the prior item instead of rolling over to the next line. Notice on the end of this box, the bullet symbol "•" 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 dash will fit. See the column on the right. In code it's Item1{{bull}} Item2{{bull}} Item3{{bull}} Item4{{bull}} Item5{{bull}} 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. | Normally, in a real box these items would be links, but this is an example. Item1Template loop detected: Template:Bull ATemplate loop detected: Template:Bull BTemplate loop detected: Template:Bull Item2Template loop detected: Template:Bull Item3Template loop detected: Template:Bull Item4Template loop detected: Template:Bull Item5Template loop detected: Template:Bull extra itemTemplate loop detected: Template:Bull ETemplate loop detected: Template:Bull 1Template loop detected: Template:Bull 2Template loop detected: Template:Bull 3Template loop detected: Template:Bull 4Template loop detected: Template:Bull 5Template loop detected: Template:Bull 6Template loop detected: Template:Bull 7Template loop detected: Template:Bull item that won't attach to prior line unless it fits in the remaining spaceTemplate loop detected: Template:Bull QTemplate loop detected: Template:Bull A slightly longer itemTemplate loop detected: Template:Bull KKTemplate loop detected: Template:Bull An obviously really even longer item that the bullet will hang at its endTemplate loop detected: Template:Bull Item6Template loop detected: Template:Bull CTemplate loop detected: Template:Bull Item7Template loop detected: Template:Bull Item8Template loop detected: Template:Bull Item9Template loop detected: Template:Bull Item10Template loop detected: Template:Bull Item11Template loop detected: Template:Bull Item12Template loop detected: Template:Bull DTemplate loop detected: Template:Bull Item13Template loop detected: Template:Bull Item14Template loop detected: Template:Bull Item15Template loop detected: Template:Bull Item16Template loop detected: Template:Bull Item17Template loop detected: Template:Bull Item18The space on the end makes sure the bullet doesn't touch the edge of the box, either |
Incorrect usage
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:
[[Salt]]{{•}}[[Pepper]] [[Salt]]{{•}} [[Pepper]]
Both of them will render exactly as before, with just one space on each side of the bullet, like this:
And it will still only line break after the bullet, like this:
But putting one or more spaces before the template will cause problems, like these examples:
[[Salt]] {{•}}[[Pepper]] [[Salt]] {{•}}[[Pepper]] [[Salt]] {{•}} [[Pepper]] [[Salt]] {{•}} [[Pepper]]
Then it will render with two spaces before the bullet and one after, like this:
And if it line breaks it might break before the bullet, like this:
TemplateData
TemplateData for Diff
The template makes a bullet. There are no optional or required parameters for this template. 'bull' or 'bullet' may be used as alternative template names.
Parameter | Description | Type | Status | |||
---|---|---|---|---|---|---|
No parameters specified |
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 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.
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: OODA WIKI:Line-break handling, explains when that happens and how to fix it.
- The bullet used is U+2022 • BULLET (•, •⧼dot-separator⧽ hex: •).
- Not to be confused with U+00B7 · MIDDOT (·, ·, ·⧼dot-separator⧽ hex: ·), used in
{{·}}
.
Redirects
Dot sizes
· | middot |
· | bold {{middot}} |
• | small bullet |
• | {{bullet}} |
• | bold bullet |
– | {{en dash}} |
— | {{em dash}} |
See also
There are several other templates with similar stream formatting purposes and such (or related) functionality:
{{·}}
– bold middot or (·){{spaced ndash}}
– en dash or "–", a short dash{{\}}
– for the occasional slash or "/" in lists (note that the template is a backslash because template names may not contain a slash){{Colorbull}}
– a colored bullet, with an optional wikilink{{Asterisk}}
– to display an asterisk character (*) at the start of a line of text{{sdot}}
or "Template:Sdot"
Wrap control templates
- You might need to handle proper word wrapping (line breaking):
- {{nowraplinks}} – Prevents wraps inside links and only allows wraps between the links and in normal text, very useful for link lists and easy to use.
- {{nowrap begin}} – Prevents wraps in both text and links. For the really tricky wrapping cases when you need full control, for instance in very complex link lists.
- For further information, see: OODA WIKI:Line-break handling – The how-to guide detailing how to handle line wrapping on OODA WIKI.
, · , · , – , or Template loop detected: Template:Spaced en dash space symbols; they can use any of these templates as a simple macro. See above and right for shortcuts editors can use to easily implement this template in articles.
Dot sizes
· | middot |
· | bold {{middot}} |
• | small bullet |
• | {{bullet}} |
• | bold bullet |
– | {{en dash}} |
— | {{em dash}} |
See also
- {{·}}, which produces a spaced bold interpunct aka middot: " · "
- {{•}}, which produces a spaced bullet point: " • "
- {{\}}, which produces a spaced forward slash: " / "
- {{en dash}}, which produces an unspaced en dash
- {{spaced en dash}}, which produces a non-breaking space, followed by an en dash, and then a breaking space
- {{em dash}}, which produces an unspaced em dash
- Non-breaking space
Compare with the next version of a page.
- id
This is a documentation subpage for Template:Diff.
It may contain usage information, categories and other content that is not part of the original template page.
- id
This template is used on approximately 31,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template should not be used in citation templates such as Citation Style 1 and Citation Style 2, because it includes markup that will pollute the COinS metadata they produce; see Wikipedia:COinS. |
— | |
---|---|
Diff/doc | |
Punctuation marks | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||||||||||
In other scripts | ||||||||||||||||||||||||||||||
Related | ||||||||||||||||||||||||||||||
Category | ||||||||||||||||||||||||||||||
This is the spaced en dash space template; it renders text in the same format as the HTML markup sequence –
. The resulting text is three characters in a line in the following order:
- a non-breaking space (which cannot become a line break and will not collapse together with any normal spaces that come before the template),
- a short type of dash called an en dash), and
- one more of the same kind of non-breaking space (which will behave just like the first).
The recommended usage is to use no space before the template and no space after the template, like this:
- [[Salt]]{{snds}}[[Black pepper|Pepper]]{{snds}}[[Curry]]{{snds}}[[Saffron]]
- This will render one space on each side of the dash, and a line break will not come before one of the dashes nor will a line break come after one of the dashes as rendered here:
The template is used to connect words with an en dash but with a non-breaking space before and after the en dash. Others uses of the template "spaced en dash space" are within other templates, tables, lists, and similar things to provide a separator between items. It is also to be consistent so that the article editor can use their choice of {{bull}}, {{dot}}, {{middot}}, {{spaced en dash}}, or {{spaced en dash space}} and not have to insert the
This is a documentation subpage for Template:Diff. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 31,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
File:Cascade-protection-shackle.svg | This template is transcluded in one or more cascade-protected pages, so only administrators can edit it. |
This is the bullet template; it looks like this: [ • ]
It works like the HTML markup sequence: [ •
], that is, a non-breaking space, a bullet and a normal space.
This template is used when you want a larger bullet than a bold middot [·], but something smaller than an en dash [–].
This template's use for dotted lists is now deprecated. use {{Flatlist}} or {{Hlist}} instead; see WP:HLIST.
Normal usage
The recommended usage is to use no space before the template and one space after the template, like this:
[[Salt]]{{•}} [[Pepper]]
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:
The purpose of this is to ensure that, if the line breaks, it will do so on the right side of the bullet.
Here's an example of how it's used | |
Template Bull 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 {{bull}}, {{dot}}, {{middot}}, or {{ndash}} and not have to insert the Template loop detected: Template:Bull, · , · , or – 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 bullet (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 bullet hangs onto the prior item instead of rolling over to the next line. Notice on the end of this box, the bullet symbol "•" 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 dash will fit. See the column on the right. In code it's Item1{{bull}} Item2{{bull}} Item3{{bull}} Item4{{bull}} Item5{{bull}} 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. | Normally, in a real box these items would be links, but this is an example. Item1Template loop detected: Template:Bull ATemplate loop detected: Template:Bull BTemplate loop detected: Template:Bull Item2Template loop detected: Template:Bull Item3Template loop detected: Template:Bull Item4Template loop detected: Template:Bull Item5Template loop detected: Template:Bull extra itemTemplate loop detected: Template:Bull ETemplate loop detected: Template:Bull 1Template loop detected: Template:Bull 2Template loop detected: Template:Bull 3Template loop detected: Template:Bull 4Template loop detected: Template:Bull 5Template loop detected: Template:Bull 6Template loop detected: Template:Bull 7Template loop detected: Template:Bull item that won't attach to prior line unless it fits in the remaining spaceTemplate loop detected: Template:Bull QTemplate loop detected: Template:Bull A slightly longer itemTemplate loop detected: Template:Bull KKTemplate loop detected: Template:Bull An obviously really even longer item that the bullet will hang at its endTemplate loop detected: Template:Bull Item6Template loop detected: Template:Bull CTemplate loop detected: Template:Bull Item7Template loop detected: Template:Bull Item8Template loop detected: Template:Bull Item9Template loop detected: Template:Bull Item10Template loop detected: Template:Bull Item11Template loop detected: Template:Bull Item12Template loop detected: Template:Bull DTemplate loop detected: Template:Bull Item13Template loop detected: Template:Bull Item14Template loop detected: Template:Bull Item15Template loop detected: Template:Bull Item16Template loop detected: Template:Bull Item17Template loop detected: Template:Bull Item18The space on the end makes sure the bullet doesn't touch the edge of the box, either |
Incorrect usage
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:
[[Salt]]{{•}}[[Pepper]] [[Salt]]{{•}} [[Pepper]]
Both of them will render exactly as before, with just one space on each side of the bullet, like this:
And it will still only line break after the bullet, like this:
But putting one or more spaces before the template will cause problems, like these examples:
[[Salt]] {{•}}[[Pepper]] [[Salt]] {{•}}[[Pepper]] [[Salt]] {{•}} [[Pepper]] [[Salt]] {{•}} [[Pepper]]
Then it will render with two spaces before the bullet and one after, like this:
And if it line breaks it might break before the bullet, like this:
TemplateData
TemplateData for Diff
The template makes a bullet. There are no optional or required parameters for this template. 'bull' or 'bullet' may be used as alternative template names.
Parameter | Description | Type | Status | |||
---|---|---|---|---|---|---|
No parameters specified |
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 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.
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: OODA WIKI:Line-break handling, explains when that happens and how to fix it.
- The bullet used is U+2022 • BULLET (•, •⧼dot-separator⧽ hex: •).
- Not to be confused with U+00B7 · MIDDOT (·, ·, ·⧼dot-separator⧽ hex: ·), used in
{{·}}
.
Redirects
Dot sizes
· | middot |
· | bold {{middot}} |
• | small bullet |
• | {{bullet}} |
• | bold bullet |
– | {{en dash}} |
— | {{em dash}} |
See also
There are several other templates with similar stream formatting purposes and such (or related) functionality:
{{·}}
– bold middot or (·){{spaced ndash}}
– en dash or "–", a short dash{{\}}
– for the occasional slash or "/" in lists (note that the template is a backslash because template names may not contain a slash){{Colorbull}}
– a colored bullet, with an optional wikilink{{Asterisk}}
– to display an asterisk character (*) at the start of a line of text{{sdot}}
or "Template:Sdot"
Wrap control templates
- You might need to handle proper word wrapping (line breaking):
- {{nowraplinks}} – Prevents wraps inside links and only allows wraps between the links and in normal text, very useful for link lists and easy to use.
- {{nowrap begin}} – Prevents wraps in both text and links. For the really tricky wrapping cases when you need full control, for instance in very complex link lists.
- For further information, see: OODA WIKI:Line-break handling – The how-to guide detailing how to handle line wrapping on OODA WIKI.
, · , · , – , or Template loop detected: Template:Spaced en dash space symbols; they can use any of these templates as a simple macro. See above and right for shortcuts editors can use to easily implement this template in articles.
Dot sizes
· | middot |
· | bold {{middot}} |
• | small bullet |
• | {{bullet}} |
• | bold bullet |
– | {{en dash}} |
— | {{em dash}} |
See also
- {{·}}, which produces a spaced bold interpunct aka middot: " · "
- {{•}}, which produces a spaced bullet point: " • "
- {{\}}, which produces a spaced forward slash: " / "
- {{en dash}}, which produces an unspaced en dash
- {{spaced en dash}}, which produces a non-breaking space, followed by an en dash, and then a breaking space
- {{em dash}}, which produces an unspaced em dash
- Non-breaking space
This should be larger than oldid
.
oldid
This is a documentation subpage for Template:Diff.
It may contain usage information, categories and other content that is not part of the original template page.
This template is used on approximately 31,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template should not be used in citation templates such as Citation Style 1 and Citation Style 2, because it includes markup that will pollute the COinS metadata they produce; see Wikipedia:COinS. |
— | |
---|---|
Diff/doc | |
Punctuation marks | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||||||||||
In other scripts | ||||||||||||||||||||||||||||||
Related | ||||||||||||||||||||||||||||||
Category | ||||||||||||||||||||||||||||||
This is the spaced en dash space template; it renders text in the same format as the HTML markup sequence –
. The resulting text is three characters in a line in the following order:
- a non-breaking space (which cannot become a line break and will not collapse together with any normal spaces that come before the template),
- a short type of dash called an en dash), and
- one more of the same kind of non-breaking space (which will behave just like the first).
The recommended usage is to use no space before the template and no space after the template, like this:
- [[Salt]]{{snds}}[[Black pepper|Pepper]]{{snds}}[[Curry]]{{snds}}[[Saffron]]
- This will render one space on each side of the dash, and a line break will not come before one of the dashes nor will a line break come after one of the dashes as rendered here:
The template is used to connect words with an en dash but with a non-breaking space before and after the en dash. Others uses of the template "spaced en dash space" are within other templates, tables, lists, and similar things to provide a separator between items. It is also to be consistent so that the article editor can use their choice of {{bull}}, {{dot}}, {{middot}}, {{spaced en dash}}, or {{spaced en dash space}} and not have to insert the
This is a documentation subpage for Template:Diff. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 31,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
File:Cascade-protection-shackle.svg | This template is transcluded in one or more cascade-protected pages, so only administrators can edit it. |
This is the bullet template; it looks like this: [ • ]
It works like the HTML markup sequence: [ •
], that is, a non-breaking space, a bullet and a normal space.
This template is used when you want a larger bullet than a bold middot [·], but something smaller than an en dash [–].
This template's use for dotted lists is now deprecated. use {{Flatlist}} or {{Hlist}} instead; see WP:HLIST.
Normal usage
The recommended usage is to use no space before the template and one space after the template, like this:
[[Salt]]{{•}} [[Pepper]]
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:
The purpose of this is to ensure that, if the line breaks, it will do so on the right side of the bullet.
Here's an example of how it's used | |
Template Bull 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 {{bull}}, {{dot}}, {{middot}}, or {{ndash}} and not have to insert the Template loop detected: Template:Bull, · , · , or – 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 bullet (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 bullet hangs onto the prior item instead of rolling over to the next line. Notice on the end of this box, the bullet symbol "•" 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 dash will fit. See the column on the right. In code it's Item1{{bull}} Item2{{bull}} Item3{{bull}} Item4{{bull}} Item5{{bull}} 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. | Normally, in a real box these items would be links, but this is an example. Item1Template loop detected: Template:Bull ATemplate loop detected: Template:Bull BTemplate loop detected: Template:Bull Item2Template loop detected: Template:Bull Item3Template loop detected: Template:Bull Item4Template loop detected: Template:Bull Item5Template loop detected: Template:Bull extra itemTemplate loop detected: Template:Bull ETemplate loop detected: Template:Bull 1Template loop detected: Template:Bull 2Template loop detected: Template:Bull 3Template loop detected: Template:Bull 4Template loop detected: Template:Bull 5Template loop detected: Template:Bull 6Template loop detected: Template:Bull 7Template loop detected: Template:Bull item that won't attach to prior line unless it fits in the remaining spaceTemplate loop detected: Template:Bull QTemplate loop detected: Template:Bull A slightly longer itemTemplate loop detected: Template:Bull KKTemplate loop detected: Template:Bull An obviously really even longer item that the bullet will hang at its endTemplate loop detected: Template:Bull Item6Template loop detected: Template:Bull CTemplate loop detected: Template:Bull Item7Template loop detected: Template:Bull Item8Template loop detected: Template:Bull Item9Template loop detected: Template:Bull Item10Template loop detected: Template:Bull Item11Template loop detected: Template:Bull Item12Template loop detected: Template:Bull DTemplate loop detected: Template:Bull Item13Template loop detected: Template:Bull Item14Template loop detected: Template:Bull Item15Template loop detected: Template:Bull Item16Template loop detected: Template:Bull Item17Template loop detected: Template:Bull Item18The space on the end makes sure the bullet doesn't touch the edge of the box, either |
Incorrect usage
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:
[[Salt]]{{•}}[[Pepper]] [[Salt]]{{•}} [[Pepper]]
Both of them will render exactly as before, with just one space on each side of the bullet, like this:
And it will still only line break after the bullet, like this:
But putting one or more spaces before the template will cause problems, like these examples:
[[Salt]] {{•}}[[Pepper]] [[Salt]] {{•}}[[Pepper]] [[Salt]] {{•}} [[Pepper]] [[Salt]] {{•}} [[Pepper]]
Then it will render with two spaces before the bullet and one after, like this:
And if it line breaks it might break before the bullet, like this:
TemplateData
TemplateData for Diff
The template makes a bullet. There are no optional or required parameters for this template. 'bull' or 'bullet' may be used as alternative template names.
Parameter | Description | Type | Status | |||
---|---|---|---|---|---|---|
No parameters specified |
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 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.
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: OODA WIKI:Line-break handling, explains when that happens and how to fix it.
- The bullet used is U+2022 • BULLET (•, •⧼dot-separator⧽ hex: •).
- Not to be confused with U+00B7 · MIDDOT (·, ·, ·⧼dot-separator⧽ hex: ·), used in
{{·}}
.
Redirects
Dot sizes
· | middot |
· | bold {{middot}} |
• | small bullet |
• | {{bullet}} |
• | bold bullet |
– | {{en dash}} |
— | {{em dash}} |
See also
There are several other templates with similar stream formatting purposes and such (or related) functionality:
{{·}}
– bold middot or (·){{spaced ndash}}
– en dash or "–", a short dash{{\}}
– for the occasional slash or "/" in lists (note that the template is a backslash because template names may not contain a slash){{Colorbull}}
– a colored bullet, with an optional wikilink{{Asterisk}}
– to display an asterisk character (*) at the start of a line of text{{sdot}}
or "Template:Sdot"
Wrap control templates
- You might need to handle proper word wrapping (line breaking):
- {{nowraplinks}} – Prevents wraps inside links and only allows wraps between the links and in normal text, very useful for link lists and easy to use.
- {{nowrap begin}} – Prevents wraps in both text and links. For the really tricky wrapping cases when you need full control, for instance in very complex link lists.
- For further information, see: OODA WIKI:Line-break handling – The how-to guide detailing how to handle line wrapping on OODA WIKI.
, · , · , – , or Template loop detected: Template:Spaced en dash space symbols; they can use any of these templates as a simple macro. See above and right for shortcuts editors can use to easily implement this template in articles.
Dot sizes
· | middot |
· | bold {{middot}} |
• | small bullet |
• | {{bullet}} |
• | bold bullet |
– | {{en dash}} |
— | {{em dash}} |
See also
- {{·}}, which produces a spaced bold interpunct aka middot: " · "
- {{•}}, which produces a spaced bullet point: " • "
- {{\}}, which produces a spaced forward slash: " / "
- {{en dash}}, which produces an unspaced en dash
- {{spaced en dash}}, which produces a non-breaking space, followed by an en dash, and then a breaking space
- {{em dash}}, which produces an unspaced em dash
- Non-breaking space
The base ID onto which the diff is generated.
label
This is a documentation subpage for Template:Diff.
It may contain usage information, categories and other content that is not part of the original template page.
This template is used on approximately 31,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template should not be used in citation templates such as Citation Style 1 and Citation Style 2, because it includes markup that will pollute the COinS metadata they produce; see Wikipedia:COinS. |
— | |
---|---|
Diff/doc | |
Punctuation marks | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||||||||||
In other scripts | ||||||||||||||||||||||||||||||
Related | ||||||||||||||||||||||||||||||
Category | ||||||||||||||||||||||||||||||
This is the spaced en dash space template; it renders text in the same format as the HTML markup sequence –
. The resulting text is three characters in a line in the following order:
- a non-breaking space (which cannot become a line break and will not collapse together with any normal spaces that come before the template),
- a short type of dash called an en dash), and
- one more of the same kind of non-breaking space (which will behave just like the first).
The recommended usage is to use no space before the template and no space after the template, like this:
- [[Salt]]{{snds}}[[Black pepper|Pepper]]{{snds}}[[Curry]]{{snds}}[[Saffron]]
- This will render one space on each side of the dash, and a line break will not come before one of the dashes nor will a line break come after one of the dashes as rendered here:
The template is used to connect words with an en dash but with a non-breaking space before and after the en dash. Others uses of the template "spaced en dash space" are within other templates, tables, lists, and similar things to provide a separator between items. It is also to be consistent so that the article editor can use their choice of {{bull}}, {{dot}}, {{middot}}, {{spaced en dash}}, or {{spaced en dash space}} and not have to insert the
This is a documentation subpage for Template:Diff. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 31,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
File:Cascade-protection-shackle.svg | This template is transcluded in one or more cascade-protected pages, so only administrators can edit it. |
This is the bullet template; it looks like this: [ • ]
It works like the HTML markup sequence: [ •
], that is, a non-breaking space, a bullet and a normal space.
This template is used when you want a larger bullet than a bold middot [·], but something smaller than an en dash [–].
This template's use for dotted lists is now deprecated. use {{Flatlist}} or {{Hlist}} instead; see WP:HLIST.
Normal usage
The recommended usage is to use no space before the template and one space after the template, like this:
[[Salt]]{{•}} [[Pepper]]
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:
The purpose of this is to ensure that, if the line breaks, it will do so on the right side of the bullet.
Here's an example of how it's used | |
Template Bull 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 {{bull}}, {{dot}}, {{middot}}, or {{ndash}} and not have to insert the Template loop detected: Template:Bull, · , · , or – 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 bullet (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 bullet hangs onto the prior item instead of rolling over to the next line. Notice on the end of this box, the bullet symbol "•" 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 dash will fit. See the column on the right. In code it's Item1{{bull}} Item2{{bull}} Item3{{bull}} Item4{{bull}} Item5{{bull}} 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. | Normally, in a real box these items would be links, but this is an example. Item1Template loop detected: Template:Bull ATemplate loop detected: Template:Bull BTemplate loop detected: Template:Bull Item2Template loop detected: Template:Bull Item3Template loop detected: Template:Bull Item4Template loop detected: Template:Bull Item5Template loop detected: Template:Bull extra itemTemplate loop detected: Template:Bull ETemplate loop detected: Template:Bull 1Template loop detected: Template:Bull 2Template loop detected: Template:Bull 3Template loop detected: Template:Bull 4Template loop detected: Template:Bull 5Template loop detected: Template:Bull 6Template loop detected: Template:Bull 7Template loop detected: Template:Bull item that won't attach to prior line unless it fits in the remaining spaceTemplate loop detected: Template:Bull QTemplate loop detected: Template:Bull A slightly longer itemTemplate loop detected: Template:Bull KKTemplate loop detected: Template:Bull An obviously really even longer item that the bullet will hang at its endTemplate loop detected: Template:Bull Item6Template loop detected: Template:Bull CTemplate loop detected: Template:Bull Item7Template loop detected: Template:Bull Item8Template loop detected: Template:Bull Item9Template loop detected: Template:Bull Item10Template loop detected: Template:Bull Item11Template loop detected: Template:Bull Item12Template loop detected: Template:Bull DTemplate loop detected: Template:Bull Item13Template loop detected: Template:Bull Item14Template loop detected: Template:Bull Item15Template loop detected: Template:Bull Item16Template loop detected: Template:Bull Item17Template loop detected: Template:Bull Item18The space on the end makes sure the bullet doesn't touch the edge of the box, either |
Incorrect usage
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:
[[Salt]]{{•}}[[Pepper]] [[Salt]]{{•}} [[Pepper]]
Both of them will render exactly as before, with just one space on each side of the bullet, like this:
And it will still only line break after the bullet, like this:
But putting one or more spaces before the template will cause problems, like these examples:
[[Salt]] {{•}}[[Pepper]] [[Salt]] {{•}}[[Pepper]] [[Salt]] {{•}} [[Pepper]] [[Salt]] {{•}} [[Pepper]]
Then it will render with two spaces before the bullet and one after, like this:
And if it line breaks it might break before the bullet, like this:
TemplateData
TemplateData for Diff
The template makes a bullet. There are no optional or required parameters for this template. 'bull' or 'bullet' may be used as alternative template names.
Parameter | Description | Type | Status | |||
---|---|---|---|---|---|---|
No parameters specified |
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 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.
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: OODA WIKI:Line-break handling, explains when that happens and how to fix it.
- The bullet used is U+2022 • BULLET (•, •⧼dot-separator⧽ hex: •).
- Not to be confused with U+00B7 · MIDDOT (·, ·, ·⧼dot-separator⧽ hex: ·), used in
{{·}}
.
Redirects
Dot sizes
· | middot |
· | bold {{middot}} |
• | small bullet |
• | {{bullet}} |
• | bold bullet |
– | {{en dash}} |
— | {{em dash}} |
See also
There are several other templates with similar stream formatting purposes and such (or related) functionality:
{{·}}
– bold middot or (·){{spaced ndash}}
– en dash or "–", a short dash{{\}}
– for the occasional slash or "/" in lists (note that the template is a backslash because template names may not contain a slash){{Colorbull}}
– a colored bullet, with an optional wikilink{{Asterisk}}
– to display an asterisk character (*) at the start of a line of text{{sdot}}
or "Template:Sdot"
Wrap control templates
- You might need to handle proper word wrapping (line breaking):
- {{nowraplinks}} – Prevents wraps inside links and only allows wraps between the links and in normal text, very useful for link lists and easy to use.
- {{nowrap begin}} – Prevents wraps in both text and links. For the really tricky wrapping cases when you need full control, for instance in very complex link lists.
- For further information, see: OODA WIKI:Line-break handling – The how-to guide detailing how to handle line wrapping on OODA WIKI.
, · , · , – , or Template loop detected: Template:Spaced en dash space symbols; they can use any of these templates as a simple macro. See above and right for shortcuts editors can use to easily implement this template in articles.
Dot sizes
· | middot |
· | bold {{middot}} |
• | small bullet |
• | {{bullet}} |
• | bold bullet |
– | {{en dash}} |
— | {{em dash}} |
See also
- {{·}}, which produces a spaced bold interpunct aka middot: " · "
- {{•}}, which produces a spaced bullet point: " • "
- {{\}}, which produces a spaced forward slash: " / "
- {{en dash}}, which produces an unspaced en dash
- {{spaced en dash}}, which produces a non-breaking space, followed by an en dash, and then a breaking space
- {{em dash}}, which produces an unspaced em dash
- Non-breaking space
Text to display as link (optional)—no label will generate a numbered link as the label.
|diffonly=yes
This is a documentation subpage for Template:Diff.
It may contain usage information, categories and other content that is not part of the original template page.
This template is used on approximately 31,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template should not be used in citation templates such as Citation Style 1 and Citation Style 2, because it includes markup that will pollute the COinS metadata they produce; see Wikipedia:COinS. |
— | |
---|---|
Diff/doc | |
Punctuation marks | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||||||||||
In other scripts | ||||||||||||||||||||||||||||||
Related | ||||||||||||||||||||||||||||||
Category | ||||||||||||||||||||||||||||||
This is the spaced en dash space template; it renders text in the same format as the HTML markup sequence –
. The resulting text is three characters in a line in the following order:
- a non-breaking space (which cannot become a line break and will not collapse together with any normal spaces that come before the template),
- a short type of dash called an en dash), and
- one more of the same kind of non-breaking space (which will behave just like the first).
The recommended usage is to use no space before the template and no space after the template, like this:
- [[Salt]]{{snds}}[[Black pepper|Pepper]]{{snds}}[[Curry]]{{snds}}[[Saffron]]
- This will render one space on each side of the dash, and a line break will not come before one of the dashes nor will a line break come after one of the dashes as rendered here:
The template is used to connect words with an en dash but with a non-breaking space before and after the en dash. Others uses of the template "spaced en dash space" are within other templates, tables, lists, and similar things to provide a separator between items. It is also to be consistent so that the article editor can use their choice of {{bull}}, {{dot}}, {{middot}}, {{spaced en dash}}, or {{spaced en dash space}} and not have to insert the
This is a documentation subpage for Template:Diff. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 31,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
File:Cascade-protection-shackle.svg | This template is transcluded in one or more cascade-protected pages, so only administrators can edit it. |
This is the bullet template; it looks like this: [ • ]
It works like the HTML markup sequence: [ •
], that is, a non-breaking space, a bullet and a normal space.
This template is used when you want a larger bullet than a bold middot [·], but something smaller than an en dash [–].
This template's use for dotted lists is now deprecated. use {{Flatlist}} or {{Hlist}} instead; see WP:HLIST.
Normal usage
The recommended usage is to use no space before the template and one space after the template, like this:
[[Salt]]{{•}} [[Pepper]]
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:
The purpose of this is to ensure that, if the line breaks, it will do so on the right side of the bullet.
Here's an example of how it's used | |
Template Bull 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 {{bull}}, {{dot}}, {{middot}}, or {{ndash}} and not have to insert the Template loop detected: Template:Bull, · , · , or – 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 bullet (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 bullet hangs onto the prior item instead of rolling over to the next line. Notice on the end of this box, the bullet symbol "•" 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 dash will fit. See the column on the right. In code it's Item1{{bull}} Item2{{bull}} Item3{{bull}} Item4{{bull}} Item5{{bull}} 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. | Normally, in a real box these items would be links, but this is an example. Item1Template loop detected: Template:Bull ATemplate loop detected: Template:Bull BTemplate loop detected: Template:Bull Item2Template loop detected: Template:Bull Item3Template loop detected: Template:Bull Item4Template loop detected: Template:Bull Item5Template loop detected: Template:Bull extra itemTemplate loop detected: Template:Bull ETemplate loop detected: Template:Bull 1Template loop detected: Template:Bull 2Template loop detected: Template:Bull 3Template loop detected: Template:Bull 4Template loop detected: Template:Bull 5Template loop detected: Template:Bull 6Template loop detected: Template:Bull 7Template loop detected: Template:Bull item that won't attach to prior line unless it fits in the remaining spaceTemplate loop detected: Template:Bull QTemplate loop detected: Template:Bull A slightly longer itemTemplate loop detected: Template:Bull KKTemplate loop detected: Template:Bull An obviously really even longer item that the bullet will hang at its endTemplate loop detected: Template:Bull Item6Template loop detected: Template:Bull CTemplate loop detected: Template:Bull Item7Template loop detected: Template:Bull Item8Template loop detected: Template:Bull Item9Template loop detected: Template:Bull Item10Template loop detected: Template:Bull Item11Template loop detected: Template:Bull Item12Template loop detected: Template:Bull DTemplate loop detected: Template:Bull Item13Template loop detected: Template:Bull Item14Template loop detected: Template:Bull Item15Template loop detected: Template:Bull Item16Template loop detected: Template:Bull Item17Template loop detected: Template:Bull Item18The space on the end makes sure the bullet doesn't touch the edge of the box, either |
Incorrect usage
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:
[[Salt]]{{•}}[[Pepper]] [[Salt]]{{•}} [[Pepper]]
Both of them will render exactly as before, with just one space on each side of the bullet, like this:
And it will still only line break after the bullet, like this:
But putting one or more spaces before the template will cause problems, like these examples:
[[Salt]] {{•}}[[Pepper]] [[Salt]] {{•}}[[Pepper]] [[Salt]] {{•}} [[Pepper]] [[Salt]] {{•}} [[Pepper]]
Then it will render with two spaces before the bullet and one after, like this:
And if it line breaks it might break before the bullet, like this:
TemplateData
TemplateData for Diff
The template makes a bullet. There are no optional or required parameters for this template. 'bull' or 'bullet' may be used as alternative template names.
Parameter | Description | Type | Status | |||
---|---|---|---|---|---|---|
No parameters specified |
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 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.
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: OODA WIKI:Line-break handling, explains when that happens and how to fix it.
- The bullet used is U+2022 • BULLET (•, •⧼dot-separator⧽ hex: •).
- Not to be confused with U+00B7 · MIDDOT (·, ·, ·⧼dot-separator⧽ hex: ·), used in
{{·}}
.
Redirects
Dot sizes
· | middot |
· | bold {{middot}} |
• | small bullet |
• | {{bullet}} |
• | bold bullet |
– | {{en dash}} |
— | {{em dash}} |
See also
There are several other templates with similar stream formatting purposes and such (or related) functionality:
{{·}}
– bold middot or (·){{spaced ndash}}
– en dash or "–", a short dash{{\}}
– for the occasional slash or "/" in lists (note that the template is a backslash because template names may not contain a slash){{Colorbull}}
– a colored bullet, with an optional wikilink{{Asterisk}}
– to display an asterisk character (*) at the start of a line of text{{sdot}}
or "Template:Sdot"
Wrap control templates
- You might need to handle proper word wrapping (line breaking):
- {{nowraplinks}} – Prevents wraps inside links and only allows wraps between the links and in normal text, very useful for link lists and easy to use.
- {{nowrap begin}} – Prevents wraps in both text and links. For the really tricky wrapping cases when you need full control, for instance in very complex link lists.
- For further information, see: OODA WIKI:Line-break handling – The how-to guide detailing how to handle line wrapping on OODA WIKI.
, · , · , – , or Template loop detected: Template:Spaced en dash space symbols; they can use any of these templates as a simple macro. See above and right for shortcuts editors can use to easily implement this template in articles.
Dot sizes
· | middot |
· | bold {{middot}} |
• | small bullet |
• | {{bullet}} |
• | bold bullet |
– | {{en dash}} |
— | {{em dash}} |
See also
- {{·}}, which produces a spaced bold interpunct aka middot: " · "
- {{•}}, which produces a spaced bullet point: " • "
- {{\}}, which produces a spaced forward slash: " / "
- {{en dash}}, which produces an unspaced en dash
- {{spaced en dash}}, which produces a non-breaking space, followed by an en dash, and then a breaking space
- {{em dash}}, which produces an unspaced em dash
- Non-breaking space
Displays the page comparisons only (optional)—parameter name required if used.
Only the diff parameter is required; all other parameters are optional. Omitted parameters must be empty (by using a double pipe). You can also use the named parameters title
, diff
, oldid
, and label
.
Helper subtemplate
In order to make this template simpler to use the helper subtemplate {{Diff/translator}} is available, to be used only in the preview window.
- Syntax
- {{Diff/translator
|label |url=diff URL}}
For instance, imagine you want to refer to the following diff URL: https://en.OODA WIKI.org/w/index.php?title=Main_Page&diff=139993&oldid=139992&diffonly=1
; you only need to transcribe that URL in the {{Diff/translator}} subtemplate and produce a preview, without saving the page:
- {{Diff/translator
|Sic exorsi sumus |url=https://en.OODA WIKI.org/w/index.php?title=Main_Page&diff=139993&oldid=139992&diffonly=1}}
Now copy the code generated (Template:Diff/translator
) into the edit window where {{Diff/translator}} was and publish the page.
Examples
Below each example in the left-hand column is the pseudocode for that example in brown italics
and indented. Elements that should be entered literally are in Template:Uu
. When a parameter is left blank, the resulting two adjacent pipes are underlined (but not bolded): ||
.
Code | Output |
---|---|
{{Template:Uu|Main Page|prev|204901573|Diff between a numbered version and the previous version}}
|
Diff between a numbered version and the previous version
This is the form that would be used most often.
|
{{Template:Uu|Foobar|616706711|616706707|Diff between two numbered versions of a page}}
|
Diff between two numbered versions of a page
|
{{Template:Uu||616706711|616706707|Diff between two numbered versions of a page without title parameter}}
|
Diff between two numbered versions of a page without title parameter
|
{{Template:Uu|OODA WIKI:Pagediff|204934693|204901573|Diff between two numbered versions of a page in OODA WIKI namespace}}
|
Diff between two numbered versions of a page in OODA WIKI namespace
|
{{Template:Uu|Main Page|next|204901573|Diff between a numbered version and the subsequent version}}
|
Diff between a numbered version and the subsequent version
|
{{Template:Uu|Main Page|cur|204901573|Diff between a numbered version and the current version of a page}}
|
Diff between a numbered version and the current version of a page
|
{{Template:Uu|Main Page|cur||Diff showing the most recent change to a page}}
|
Diff showing the most recent change to a page
|
{{Template:Uu|Main Page||204901573|A link to a numbered version of a page}}
|
A link to a numbered version of a page
|
{{Template:Uu|Main Page|204901573|202506579|Comparison display without page display of two numbered versions of a page |diffonly=yes}}
|
Comparison display without page display of two numbered versions of a page
|
TemplateData
TemplateData for Diff
A template that is intended to be useful for creating links to diffs; that is, links to pages that show the differences between two versions of a wiki page.
Parameter | Description | Type | Status | |
---|---|---|---|---|
title | title page 1 | The title of the page. | Page name | optional |
Diff | diff 2 | The ID or keyword that is used against the base ID. Possible keywords are:
| Line | required |
Oldid | oldid 3 | The base ID onto which the diff is generated. Some number like "442212827" (without the quotes). | Number | optional |
Label | label 4 | Text to display as link. No label will give a numbered link. | Line | optional |
Diffonly | diffonly | Displays the page comparisons only. If you use this, the value should be "yes" (without the quotes). | Line | optional |
See also
- {{Oldid}} – simplifies the case for linking to a known old version
- {{Diff2}} – same as {{Diff}}, but assumes a diff between the given revision and the one immediately before
- {{Diff3}} – same as {{Diff2}}, but does not support section links
- {{Diff4}}
- {{URL to diff}} – takes a diff URL and makes a {{Diff}} template
- {{Diffsandbox}} – compares a given page with the sandbox version
- {{DiffPages}} – accepts two pagenames (no id's needed)
- {{Querylink}} – generic template to construct query strings
- diff utility – syntax highlight on wiki pages with mw:Extension:SyntaxHighlight GeSHi
- User:Scottywong/diffconverter, a tool for converting from raw form
- Special:Diff serves a similar purpose; see Help:Wiki markup#Linking to old revisions of pages, diffs, and specific history pages.
- {{TextDiff{{---}}{{---}}{{---}}{{---}}{{---}}{{---}}{{---}}{{---}}{{---}}{{---}}{{---}}{{---}}{{---}}{{---}}{{---}}{{---}}{{---}}{{---}}{{---}}{{---}}}}
- {{Url to title}}