Difference between revisions of "Template:Wikipedia"
Jump to navigation
Jump to search
(Template to link to Wikipedia in a standard way) |
|||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | <div>'''[ | + | <div>[[Image:120px-Wikipedia-logo.png|16px|Wikipedia]] '''[[:wikipedia:{{{2|en}}}:{{{1|{{PAGENAME}}}}}|Wikipedia: {{{1|{{PAGENAME}}}}}]]''' ({{#language:{{{2|en}}}}})</div><noinclude> |
=== Usage === | === Usage === | ||
Line 11: | Line 11: | ||
For instance this links to the article ''Yiddish language'' in the English Wikipedia (en). | For instance this links to the article ''Yiddish language'' in the English Wikipedia (en). | ||
− | :<tt><nowiki>{{Wikipedia| | + | :<tt><nowiki>{{Wikipedia|Yiddish_language|en}}</nowiki></tt> |
The language code is optional, by default the language code ''en'' is used: | The language code is optional, by default the language code ''en'' is used: | ||
− | :<tt><nowiki>{{Wikipedia| | + | :<tt><nowiki>{{Wikipedia|Yiddish_language}}</nowiki></tt> |
If you also omit the article, the name of the current Glottopedia article is used: | If you also omit the article, the name of the current Glottopedia article is used: | ||
Line 21: | Line 21: | ||
:<tt><nowiki>{{Wikipedia}}</nowiki></tt> or <tt><nowiki>{{Wikipedia||en}}</nowiki></tt> | :<tt><nowiki>{{Wikipedia}}</nowiki></tt> or <tt><nowiki>{{Wikipedia||en}}</nowiki></tt> | ||
+ | === Note === | ||
+ | |||
+ | At the moment the <tt>imagemap</tt> tag is not enabled in this Wiki. You could then improve the icon view with: | ||
+ | |||
+ | <pre><nowiki> | ||
+ | <div class="imagemap-inline" style="margin:0.1em 0 0 0;"><imagemap> | ||
+ | Image:120px-Wikipedia-logo.png|16px|Wikipedia | ||
+ | default [[Wikipedia]] | ||
+ | desc none</imagemap> [...]</div> | ||
+ | </nowiki></pre> | ||
+ | [[Category:Template|Wikipedia]] | ||
</noinclude> | </noinclude> |
Latest revision as of 12:49, 2 March 2018
Wikipedia: Wikipedia (English)
Usage
This template can be used to link to an article in Wikipedia.
You can provide two template parameters: article and language code:
- {{Wikipedia|article|language code}}
For instance this links to the article Yiddish language in the English Wikipedia (en).
- {{Wikipedia|Yiddish_language|en}}
The language code is optional, by default the language code en is used:
- {{Wikipedia|Yiddish_language}}
If you also omit the article, the name of the current Glottopedia article is used:
- {{Wikipedia}} or {{Wikipedia||en}}
Note
At the moment the imagemap tag is not enabled in this Wiki. You could then improve the icon view with:
<div class="imagemap-inline" style="margin:0.1em 0 0 0;"><imagemap> Image:120px-Wikipedia-logo.png|16px|Wikipedia default [[Wikipedia]] desc none</imagemap> [...]</div>