«Կաղապար:Չթարգմանված հոդված/doc»–ի խմբագրումների տարբերություն

Առանց խմբագրման ամփոփման
No edit summary
{{Documentation subpage}}
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{Template shortcut|illչթհ}}
{{high-use| 35063 }}
{{COinS safe|n}}
There are several ways of using this template. It can produce links to one or more specific languages or to the Wikidata table of languages. There can also be a link to [[User:Magnus Manske|Magnus Manske]]'s [https://tools.wmflabs.org/reasonator/ Reasonator] Wikidata item viewer.
 
The shortcut {{t|illչթհ}} may be used.
 
A full list of language codes can be found at [[List of Wikipedias#Detailed list]].
To link to a foreign language article with the ''same'' title as the English Wikipedia, the parameters are:
 
{{tlc|illչթհ|''Article title''|''language code''}}
*{{tlc|illչթհ|Sigmund Jakobsen|no}} gives {{{{PAGENAMETDOC}}|Sigmund Jakobsen|no}}
 
===Հոդվածներ տարբեր վերնագրերով===
To link to a foreign language article with a ''different'' title, the parameters are:
 
{{tlc|illչթհ|''English article title''|''language code''|''Title in foreign language''}}
*{{tlc|illչթհ|Hooglede town hall|nl|Gemeentehuis van Hooglede}} gives {{{{PAGENAMETDOC}}|Hooglede town hall|nl|Gemeentehuis van Hooglede}}
 
==Link to multiple languages==
To link to multiple languages, the parameters are:
 
{{tlc|illչթհ|''English article title''|''language 1 code''|''Title in language 1''|''language 2 code''|''Title in language 2''|...}}
 
There are up to five languages supported by the template.
===Հոդվածներ նույն վերնագրով===
If the foreign language articles have the same title as the English language page, the titles of the page are not necessary.
*{{tlc|illչթհ|casa|es||it||ro||de|haus}} gives {{{{PAGENAMETDOC}}|casa|es||it||ro||de|haus}}
 
Note that {{As of|2016|2|lc=yes}} if there is a redirect for the term in English Wikipedia, both the redirected (blue) link and interlanguage link(s) are displayed. This is why "casa" appears as a bluelink in the example above.
 
===Հոդվածներ տարբեր վերնագրերով===
{{tlc|illչթհ|Olena Chaplynska|uk|Олена Чаплинська|ru|Чаплинская, Гелена|ja|モトローナ・チャプリーンシカ}} displays
*{{{{PAGENAMETDOC}}|Olena Chaplynska|uk|Олена Чаплинська|ru|Чаплинская, Гелена|ja|モトローナ・チャプリーンシカ}}
 
To link to the Wikidata table of languages in which the article is available, the parameters are:
 
{{tlc|illչթհ|''Article title in English Wikipedia''|WD{{=}}''Wikidata item code''}}
 
All links to other Wikipedias are ignored if {{para|WD}} is present. Thus since [[Jokery]] does not exist
 
* {{tlc|illչթհ|Jokery|WD{{=}}Q131138}}
 
outputs
! Input !! Output
|-
| <code><nowiki>{{illչթհ|Jokery|WD=Q131138|reasonator=1}}</nowiki></code> || {{{{PAGENAMETDOC}}|Jokery|WD=Q131138|reasonator=1}}
|-
| <code><nowiki>{{illչթհ|Jokery|reasonator=1}}</nowiki></code> || {{{{PAGENAMETDOC}}|Jokery|reasonator=1}}
|}
 
! Input !! Output
|-
| <code><nowiki>{{illչթհ|Joke|fr|Blague|hu|Vicc|de|Witz}}</nowiki></code> || {{{{PAGENAMETDOC}}|Joke|fr|Blague|hu|Vicc|de|Witz}}
|-
| <code><nowiki>{{illչթհ|Joke|fr|Blague|hu|Vicc|de|Witz|display=1}}</nowiki></code> || {{{{PAGENAMETDOC}}|Joke|fr|Blague|hu|Vicc|de|Witz|display=1}}
|}
 
A "piped link" in the English Wikipedia (as in <nowiki>[[Charles Darwin (botanist)|Charles Darwin]]</nowiki>) can be created by using {{para|lt}} for the visible link text. Thus since [[Charles Darwin (botanist)]] does not exist
 
* {{tlx|illչթհ|Charles Darwin (botanist)|lt{{=}}Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin}}
 
