Commons:Link templates

From Wikimedia Commons, the free media repository
Jump to: navigation, search

Template links[edit]

Code Result Notes


{{example}} makes brackets part of the link; see docu


{{example}} makes inner brackets part of the link; see docu
{{tl|example}} {{example}} makes brackets around the link; see docu


Example just link, without the brackets; see docu


{{subst:example}} no parameters, adds "subst:"


{{example|1|2|3|4|5|6|7|8|...}} up to 8 parameters (compare with {{tlp}})


{{subst:example|1|2|3|4|||7|8|...}} up to 8 parameters, adds "subst:"

{{tlf|example|1|2|3|...up to 8}}

{{example|1|2|3|...up to 8}} up to 8 parameters, no link

{{tlc|example|1|2|3|4|||7|up to 8|9}}

{{example|1|2|3|4|||7|up to 8}} up to 8 parameters, no link, <code> style


{{example|1||2|3||}} up to 8 parameters, <code> style


{{User:Example}} like {{tl}} but for any namespace


{{ Tle1 = v12 = v23 = v3 }} decribes parameters and their values

Alternative forms[edit]

Note: These ignore empty parameters.
Code Result Notes


{{example|1|2|7|8}} up to 8 parameters (compare with {{tlx}})


{{example}} up to 2 parameters, teletype style


{{subst:example|1|2|3|etc.}} up to 3 parameters, adds linked "subst:"


{{subst:example|2|3|6|...}} up to 5 parameters, adds linked "subst:", teletype style

Category link[edit]

Code Result Equivalent
existing categories

{{c|Link templates}}

Link templates [[:Category:Link templates|Link templates]]

{{c|Link templates|display name}}

display name [[:Category:Link templates|display name]]

{{c|Link templates|3=X}}

Link templates [[:Category:Link templates|Link templates]]

{{c|!Predefinições por função|Predefs|pt}}

Predefs [[:pt:Category:!Predefinições por função|Predefs]]

{{cl|Link templates}}

Category:Link templates [[:Category:Link templates]]
NOT existing categories

{{c|category name}}

category name [[:Category:category name|category name]]

{{c|category name|display name}}

display name [[:Category:category name|display name]]

{{c|category name|3=X}}

category name special output display

{{c|category name|3=x}}

category name special output display


XyzXyz [[:pt:Category:XyzXyz]]

{{cl|category name}}

Category:Category name [[:Category:Category name]]

Image / media links[edit]

Code Result












File:Example.jpg (edit|talk|history|links|watch|logs)


File:Example.jpg (edit talk history logs links usage del)


File:Example.jpg (edit · last · history · watch · unwatch · global usage · find cats · logs · purge · w · search · links · DR · del · undel)


Example.ogg (info)


( )


(file )

{{audio|Example.ogg|File name}}

File name

{{audio2|Example.ogg|File name}}

File name (listenplay in browser)

User and user talk links[edit]

Code Result [1] Shortcut


Username     links to user page


Username     links to German user page =


Username     links to user talk page


Username     conditional link to contributions page


Username (talk)


Username (talk · contribs)


:en:Username (talk | contribs) ~


Username (talk · contributions · Number of edits)


Username (talk · contributions · Move log · block log · uploadsblock user {{vandal}}


Username (talk · contributions · Move log · Number of edits · logs · block log)


Username (talk · contributions · user rights management)


Username (talkcontribsblock logfilter log)


Username (talk · contribs · logs · block log)


Username (talk · contributions · deleted user contributions · recent activity · logs · block log · global contribs · SULinfo)


Username (talk · contribs · deleted contribs · logs · edit filter log · block user · block log)


Username (talk contribs blocks protections deletions moves rights rights changes) {{a}}


Username (talk • contribs • rename user • SUL utility)


User:Username (contribs)


taskscontribscountlogspage moves block userblock logflag logglobal contribs flag bot


Username (talk contribs Luxo's SUL deleted contribs logs block user block log checkuser)
  1. Interwiki template: Interwiki access (with 3=language code)

General Interwiki link[edit]

Template {{W}} - examples
Code Result links to
{{w||en:WP}} en:WP en:Main page
{{w|Braille#Lletres i nombres||ca)}} Braille#Lletres i nombres ca:article page
{{w|template:Commonscat||de}} template:Commonscat de:Vorlage:Commonscat
{{w|category:Liste d'artistes||fr}} category:Liste d'artistes fr:Catégorie:Liste d'artistes
{{w|file:Coverkill.jpg||pt}} file:Coverkill.jpg pt:Ficheiro:Coverkill.jpg
{{w|user:Feketetomi||hu}} user:Feketetomi hu:Szerkesztő:Feketetomi
{{w|talk:Merano#Rino Gaetano e Merano|3=it)}} talk:Merano#Rino Gaetano e Merano it:Discussione:Merano
{{w|Carnivora||wikispecies)}} Carnivora Wikispecies:Carnivora