Template:Main/doc: Difference between revisions
Jump to navigation
Jump to search
(Created doc.) |
(Used Template:Inline note. Now supports using no parameter. Added example.) |
||
Line 10: | Line 10: | ||
=== Examples === | === Examples === | ||
{| style=background:none | {| style=background:none | ||
| <code><nowiki>[[Main Page]]{{main}}</nowiki></code> | |||
| → | |||
| [[Main Page]]{{main}} | |||
|- | |||
| <code><nowiki>{{main|Main Page}}</nowiki></code> | | <code><nowiki>{{main|Main Page}}</nowiki></code> | ||
| → | | → |
Revision as of 15:13, 14 December 2021
Template | Pages using it |
---|---|
28 August 2024 | |
{{note}} | 6,436 |
{{warning}} | 1,253 |
{{bug}} | 1,192 |
{{tip}} | 1,516 |
{{todo}} | 1,628 |
{{inline note}} | 2,188 |
{{confirm}} | 672 |
{{question}} | 11 |
{{fix}} | 170 |
{{important}} | 459 |
{{clarify}} | 169 |
{{elaborate}} | 18 |
{{main}} | 143 |
{{distinguish}} | 85 |
{{workaround}} | 122 |
{{seealso}} | 145 |
{{when}} | 1 |
{{where}} | 0 |
{{which}} | 2 |
{{why}} | 38 |
{{idea}} | 21 |
{{placementTip}} | 13 |
{{codenote}} | 21 |
{{altnames}} | 35 |
{{deprecated}} | 109 |
{{how}} | 23 |
{{example}} | 16 |
{{confusion}} | 53 |
{{thanks}} | 7 |
{{code Fix}} | 9 + 7 (16) |
{{vote}} | 4 |

This is a documentation subpage for Template:Main.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Usage
Parameters
- {{{1}}} - The page name to link to.
- {{{2}}} - An alternative link text.
Examples
[[Main Page]]{{main}}
|
→ | Main Page[Main article] |
{{main|Main Page}}
|
→ | Main article: Main Page
|
{{main|Main Page|alternate text}}
|
→ | Main article: alternate text
|