Template:Emailentry/doc
Usage
{{emailentry}} is designed to be used for entering e-mail addresses as text, e.g. into tables, lists or as inline text. It it also meant to be used as a standardizing tool on pages and within groups of pages, where the user's enter their own e-mail addresses. All options but one can be used to enter an e-mail address without making it immediately recognizable to scanner-bots.
Parameters
There are 4 parameters, 2 unnamed and 2 named, none of which is required. If no parameters are specified, the template will display an example address.
Parameter | Description | Default value |
---|---|---|
1 (unnamed) |
First part of the address | firstname.surname |
2 (unnamed) |
Second part of the address | example.moz |
at |
Style of displaying the "AT" | ![]() |
text |
Custom text for "AT" | null (dependant on the parameter at=)
|
Syntax
The template's syntax is
{{emailentry|first part|second part|at= |text= }}
Optional parameters
1
- Address part before the @
The first address part, i.e. the part preceding the at-symbol (@). Enter it with all the dots, underscores, etc. that your address contains.
If left out, the default value is "firstname.surname".
- Example
- example.exampleton
- example-andrew.exampleton
- example_exampleton
- Note
- This parameter must be placed before the 2nd parameter.
- Usage
{{emailentry|1}}
2
- Address part after the @
The second address part, i.e. the part following the at-symbol (@). Enter it with all the dots, underscores, etc. that your address contains.
If left out, the default value is "example.moz".
- Example
- domain.moz
- domain-upon-avon.moz
- domain_server.moz
- Note
- This parameter must be placed after the 1st parameter.
- Usage
{{emailentry|1|2}}
at
- Presentation of the AT part
There are a number of way, in which you can display the at-symbol (@) in a textual e-mail address. By using the values in the table below, you wall be able to regulate how the concept of @ is displayed in the address.
By default, the value is "", i.e. an image of an at-symbol.
- Note
- If one of the values for entering custom text is used, you must also specify the parameter
text=
(see below).
- Usage
{{emailentry|1|2|at=value}}
- Available values for the parameter "at="
Value | Displays | Notes |
---|---|---|
uc | AT | No spaces between this and the surrounding text |
lc | at | |
ucs | AT | Enclosed in non-breaking spaces |
lcs | at | |
ucb | [AT] | In brackets, no spaces between this and the surrounding text |
lcb | [at] | |
ucbs | [AT] | In brackets, enclosed in non-breaking spaces |
lcbs | [at] | |
ucp | (AT) | In parentheses, no spaces between this and the surrounding text |
lcp | (at) | |
ucps | (AT) | In parentheses, enclosed in non-breaking spaces |
lcps | (at) | |
@ or at | @ | NB! Standard at-symbol, no spaces |
@s or ats | @ | NB! Standard at-symbol, enclosed in non-breaking spaces |
t | custom text | No spaces between this and the surrounding text |
ts | custom text | Enclosed in non-breaking spaces |
tb | [custom text] | In brackets, no spaces between this and the surrounding text |
tbs | [custom text] | In brackets, enclosed in non-breaking spaces |
tp | (custom text) | In parentheses, no spaces between this and the surrounding text |
tps | (custom text) | In parentheses, enclosed in non-breaking spaces |
text
- Custom text for presenting the AT part
If you want to use something other than the preset ways of presenting the AT part, you may specify your own, custom text.
- Note
- This parameter can only be used together with the appropriate values for the parameter
at=
(see the table above). - These values are t, ts, tb, tbs, tp and tps.
- Usage
{{emailentry|1|2|at=value|text=custom text}}
Examples
Correct use
Case | What you type | What you see | Notes |
---|---|---|---|
No parameters | {{emailentry}} |
firstname.surname![]() |
|
1st and 2nd params | {{emailentry|gustav.vasa|16thcentury.se}} |
gustav.vasa![]() |
|
@ | {{emailentry|gustav.vasa|16thcentury.se}} |
gustav.vasa@16thcentury.se | |
@ with spaces | {{emailentry|gustav.vasa|16thcentury.se}} |
gustav.vasa @ 16thcentury.se | |
AT | {{emailentry|gustav.vasa|16thcentury.se}} |
gustav.vasaAT16thcentury.se | |
AT with spaces | {{emailentry|gustav.vasa|16thcentury.se}} |
gustav.vasa AT 16thcentury.se | |
[at] | {{emailentry|gustav.vasa|16thcentury.se}} |
gustav.vasa[at]16thcentury.se | |
[at] with spaces | {{emailentry|gustav.vasa|16thcentury.se}} |
gustav.vasa [at] 16thcentury.se | |
(snabel-a) | {{emailentry|gustav.vasa|16thcentury.se}} |
gustav.vasa @ 16thcentury.se | |
(snabel-a) with spaces | {{emailentry|gustav.vasa|16thcentury.se}} |
gustav.vasa @ 16thcentury.se |