Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Special pages
Random page
Wiki Discord
Contents
Neighbors
Galaxy
> Hexia
> Norvan
> Pashah
> Taffeh
Creatures
> Insects
> Fishes
> Shore-Dwellers
Items
> Dishes
> Furniture
Game Systems
> Dress Up
> Luca Arbor
> Loomix Footprints
> Loomix Vehicle Services
> Loomix Homes
Search
Search
Appearance
Log in
Personal tools
Log in
Editing
Template
:
Link Label/doc
Template
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Documentation/Header}} {{Lua|Link Label}} Creates a link from the input text in first argument. If the input is already a link and has a label ({{L|((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. {{#invoke:Link Label|getTerms}} ==Syntax== {{T|Link Label|v1=text}} * {{F|nolink}} — insert as 1 to return as plain text * {{F|2}} — insert as {{F|,}} or {{F|.}} to append it to the text, while following American English rules * {{F|comma}} — insert as 1 to append a comma to the text, while following American English rules * {{F|dot}} — insert as 1 to append a dot to the text, while following American English rules * {{F|commaspc}} — insert as 1 to append a comma and a space to the text, while following American English rules * {{F|dotspc}} — insert as 1 to append a dot and a space to the text, while following American English rules ==Examples== {{T|Link Label|_Y_=1}}<br> {{T|Link Label|Genshin Impact Wiki|_Y_=1}}<br> {{T|Link Label|[[Genshin Impact Wiki]]|_Y_=1}}<br> {{T|Link Label|[[Genshin Impact Wiki|Main Page]]|_Y_=1}}<br> {{T|Link Label|[[Characters]], [[Weapons]], and [[Artifacts]]|_Y_=1}}<br> {{T|Link Label|Wishes (Quest)|_Y_=1}}<br> {{T|Link Label|Liyue (Soundtrack)|_Y_=1}}<br> {{T|Link Label|"Page with Quotes"|dotspc=1|_Y_=1}}(ending text)<br> {{T|Link Label|"Page with Quotes"|commaspc=1|_Y_=1}}(ending text)<br> {{T|Link Label|"Page with Quotes"|dot=1|_Y_=1}}<br> {{T|Link Label|"Page with Quotes"|comma=1|_Y_=1}}<br> {{T|Link Label|"Page with Quotes"|,|_Y_=1}}<br> {{T|Link Label|"Page with Quotes"|.|_Y_=1}}<br> {{T|Link Label|Trixie|dot=1|_Y_=1}}<br> {{T|Link Label|Trixie|comma=1|_Y_=1}}<br> {{T|Link Label|Trixie|,|_Y_=1}}<br> {{T|Link Label|Trixie|.|_Y_=1}}<br> {{T|Link Label|Trixie|.|nolink=1|_Y_=1}}<br> ==Template Data== <templatedata> { "params": { "1": { "label": "Text", "description": "Text to add link and label with terms replaced.", "type": "string", "required": true }, "2": { "label": "Suffix", "description": "Append a comma (,) or a dot (.) to the end of the link, by inserting which is wanted, while following American English rules.", "example": ",", "type": "string" }, "commaspc": { "label": "Suffix comma and space", "description": "Append a comma and a space to the link while following American English rules", "type": "boolean" }, "comma": { "label": "Suffix comma", "description": "Append a comma to the end of the link, while following American English rules.", "type": "boolean" }, "dotspc": { "label": "Suffix dot and space", "description": "Append a dot and a space to the link while following American English rules", "type": "boolean" }, "dot": { "label": "Suffix dot", "description": "Append a dot to the end of the link, while following American English rules.", "type": "boolean" } }, "description": "Creates a link from the input text.", "format": "inline", "paramOrder": [ "1", "2", "comma", "commaspc", "dot", "dotspc" ] } </templatedata>
Summary:
Please note that all contributions to The Petit Planet Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
Petit Planet Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Preview page with this template
Below are commonly used wikitext from
MediaWiki:Edittools
. Click on any to insert them in the edit box.
File Pages
==Summary==
==Licensing==
{{Fairuse}}
{{File|}}
Dynamic Page List
¦
²
«
»
²{¦}²
«»
«/»
«!----»
Array in DPL
¹
^2{
}^2
^2{¹}^2
Parser Functions
{{#if:||}}
{{#if:<condition>|<result if true>|<result if false>}}
{{#ifeq:|||}}
{{#ifeq:<text1>|<text2>|<result if text1=text2>|<result if text1≠text2>}}
{{#expr:}}
{{#expr:<mathematical expression>}}
{{#switch:||#default=}}
{{#switch:<text1>|<text2>=<result if text1=text2>|<text3>=<result if text1=text3>|#default=<result if no valid match>}}
{{#replace:||}}
{{#replace:<text1>|<plain text to find in text1>|<plain text to insert in place of the text found>}}
{{#titleparts:}}
{{#replace:<page name>}}
{{#tag:|}}
{{#tag:<name of html tag>|<content inside html tag>}}
Markup
{{}}
|
[]
[[]]
[[Category:]]
#REDIRECT [[]] [[Category:Redirect Pages]]
<code></code>
<includeonly></includeonly>
<noinclude></noinclude>
<nowiki></nowiki>
<!---->
<br>
§
Notices
{{Stub|}}
{{Stub Dialogue}}
{{Upcoming}}
{{Under Construction}}
{{Placeholder|}}
Magic Words
{{!}}
{{formatnum:}}
{{lc:}}
{{uc:}}
{{PAGENAME}}
{{FULLPAGENAME}}
{{ROOTPAGENAME}}
{{BASEPAGENAME}}
{{SUBPAGENAME}}
{{DISPLAYTITLE:|noreplace}}
__TOC__
__NOTOC__
__EXPECTUNUSEDCATEGORY__
__HIDDENCAT__
HTML Entities
—
,
­
Pages included on this page:
Template:Array
(
edit
)
Template:Documentation/Header
(
edit
)
Template:Documentation/styles.css
(
edit
)
Template:F
(
edit
)
Template:L
(
edit
)
Template:Link Label
(
edit
)
Template:Lua
(
edit
)
Template:MessageBox
(
edit
)
Template:Namespace
(
edit
)
Template:T
(
edit
)
Module:Arguments
(
edit
)
Module:Arguments/i18n
(
edit
)
Module:Array
(
edit
)
Module:Common/i18n
(
edit
)
Module:Config
(
edit
)
Module:Documentation
(
edit
)
Module:Documentation/config
(
edit
)
Module:Documentation/i18n
(
edit
)
Module:Entrypoint
(
edit
)
Module:Exists
(
edit
)
Module:Fallbacklist
(
edit
)
Module:Feature
(
edit
)
Module:Formatting
(
edit
)
Module:I18n
(
edit
)
Module:Languages
(
edit
)
Module:Link Label
(
edit
)
Module:Mbox
(
edit
)
Module:Mbox/i18n
(
edit
)
Module:Namespace detect
(
edit
)
Module:Namespace detect/config
(
edit
)
Module:Namespace detect/data
(
edit
)
Module:TableTools
(
edit
)
Module:Yesno
(
edit
)
Search
Search
Editing
Template
:
Link Label/doc
Add topic