3,860
edits
(→3) |
(Updated the info.) |
||
Line 23: | Line 23: | ||
;<big>Usage</big> | ;<big>Usage</big> | ||
* <code><nowiki>{{</nowiki>wp|'''1'''<nowiki>}}</nowiki></code> | * <code><nowiki>{{</nowiki>wp|{{big|'''1'''}}<nowiki>}}</nowiki></code> | ||
====2==== | ====2==== | ||
Line 30: | Line 30: | ||
;<big>Notes</big> | ;<big>Notes</big> | ||
* To skip this parameter, and only use the 1st and the 3rd parameters, leave it empty by typing two pipes in a row | * To skip this parameter, and only use the 1st and the 3rd parameters, leave it empty by typing two pipes in a row, following the syntax {{tlc|wp|1{{!}}{{small|(empty)}}{{!}}3}}. | ||
:Example: to create a link to the article ''Article'' in French Wikipedia, you type {{tlc|wp|Article{{!}}{{!}}fr}}. | |||
;<big>Usage</big> | ;<big>Usage</big> | ||
* <code><nowiki>{{</nowiki>wp|1|'''2'''<nowiki>}}</nowiki></code> | * <code><nowiki>{{</nowiki>wp|1|{{big|'''2'''}}<nowiki>}}</nowiki></code> | ||
====3==== | ====3==== | ||
Line 41: | Line 41: | ||
;<big>Notes</big> | ;<big>Notes</big> | ||
* The use of interwiki links means, in this case, that the output link will point to the English Wikipedia server, and then be redirected from there to the language server you have specified. If, for example, the template is instructed to produce a link to the article ''Article'' in French Wikipedia, it will produce the link {{code|<nowiki>https://en.wikipedia.org/wiki/fr:Article</nowiki>}}, but when you click it, you will go to the address {{code|<nowiki>https://fr.wikipedia.org/wiki/Article</nowiki>}}. | * The use of interwiki links means, in this case, that the output link will point to the English Wikipedia server, and then be redirected from there to the language server you have specified. If, for example, the template is instructed to produce a link to the article ''Article'' in French Wikipedia, it will produce the link "{{code|<nowiki>https://en.wikipedia.org/wiki/fr:Article</nowiki>}}", but when you click it, you will go to the address "{{code|<nowiki>https://fr.wikipedia.org/wiki/Article</nowiki>}}". | ||
* To produce a link to the main page for a specific language, you skip the first two parameters. Leave them empty by typing three pipes in a row, following the syntax {{tlc|wp|{{small|(empty)}}{{!}}{{small|(empty)}}{{!}}3}}. The template will output the link with the link text "{{samp|Wikipedia (lang. code)}}". | |||
:Example: to create a link to the main page for French Wikipedia, you type {{tlc|wp|{{!}}{{!}}{{!}}fr}}. The result will be a link with the link text "{{samp|Wikipedia (fr)}}". | |||
;<big>Usage</big> | ;<big>Usage</big> | ||
* <code><nowiki>{{</nowiki>wp|1|2|'''3'''<nowiki>}}</nowiki></code> | * <code><nowiki>{{</nowiki>wp|1|2|{{big|'''3'''}}<nowiki>}}</nowiki></code> | ||
==Examples== | ==Examples== | ||
Line 58: | Line 60: | ||
|- | |- | ||
| Choose language: French || <code><nowiki>{{wp|Mozilla Foundation||fr}}</nowiki></code> || {{wp|Mozilla Foundation||fr}} | | Choose language: French || <code><nowiki>{{wp|Mozilla Foundation||fr}}</nowiki></code> || {{wp|Mozilla Foundation||fr}} | ||
|- | |||
| Main Page: Swedish || <code><nowiki>{{wp|||sv}}</nowiki></code> || {{wp|||sv}} | |||
|} | |} | ||
Line 67: | Line 71: | ||
{{#ifeq:{{SUBPAGENAME}}|sandbox|| | {{#ifeq:{{SUBPAGENAME}}|sandbox|| | ||
<!-- Add categories below, please --> | <!-- Add categories below, please --> | ||
[[ | [[Category:External link templates]] | ||
}} | }} | ||
</includeonly> | </includeonly> |
edits