Template:Main/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(2 intermediate revisions by one other user not shown)
Line 5: Line 5:


== Parameters and Examples ==
== Parameters and Examples ==
{| class="standard-table" width="80%"
{| class="standard-table" width="60%"
! Parameter
! Parameter
! Description
! Description
Line 11: Line 11:
! Preview
! Preview
|-
|-
| align="center" | {{Code|style=2| {{Param|1}} }}
| align=center | No Parameters
| style="padding:10px" | Inserts a superscript.
| {{CodeBlock|margin=5px| <nowiki>[[Main Page]]{{Main}}</nowiki> }}
| {{Capsule|margin=5px| [[Main Page]]{{Main}} }}
|-
| align=center | {{Code|style=2| {{Param}} }}
| style="padding:10px" | The page name to link to.
| style="padding:10px" | The page name to link to.
| {{CodeBlock|margin=5px| <nowiki>[[Main Page]]{{Main}}</nowiki> }} {{CodeBlock|margin=5px| <nowiki>{{Main|Main Page}}</nowiki> }}
| {{CodeBlock|margin=5px| <nowiki>{{Main|Main Page}}</nowiki> }}
| {{Capsule|margin=5px| [[Main Page]]{{Main}} }}{{Capsule|margin=5px| {{Main|Main Page}} }}
| {{Capsule|margin=5px| {{Main|Main Page}} }}
|-
|-
| align="center" | {{Code|style=2| {{Param|2}} }}
| align=center | {{Code|style=2| {{Param|2}} }}
| style="padding:10px" | An alternative link text.
| style="padding:10px" | An alternative link text.
| {{CodeBlock|margin=5px| <nowiki>{{Main|Main Page|alternate text}}</nowiki>}}
| {{CodeBlock|margin=5px|<nowiki>{{Main|Main Page|alternate text}}</nowiki>}}
| {{Capsule|margin=5px| {{Main|Main Page|alternate text}} }}
| {{Capsule|margin=5px| {{Main|Main Page|alternate text}} }}
|}
|}

Latest revision as of 11:37, 29 April 2023

Edit-copy.png
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.
Inline note templates
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

Link to the article that provided the information.

Parameters and Examples

Parameter Description Example Preview
No Parameters Inserts a superscript.
[[Main Page]]{{Main}}
Main Page[Main article]
{{{1}}} The page name to link to.
{{Main|Main Page}}
Main article:  Main Page
{{{2}}} An alternative link text.
{{Main|Main Page|alternate text}}
Main article:  alternate text