Difference between revisions of "Template:Wikipedia"

From Glottopedia
Jump to navigation Jump to search
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<div>'''[http://{{{2|en}}}.wikipedia.org/wiki/{{urlencode:{{{1|{{PAGENAME}}}}} Wikipedia: {{{1|{{PAGENAME}}}}}]''' ({{#language:{{{2|en}}}}})</div><noinclude>
+
<div>[[Image:120px-Wikipedia-logo.png|16px|Wikipedia]]&nbsp;'''[[:wikipedia:{{{2|en}}}:{{{1|{{PAGENAME}}}}}|Wikipedia: {{{1|{{PAGENAME}}}}}]]''' ({{#language:{{{2|en}}}}})</div><noinclude>
  
 
=== Usage ===
 
=== Usage ===
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>&nbsp;[...]</div>
 +
</nowiki></pre>
 +
[[Category:Template|Wikipedia]]
 
</noinclude>
 
</noinclude>

Latest revision as of 12:49, 2 March 2018

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