Difference between revisions of "Template:Language with name/template"

From blackwiki
Jump to navigation Jump to search
imported>MSGJ
(sort by code)
imported>Rich Farmbrough
Line 1: Line 1:
{{documentation|content=This template is used in articles to mark words in the language of [[{{{2}}}]].
+
{{Documentation|content=This template is used in articles to mark words in the language of [[{{{2}}}]].
  
=== Syntax ===
+
==Syntax==
 
To use it type
 
To use it type
 
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|TEXT}}</nowiki></code>
 
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|TEXT}}</nowiki></code>
 
where TEXT is the text to be marked.
 
where TEXT is the text to be marked.
  
=== Example ===
+
==Example==
 
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|XYZ}}</nowiki></code>
 
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|XYZ}}</nowiki></code>
 
produces
 
produces
 
* {{{{BASEPAGENAME}}|XYZ}}{{#ifeq:{{{links|¬}}}|¬||<br>
 
* {{{{BASEPAGENAME}}|XYZ}}{{#ifeq:{{{links|¬}}}|¬||<br>
=== Suppressing links ===
+
==Suppressing links==
 
If this template is used repeatedly on an article it [[WP:REPEATLINK|may be appropriate]] to suppress the linking of the language name. To do this you can use {{para|links|no}}
 
If this template is used repeatedly on an article it [[WP:REPEATLINK|may be appropriate]] to suppress the linking of the language name. To do this you can use {{para|links|no}}
  

Revision as of 15:48, 18 June 2014

This template is used in articles to mark words in the language of [[{{{2}}}]].

Syntax

To use it type

  • {{Language with name|TEXT}}

where TEXT is the text to be marked.

Example

  • {{Language with name|XYZ}}

produces

  • [[{{{2}}} language|{{{2}}}]]: [{{{3}}}] error: {{lang}}: unrecognized language code: xyz (help)