Commons:Link templates

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

Template links[edit]

Code Result Notes

{{t|example}}

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

{{t1|example}}

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

{{t0|example}}

Example just link, without the brackets; see docu

{{tls|example}}

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

{{tlx|example|1|2|3|4|5|6|7|8|9}}

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

{{tlxs|example|1|2|3|4|||7|8|9|10}}

{{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

{{tld|example|1|2||3||}}

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

{{tlr|User:Example}}

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

Alternative forms[edit]

Note: These ignore empty parameters.
Code Result Notes

{{tlp|example|1|2|||||7|8|9}}

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

{{tl2|example}}

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

{{tlsp|example|1|2|3|4|5}}

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

{{tlsx|example||2|3||6|7|8}}

{{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

{{c|XyzXyz||pt}}

XyzXyz [[:pt:Category:XyzXyz]]

{{cl|category name}}

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

Image / media links[edit]

Code Result

{{f|Example.jpg}}

Example.jpg

{{f|Example.jpg|DisplayName}}

DisplayName

{{f|Example.jpg|3=16}}

Example.jpg Example.jpg

{{f|Example.jpg|DisplayName|16}}

DisplayName Example.jpg

{{im|Example.jpg}}

Example.jpg

{{lim|Example.jpg}}

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

{{idl|Example.jpg}}

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

{{il|Example.jpg}}

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

{{media|Example.ogg}}

Example.ogg (info)

{{mli|Example.ogg}}

( )

{{mli|Example.ogg|file}}

(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

{{u|Username}}

Username     links to user page

{{ud|Username}}

Username     links to German user page =

{{ut|Username}}

Username     links to user talk page

{{uc|Username}}

Username     conditional link to contributions page

{{ult|Username}}

Username (talk)

{{user|Username}}

Username (talk · contribs)

{{uv|Username|:en:}}

:en:Username (talk | contribs) ~

{{user2|Username}}

Username (talk · contributions · Number of edits:)

{{user3|Username}}

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

{{user6|Username}}

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

{{user7|Username}}

Username (talk · contributions · user rights management)

{{user8|Username}}

Username (talkcontribsblock logfilter log)

{{user13|Username}}

Username (talk · contribs · logs · block log)

{{user14|Username}}

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

{{userlinks|Username}}

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

{{admin|Username}}

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

{{userSUL|Username}}

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

{{trusted user|Username|section|archive #}}

Username ( talk | contribs | archived request )

{{botUser|Username}}

User:Username (contribs)

{{newbot|Username}}

taskscontribscountlogspage moves block userblock logflag logglobal contribs flag bot

{{checkuser|Username}}

Username (talk contribs Luxo's SULutil 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