Difference between revisions of "Template:Wikipedia"

From Glottopedia
Jump to navigation Jump to search
m (fix)
(icon and linkfix)
Line 1: Line 1:
<div>'''[[:wikipedia:{{{2|en}}}{{{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 20: Line 20:
  
 
:<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>
  
 
</noinclude>
 
</noinclude>

Revision as of 09:55, 11 October 2008

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>