Teamplaid:Elc
Coltas
[[{{{1}}}]]
This formats an example wikilink to show how it would be entered in wiki markup. The first parameter is the link destination. E.g. {{Elc|Cookie}} renders as [[Cookie]], the wiki markup for the wikilink Cookie. If a second parameter is given, a piped link is shown. E.g. {{Elc|Cookie|Biscuit}} renders as [[Cookie|Biscuit]], the markup for the wikilink Biscuit.
A third parameter, if supplied, is included as a suffix to demonstrate blended links; {{Elc|Cookie||s}} produces [[Cookie]]s, the wiki markup for Cookies.
The short name {{Elc}} ("example link, code") is chosen to be similar to the {{Tlc}} template which produces similar output, but for template links.
See also
[deasaich]Other formatting templates
[deasaich]| Code example | Effect | Notes |
|---|---|---|
| {{Tl2|Hatnote|lang=fr}} | {{Hatnote}} | Supports linking to sister projects (e.g., fr:Hatnote) |
| {{Tlu|User:Ahunt/SSHFS}} | {{User:Ahunt/SSHFS}} | Supports linking to any namespace |
| {{Demo|<nowiki></nowiki>}} | {{Hatnote|lang=fr|Some text}} |
Shows code and example |
| {{Xpd|Hatnote|Some Hatnote text}} | "{{Hatnote|Some Hatnote text}}" gives "" [1] |
Shows code, example and a link to expand the template code |
| {{Tln|Hatnote}} | Template:Hatnote | Produces a normal link to the template |
| {{Elc|Template:Hatnote}} {{Elc|Template:Hatnote|Hatnote}} |
[[Template:Hatnote]][[Template:Hatnote|Hatnote]] |
Formats wikilink, with optional piped link text and blended suffix |
| {{Ml|Example|hello}} | {{#invoke:Example|hello}} | Counterpart to {{Tl}} for linking to Lua modules |
| {{Mlx|Example|hello}} | {{#invoke:Example|hello}} |
Counterpart to {{Tlx}} for linking to Lua modules |
| {{Para|title|<var>book title</var>}} | title=book title | Formats template parameters for display, with or without values |
| {{Sclx|LASTING}} | [[w:en:WP:LASTING]] |
Takes a shortcut suffix in project namespace and displays it with brackets and the WP: alias in a <code>...</code> Tag.
|
| {{Tag|ref}} {{Xtag|templatedata}} |
<ref>...</ref><templatedata> |
Formats [X]HTML tags; can add content, choose opening, closing, or self-closing |
| {{Dtl|Ping project}} | {{d:Ping project}} | Wikidata counterpart to {{Tl}} |
| {{Pf|If}} {{Pf|If|Other formatting templates|true|false}} |
{{#If}} {{#If:{{{1}}}|true|false}} |
Parser function equivalent to {{Tl}} |
}}
| The above documentation is transcluded from Teamplaid:Elc/documentation. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /documentation subpage. Subpages of this template. |