displays
* {{{{PAGENAMETDOC}}|Charles Darwin (botanist)|lt=Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin}}
 
'''Note''' Do not use {{tlf|!}} to create piped links: {{tlx|illչթհ|Maze (band){{tlf|!}}Maze|...}} is not equivalent to {{tlx|illչթհ|Maze (band)|lt{{=}}Maze|...}}. The former will not cause the foreign language links to disappear when the English article exists.
 
===Remove bold formatting from links===
! Input !! Output
|-
| <code><nowiki>'''{{illչթհ|Charles Darwin (botanist)|fr|Charles Darwin|de|Charles Darwin}}'''</nowiki></code> || '''{{{{PAGENAMETDOC}}|Charles Darwin (botanist)|fr|Charles Darwin|de|Charles Darwin}}'''
|-
| <code><nowiki>'''{{illչթհ|nobold=1|Charles Darwin (botanist)|fr|Charles Darwin|de|Charles Darwin}}'''</nowiki></code> || '''{{{{PAGENAMETDOC}}|nobold=1|Charles Darwin (botanist)|fr|Charles Darwin|de|Charles Darwin}}'''
|}
 
! Input !! Output
|-
| <code><nowiki>{{illչթհ|vertical-align=sup|Charles Darwin (botanist)|fr|Charles Darwin|de|Charles Darwin}}</nowiki></code> || {{{{PAGENAMETDOC}}|vertical-align=sup|Charles Darwin (botanist)|fr|Charles Darwin|de|Charles Darwin}}
|-
| <code><nowiki>{{illչթհ|vertical-align=sub|Charles Darwin (botanist)|fr|Charles Darwin|de|Charles Darwin}}</nowiki></code> || {{{{PAGENAMETDOC}}|vertical-align=sub|Charles Darwin (botanist)|fr|Charles Darwin|de|Charles Darwin}}
|}
 
==Օրինակներ==
* <code><nowiki>{{illչթհ|TC Matic|af|TC Matic|nl|TC Matic|fr|TC Matic|es|TC Matic}}</nowiki></code> gives {{{{PAGENAMETDOC}}|TC Matic|af|TC Matic|nl|TC Matic|fr|TC Matic|es|TC Matic}}, because [[TC Matic]] exists here
* <code><nowiki>{{illչթհ|TC Matic (band)|af|TC Matic|nl|TC Matic|fr|TC Matic|es|TC Matic}}</nowiki></code> gives {{{{PAGENAMETDOC}}|TC Matic (band)|af|TC Matic|nl|TC Matic|fr|TC Matic|es|TC Matic}}, because [[TC Matic (band)]] does not exist here
* <code><nowiki>{{illչթհ|TC Matic (band)|af||nl||fr||es|}}</nowiki></code> gives {{{{PAGENAMETDOC}}|TC Matic (band)|af||nl||fr||es|}} – although shown in blue the interwiki links won't work because they default to the title "TC Matic (band)" which is wrong
* <code><nowiki>{{illչթհ|TC Matic (band)|lt=TC Matic|af|TC Matic|nl|TC Matic|fr|TC Matic|es|TC Matic}}</nowiki></code> gives {{{{PAGENAMETDOC}}|TC Matic (band)|lt=TC Matic|af|TC Matic|nl|TC Matic|fr|TC Matic|es|TC Matic}} – the text "TC Matic" now redlinks to "TC Matic (band)"
* <code><nowiki>{{illչթհ|TC Matic|lt=TC Matic (band)|af|TC Matic|nl|TC Matic|fr|TC Matic|es|TC Matic}}</nowiki></code> gives {{{{PAGENAMETDOC}}|TC Matic|lt=TC Matic (band)|af|TC Matic|nl|TC Matic|fr|TC Matic|es|TC Matic}} – the text "TC Matic (band)" now links to "TC Matic" which exists
 
== TemplateData ==
</templatedata>
 
==Վերահղումներ==
==Redirects==
 
After [[Wikipedia:Templates for discussion/Log/2015 March 8#Template:Interlanguage link multi|a merge discussion]], five other templates were merged into this template, and thus this template contains all of their features.
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Կատեգորիա:Ներքին հղման կաղապարներ]]
[[Category:Internal link templates]]
[[Կատեգորիա:Միջնախագծային հղումների կաղապարներ]]
[[Category:Interwiki link templates]]
}}</includeonly>
55 447

edits