Template:Link Label/doc
This is the documentation page for Link Label. It contains usage information, categories, and other content not part of the original template page. | ||
|---|---|---|
| Main | Documentation | Usage |
Creates a link from the input text in first argument.
If the input is already a link and has a label ([[link|label]]), then the unmodified input is returned.
If the input contains multiple links, then the unmodified input is returned.
If the input text contains any of the following, including a single space before, then a label is added with the text removed.
(Quest)(Chapter)(Act)(Archon Quest)(Story Quest)(World Quest)(Hangout Event)(Event Quest)(Event Chapter)(Event Act)(Commission)(Soundtrack)(Album)(Event)(NPC)(Furnishing)(Subarea)(Area)(Subregion)(Domain)(Quest Domain)(Instance)(Footprint)(Character Card)(Character Card Skill)(Event Card)(Equipment Card)(Material)
Syntax
edit{{Link Label|text}}
- nolink — insert as 1 to return as plain text
- 2 — insert as , or . to append it to the text, while following American English rules
- comma — insert as 1 to append a comma to the text, while following American English rules
- dot — insert as 1 to append a dot to the text, while following American English rules
- commaspc — insert as 1 to append a comma and a space to the text, while following American English rules
- dotspc — insert as 1 to append a dot and a space to the text, while following American English rules
Examples
edit{{Link Label}} yields:
{{Link Label|Genshin Impact Wiki}} yields: Genshin Impact Wiki
{{Link Label|[[Genshin Impact Wiki]]}} yields: Genshin Impact Wiki
{{Link Label|[[Genshin Impact Wiki|Main Page]]}} yields: Main Page
{{Link Label|[[Characters]], [[Weapons]], and [[Artifacts]]}} yields: Characters, Weapons, and Artifacts
{{Link Label|Wishes (Quest)}} yields: Wishes
{{Link Label|Liyue (Soundtrack)}} yields: Liyue
{{Link Label|"Page with Quotes"|dotspc = 1}} yields: "Page with Quotes." (ending text)
{{Link Label|"Page with Quotes"|commaspc = 1}} yields: "Page with Quotes," (ending text)
{{Link Label|"Page with Quotes"|dot = 1}} yields: "Page with Quotes."
{{Link Label|"Page with Quotes"|comma = 1}} yields: "Page with Quotes,"
{{Link Label|"Page with Quotes"|,}} yields: "Page with Quotes,"
{{Link Label|"Page with Quotes"|.}} yields: "Page with Quotes."
{{Link Label|Trixie|dot = 1}} yields: Trixie.
{{Link Label|Trixie|comma = 1}} yields: Trixie,
{{Link Label|Trixie|,}} yields: Trixie,
{{Link Label|Trixie|.}} yields: Trixie.
{{Link Label|Trixie|.|nolink = 1}} yields: Trixie.
Template Data
editCreates a link from the input text.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Text | 1 | Text to add link and label with terms replaced. | String | required |
| Suffix | 2 | Append a comma (,) or a dot (.) to the end of the link, by inserting which is wanted, while following American English rules.
| String | optional |
| Suffix comma | comma | Append a comma to the end of the link, while following American English rules. | Boolean | optional |
| Suffix comma and space | commaspc | Append a comma and a space to the link while following American English rules | Boolean | optional |
| Suffix dot | dot | Append a dot to the end of the link, while following American English rules. | Boolean | optional |
| Suffix dot and space | dotspc | Append a dot and a space to the link while following American English rules | Boolean | optional |