Commons:Link templates

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

Template links[edit]

Code Result Notes lock


{{Example}} makes brackets part of the link; see docu Lock-r.svg


Example just link, without the brackets; see docu Lock-g.svg


{{Example}} inner brackets are part of the link; see docu Lock-g.svg


{{Example}} brackets are not a part of the link; see docu Lock-g.svg
{{tl|example}} {{example}} makes brackets around the link; see docu Lock-r.svg


{{subst:example}} no parameters, adds "subst:" Lock-r.svg


{{example|1|2|3|4|5|7|8|...}} up to 8 parameters Lock-r.svg


{{subst:example|1|2|3|4|5||7|8|...}} up to 8 parameters, adds "subst:"; see docu Lock-g.svg

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

{{example|1|2|3|...up to 8}} up to 8 parameters, no link; see docu Lock-r.svg

{{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 Lock-g.svg


{{example|1||2|3||}} up to 8 parameters, <code> style; see docu Lock-g.svg


{{User:Example}} like {{tl}} but for any namespace Lock-g.svg


{{ Tle1 = v12 = v23 = v3 }} decribes parameters and their values Lock-g.svg

Alternative forms[edit]

Note: These ignore empty parameters.
Code Result Notes lock


{{example|1|2|3|4|5|7|8}} up to 8 parameters; ignores empty parms Lock-r.svg


{{example|p1|p2}} up to 2 parameters, <code> style; see docu Lock-g.svg


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


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

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: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 · logs · purge · w · search · links · DR · del · undel · Delinker log)


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     trails the given name with "~commonswiki"; 0 see also: uwt


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)

Be aware that other templates may use the parameter "editor" or "by" for the same purpose.

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 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 it:Discussione:Merano
{{w|Carnivora||wikispecies)}} Carnivora Wikispecies:Carnivora