Template:Main: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Allowing the second unnamed parameter to override the link text.)
(Wiki standards and fixed first parameter trimming)
 
(15 intermediate revisions by 10 users not shown)
Line 1: Line 1:
<includeonly>:''Main article: [[{{{1}}}|{{{2|{{{1}}}}}}]]</includeonly><noinclude>
{{Doc}}
{| class=standard-table
<onlyinclude><includeonly><i>{{Inline note
! Wikitext !! Result
| 1 = {{#ifexist: {{{1}}} | {{#if:{{{1|}}} | [[{{{1}}}|{{{2|{{{1}}}}}}]] }} | <!--else-->{{#if:{{{1|}}} | [[{{{1}}}|{{{2|{{{1}}}}}}]] }}<!--else-->}}<!--ifexist-->
|-
| bold = 0
| <pre>{{main|Main Page}}</pre>
| color = #bbb
| {{main|Main Page}}
| name = {{#switch: {{{lang|{{ROOTPAGENAME}}}}}
|-
| #default = Main article
| <pre>{{main|Main Page|alternate text}}</pre>
| De = Hauptseite
| {{main|Main Page|alternate text}}
| Eo = Ĉefartikolo
|}
| Fi = Pää artikkeli
</noinclude>
| Hr = Glavni članak
| Ru = Основная статья
| Es = Artículo principa
| Vi = Bài chi tiết
| Zh = 主条目
| Ja = 主要なページ
}}
}}</i></includeonly></onlyinclude>

Latest revision as of 16:34, 4 November 2025

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
Page history
Inline note templates
Template Pages using it
28 August 2024
{{note}} 6,436
{{warning}} 1,253
{{BugNotice}} 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