Difference between revisions of "Template:Ellipsis/doc"

From Nynorn
Jump to navigation Jump to search
(Undo revision 6111943 by Billinghurst (talk) - undiscussed decision)
m (25 revisions imported: Import templates for formatting Jakobsen snippets)
 
(13 intermediate revisions by 4 users not shown)
Line 2: Line 2:
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
  
=== Usage ===
+
== Usage ==
The existence of this template has not been discussed, and the consequences have not been examined, usage is '''not recommended'''...
+
This template is not universally accepted, and in some cases the ellipsis character (&amp;hellip; <code>&hellip;</code>) should be used instead. Please consider conventions presented in the [[Wikisource:Style guide]] before deciding which to use.
  
 
The intention is replace an ellipsis with single, non-breaking spaces between the ellipsis marks.
 
The intention is replace an ellipsis with single, non-breaking spaces between the ellipsis marks.
Line 15: Line 15:
  
 
<pre>
 
<pre>
It is a worse disgrace. {{...}}" her full rage burst out at last, "{{...}} a worse disgrace than the hospitals at Scutari."
+
It is a worse disgrace{{...|4}}" her full rage burst out at last, "{{...}} a worse disgrace than the hospitals at Scutari."
 
</pre>
 
</pre>
 
will render as:
 
will render as:
:It is a worse disgrace. {{...}}" her full rage burst out at last, "{{...}} a worse disgrace than the hospitals at Scutari."
+
:It is a worse disgrace{{...|4}}" her full rage burst out at last, "{{...}} a worse disgrace than the hospitals at Scutari."
  
==== Multiple dots ====
+
=== Multiple dots ===
 
Use the first parameter to control the number of dots.
 
Use the first parameter to control the number of dots.
  
Line 31: Line 31:
 
:Dots are believed by many writers of our day to be a good substitute for effective writing. They are certainly an easy one. Let us have a few more{{...|6}}
 
:Dots are believed by many writers of our day to be a good substitute for effective writing. They are certainly an easy one. Let us have a few more{{...|6}}
  
<!-- uncomment as necessary
+
=== Different characters ===
=== See also ===
+
If a different symbol is used instead of the period ("."), add a second parameter to change the symbol. If the first parameter is left empty, it defaults to 1.
-->
+
 
 +
{{doc example|content=
 +
<pre>
 +
Some writers use asterisks {{...|3|*}} for their ellipses instead of periods.
 +
</pre>
 +
will render as:
 +
:Some writers use asterisks {{...|3|*}} for their ellipses instead of periods.
 +
}}
 +
 
 +
=== First character ===
 +
 
 +
Sometimes the first character is different (e.g. a comma):
 +
 
 +
{{doc example|content=
 +
<pre>
 +
my expectation being too great{{...|first=,|3}} and my having a book I believe did spoil it a little.
 +
</pre>
 +
my expectation being too great{{...|first=,|3}} and my having a book I believe did spoil it a little.
 +
}}
 +
 
 +
In this case, the comma is included in the "no-wrap" container so it will stay together with the  ellipsis dots. {{tl|,...}} is a shortcut for <code><nowiki>{{...|first=,}}</nowiki></code>
 +
 
 +
== See also ==
 +
* {{tl|***}} for a centered ellipsis using asterisk symbols
  
 
<includeonly>
 
<includeonly>

Latest revision as of 23:27, 15 March 2021

Template:Mbox

Usage

This template is not universally accepted, and in some cases the ellipsis character (&hellip; ) should be used instead. Please consider conventions presented in the Wikisource:Style guide before deciding which to use.

The intention is replace an ellipsis with single, non-breaking spaces between the ellipsis marks.

The following shortcuts have been created:

{{...}} The keyboard characters for full stops/periods, unspaced
{{. . .}} The keyboard characters for full stops/periods, with single spaces
{{}} The ellipsis glyph

Example:

It is a worse disgrace{{...|4}}" her full rage burst out at last, "{{...}} a worse disgrace than the hospitals at Scutari."

will render as:

It is a worse disgrace. . ." her full rage burst out at last, ". . . a worse disgrace than the hospitals at Scutari."

Multiple dots

Use the first parameter to control the number of dots.

Example:

Dots are believed by many writers of our day to be a good substitute for effective writing. They are certainly an easy one. Let us have a few more{{...|6}}

will render as:

Dots are believed by many writers of our day to be a good substitute for effective writing. They are certainly an easy one. Let us have a few more. . .

Different characters

If a different symbol is used instead of the period ("."), add a second parameter to change the symbol. If the first parameter is left empty, it defaults to 1.

Example

Some writers use asterisks {{...|3|*}} for their ellipses instead of periods.

will render as:

Some writers use asterisks . . . for their ellipses instead of periods.

First character

Sometimes the first character is different (e.g. a comma):

Example

my expectation being too great{{...|first=,|3}} and my having a book I believe did spoil it a little.

my expectation being too great. . . and my having a book I believe did spoil it a little.

In this case, the comma is included in the "no-wrap" container so it will stay together with the ellipsis dots. {{,...}} is a shortcut for {{...|first=,}}

See also

  • {{***}} for a centered ellipsis using asterisk symbols