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

From blackwiki
Jump to navigation Jump to search
imported>MSGJ
(transclude cats and iws if they exist)
imported>Rich Farmbrough
 
(4 intermediate revisions by 2 users not shown)
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}}
  
Line 18: Line 19:
 
* {{{{BASEPAGENAME}}|XYZ|links=no}}
 
* {{{{BASEPAGENAME}}|XYZ|links=no}}
 
}}
 
}}
}}<includeonly>[[Category:Multilingual support templates]]</includeonly>{{#ifexist:Template:{{BASEPAGENAME}}/meta
+
|link box=off
 +
}}<includeonly>[[Category:Multilingual support templates|{{{1|}}}]]</includeonly>{{#ifexist:Template:{{BASEPAGENAME}}/meta
 
  |<div style="display:none; speak:none;">{{{{BASEPAGENAME}}/meta}}</div>
 
  |<div style="display:none; speak:none;">{{{{BASEPAGENAME}}/meta}}</div>
 
}}
 
}}

Latest revision as of 15:53, 18 June 2014

50px Template documentation

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)