Teamplaid:Lt/documentation
Coltas
| This is a documentation subpage for Teamplaid:Lt. It contains usage information, categories and other content that is not part of the original teamplaid page. |
This template and the other related templates listed below produce a series of links for a specified page that is generally, though not always, of the form:
- Page (edit | talk | history | links | watch | logs)
The six links are:
edit– edit the page;talk– access its talk page ;history– access its edit history;links– access the what links here feature;watch– add the page to one's watchlist; andlog– access its logs.
The major difference between the templates is the namespace of the page to which it is applied.
- General:
- Teamplaid:Pagelinks (deasaich | deasaich | eachdraidh | ceanglaichean | faire | logaichean) creates links for any page in any namespace.
- Teamplaid:Ln (deasaich | deasbaireachd | eachdraidh | ceanglaichean | faire | logaichean) creates links for pages in any subject namespace.
- Teamplaid:Lnt (deasaich | deasbaireachd | eachdraidh | ceanglaichean | faire | logaichean) creates links for pages in any talk namespace.
Ùsaid - Usage
[deasaich]| Namespace | Link to subject page | Link to talk page |
|---|---|---|
| General | {{Pagelinks|FULL PAGE NAME}} |
Same as for subject page |
| {{Ln|NAMESPACE|PAGE NAME}} | {{Lnt|NAMESPACE|PAGE NAME}} | |
| Article | {{La|ARTICLE}} | {{Lat|ARTICLE}} |
| Draft | {{Ld|DRAFT}} | {{Ldt|DRAFT}} |
| Template | {{Lt|TEMPLATE}} | {{Ltt|TEMPLATE}} |
| Wikipedia | {{Lw|PAGE}} | {{Lwt|PAGE}} |
| Wikipedia:Articles for deletion/ | {{Lafd|PAGE}} | — |
| User | {{Lu|PAGE}} | {{Lut|PAGE}}[1] |
| Category | {{Lc|PAGE}} | {{Lct|PAGE}} |
| File | {{Lf|FILE}} | {{Lft|FILE}} |
| Portal | {{Lp|PORTAL}} | {{Lpt|PORTAL}} |
| MediaWiki | {{Lm|MESSAGE}} | {{Lmt|MESSAGE}} |
| Help | {{Lh|PAGE}} | {{Lht|PAGE}} |
| Book | {{Lb|BOOK}} | {{Lbt|BOOK}} |
| TimedText | {{Lttxt|TIMEDTEXT}} | {{Lttxtt|TIMEDTEXT}} |
| Module | {{Lmd|MODULE}} | {{Lmdt|MODULE}} |
- ↑ For a similar template for user accounts, see Template:User
Eisimpleirean - Examples
[deasaich]{{subst:Ln|Category|Stubs}} results (or resulted) in this code:
{{lx|1=:{{ucfirst:Category}}:|2={{ucfirst:Stubs}}|3=:Category talk|4=talk}}
Note the important colon in 1=:, unnecessary (?) for other Lx namespaces.
Substituting both Lx and Ucfirst finally arrived at (line breaks added manually):
<span class="plainlinksneverexpand">[[:Category:Stubs]] <tt>(</tt> [//gd.wiktionary.org/w/index.php?title=Roinn-se%C3%B2rsa:Stubs&action=edit edit]<tt>|</tt> [[:Category talk:Stubs|talk]]<tt>|</tt> [//gd.wiktionary.org/w/index.php?title=S%C3%B2nraichte:Whatlinkshere/:Category:Stubs&limit=999 links]<tt>|</tt> [//gd.wiktionary.org/w/index.php?title=Roinn-se%C3%B2rsa:Stubs&action=history history]<tt>|</tt> [//gd.wiktionary.org/w/index.php?title=Roinn-se%C3%B2rsa:Stubs&action=watch watch]<tt>)</tt></span>
Faic cuideachd - Also see
- Teamplaid:Lag(deasaich deasbaireachd ceanglaichean-lìn eachdraidh) same as {{La}} with a link to the google search
- Teamplaid:La-abbr(deasaich deasbaireachd ceanglaichean-lìn eachdraidh) abbreviated form of La: shows letters instead of words
- Teamplaid:Al(deasaich deasbaireachd ceanglaichean-lìn eachdraidh) provides edit/history links for both article and talk page
- Teamplaid:Userlinks(deasaich deasbaireachd ceanglaichean-lìn eachdraidh) provides additional links to user's contributions history etc.
- Teamplaid:Lcs(deasaich deasbaireachd ceanglaichean-lìn eachdraidh) comparison categories
- Teamplaid:Lps(deasaich deasbaireachd ceanglaichean-lìn eachdraidh) comparison Wikipedia
- Teamplaid:Lts(deasaich deasbaireachd ceanglaichean-lìn eachdraidh) comparison templates
- Teamplaid:Ti(deasaich deasbaireachd ceanglaichean-lìn eachdraidh)
- Teamplaid:Tlsp(deasaich deasbaireachd ceanglaichean-lìn eachdraidh)
- Teamplaid:Tlx(deasaich deasbaireachd ceanglaichean-lìn eachdraidh) comparison parameters
- (deasaich deasbaireachd ceanglaichean eachdraidh)
- Teamplaid:Rfplinks(deasaich deasbaireachd ceanglaichean-lìn eachdraidh)
General-purpose formatting
[deasaich]| Link style → | Linked | Unlinked | Linked with subst | Linked including braces | Linked with alternative text | |
|---|---|---|---|---|---|---|
| Text style ↓ | ↓ {{Tlg}} options1 →
|
DEFAULT | nolink=yes | subst=yes | braceinside=yes | alttext=Foo 2=Foo |
| normal | DEFAULT | {{Tlg}}1{{Tl}}{{Tlp}}2{{Tlu}}3
|
{{Tlf}}2
|
{{Tls}}{{Tlsp}}{{Tlsu}}3
|
{{Tn}}
|
{{Tla}}
|
code
|
code=yes | {{Tl2}}{{Tlx}}{{Tlxu}}3
|
{{Tlc}}2{{Tld}}2{{Tnull}}
|
{{Tlxs}}
|
N/A | |
| monospace kbd |
plaincode=yes4 kbd=yes5 |
{{Tltt}}5{{Tltt2}}5
|
N/A | {{Tltss}}6
| ||
| bold | bold=yes | {{Tlb}}
|
N/A | |||
bold+code
|
code=yes | {{Tlxb}}
| ||||
italic+code
|
code=yes | {{Tlxi}}
| ||||
| ||||||
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>{{Hatnote|lang=fr|Some text}}</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|{{{1}}}|true|false}} |
{{#If}} {{#If:{{{1}}}|true|false}} |
Parser function equivalent to {{Tl}} |
With utility links
[deasaich]| Code example | Effect |
|---|---|
| {{Lt|Hatnote}} | Teamplaid:Hatnote (deasaich | deasbaireachd | eachdraidh | ceanglaichean | faire | logaichean) |
| {{Lts|Hatnote}} | Teamplaid:Hatnote(deasaich deasbaireachd ceanglaichean-lìn eachdraidh) |
| {{T links|Hatnote}} | Hatnote (edit talk history links # /subpages /doc /doc edit /sbox /sbox diff /test) |
| {{Tfd links|Hatnote}} | Template:Hatnote (edit · talk · history · links · transclusions · logs · subpages · delete) |
| {{Tltt|Hatnote}} | {{Hatnote}} |
| {{Tetl|Hatnote}} | {{Hatnote}} |
| {{Tsetl|Hatnote}} | {{subst:Hatnote}} |
| {{Ti|Hatnote}} | Teamplaid:Hatnote (deasbaireachd⧼dot-separator⧽ceanglaichean-lìn⧼dot-separator⧽deasaich) |
| {{Tic|Hatnote}} | Template:Hatnote (talk links edit) |
| {{Tim|Hatnote}} | m:Template:Hatnote (backlinks edit) |
| {{Tiw|Hatnote}} | Teamplaid:Hatnote (ceanglaichean deasaich) |
| {{Tlt|Hatnote}} | {{Hatnote}} (talk) |
| {{Ttl|Hatnote}} | {{Hatnote}} (t/l) |
| {{Twlh|Hatnote}} | Template:Hatnote (links, talk) |