Difference between revisions of "Template:EN"

From Referata
Jump to: navigation, search
(Undo revision 1750, and space add)
(Now OK for languages others)
 
Line 1: Line 1:
<onlyinclude><span style="color:red;">&nbsp;<sup>'''EN'''</sup></span></onlyinclude>
+
<onlyinclude>{{#if:{{{1|}}}
 +
|<span style="color:red;">&nbsp;<sup>'''{{{1}}}'''</sup></span>
 +
|<span style="color:red;">&nbsp;<sup>'''EN'''</sup></span>
 +
}}</onlyinclude>
  
 
==Description==
 
==Description==
  
Write an {{EN}} english language indicator (to hyperlinks, for example).
+
Write an {{EN}} language indicator in red color. It's used after hyperlinks, for example.
  
 
==How to use==
 
==How to use==
Line 13: Line 16:
 
</source>
 
</source>
  
=== Example ===
+
Or only use below for language prefix others (here, prefix "ES"):
 +
 
 +
<source lang="text">
 +
{{EN|ES}}
 +
</source>
 +
 
 +
=== Example 1===
 +
 
 +
Source:
 +
 
 +
<source lang="text">
 +
- English link example mark: [http://en.wikipedia.org en.wikipedia.org]{{EN}}
 +
</source>
 +
 
 +
Result:
 +
 
 +
- English link example mark: [http://en.wikipedia.org en.wikipedia.org]{{EN}}
 +
 
 +
=== Example 2===
  
 
Source:
 
Source:
  
 
<source lang="text">
 
<source lang="text">
- English link example mark: [http://google.com google.com]{{EN}}
+
- Spanish link example mark: [http://es.wikipedia.org es.wikipedia.org]{{EN|ES}}
 
</source>
 
</source>
  
 
Result:
 
Result:
  
- English link example mark: [http://google.com google.com]{{EN}}
+
- Spanish link example mark: [http://es.wikipedia.orgm es.wikipedia.org]{{EN|ES}}

Latest revision as of 10:11, February 2, 2011

 EN

Description

Write an  EN language indicator in red color. It's used after hyperlinks, for example.

How to use

Only use below:

{{EN}}

Or only use below for language prefix others (here, prefix "ES"):

{{EN|ES}}

Example 1

Source:

- English link example mark: [http://en.wikipedia.org en.wikipedia.org]{{EN}}

Result:

- English link example mark: en.wikipedia.org EN

Example 2

Source:

- Spanish link example mark: [http://es.wikipedia.org es.wikipedia.org]{{EN|ES}}

Result:

- Spanish link example mark: es.wikipedia.org ES