Template:L/doc: Difference between revisions
Jump to navigation
Jump to search
Created page with "{{Documentation/Header}} {{Lua|Formatting}} {{Main|Template:F}} This template creates a fake link in the form of how a link would be added in wikitext in source editor. ==Syntax== See Template Data for extra functions.<br /> {{T|L|v1=Page Name|v2=Link Label}} ==Examples== ;No Link Label {{T|L|Satchels}} yields {{L|Satchels}} ;With Link Label {{T|L|Satchels|Satchel}} yields {{L|Satchels|Satchel}} ==Template Data== <templatedata> { "params": { "te..." |
(No difference)
|
Latest revision as of 09:27, 10 June 2025
This is the documentation page for L. It contains usage information, categories, and other content not part of the original template page. | ||
|---|---|---|
| Main | Documentation | Usage |
This template uses Module:Formatting, a script written in Lua.
Main page: Template:F
This template creates a fake link in the form of how a link would be added in wikitext in source editor.
Syntax
See Template Data for extra functions.
{{L|Page Name|Link Label}}
Examples
- No Link Label
{{L|Satchels}} yields [[Satchels]]
- With Link Label
{{L|Satchels|Satchel}} yields [[Satchels|Satchel]]
Template Data
Template for displaying fake inwiki links as they would show in source editor mode.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Text | text 1 | Main input to display, represents the page to link in link format and the url to link to in external link format. | String | required |
| Label | label 2 | Text to add as label in the link and external link formats. | String | optional |
| Bold | bold b | Option for bold formatting. | Boolean | optional |
| Italic | italic i | Option for italic formatting. | Boolean | optional |
| Underline | underline u | Option for underline formatting. | Boolean | optional |
| Ref Tag | ref r | Option for adding <ref></ref> tags. | Boolean | optional |
| NoWiki | nowiki nw | Option for adding <nowiki></nowiki> tags. | Boolean | optional |