Difference between revisions of "Template:Lancode"

ADVERTISEMENT
From Diablo Wiki
Jump to: navigation, search
m
m
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>This template is created so that other [[Help:Template|templates]] can know the url to the wiki it's on. It only contains the language code of the wiki to whatever calls it.
+
<noinclude>This shows other templates what url the wiki is on. It shows the language code of the wiki to whatever other template is calling it.
  
List of Lancode templates:
+
'''List of Lancode templates:'''
 
* www - DiabloWiki - [http://www.diablowiki.net/Template:Lancode Template]
 
* www - DiabloWiki - [http://www.diablowiki.net/Template:Lancode Template]
 
* diablo2 - DiabloWiki for Diablo 1 & 2 - [http://diablo2.diablowiki.net/Template:Lancode Template]
 
* diablo2 - DiabloWiki for Diablo 1 & 2 - [http://diablo2.diablowiki.net/Template:Lancode Template]
Line 8: Line 8:
 
* sv - DiabloWiki in Swedish - [http://sv.diablowiki.net/Template:Lancode Template]
 
* sv - DiabloWiki in Swedish - [http://sv.diablowiki.net/Template:Lancode Template]
  
Code in this wiki:
+
If you need to use Lancode to pull some other wiki language in, just use the first variable:
</noinclude>{{Lancode}}<includeonly>{{{1|www}}}</includeonly><noinclude>
 
  
 +
<nowiki>{{Lancode|de}}</nowiki>
  
Related templates:
+
In this case it will pull in the German code.
* [[Template:Editurl]] - Used to create an edit url. Uses Lancode. Used in Editlink.
+
 
 +
'''Code in this wiki:'''
 +
 
 +
'''{{Lancode|www}}'''
 +
 
 +
</noinclude><includeonly>{{{1|www}}}</includeonly><noinclude>
 +
 
 +
 
 +
'''Related templates:'''
 
* [[Template:Lancode]] - It's the language code of the wiki.
 
* [[Template:Lancode]] - It's the language code of the wiki.
* [[Template:Editlink]] - Uses Editurl (and Lancode) to create a small bracketed linkbox.
+
* [[Template:Editurl]] - Used to create an edit url. Uses Lancode. Note this is the url only.
 +
* [[Template:Editlink]] - Used to create a link, linkbox or small linkbox. Uses Lancode.
  
  
 
[[Category:DiabloWiki templates]]
 
[[Category:DiabloWiki templates]]
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 18:13, 12 November 2009

This shows other templates what url the wiki is on. It shows the language code of the wiki to whatever other template is calling it.

List of Lancode templates:

If you need to use Lancode to pull some other wiki language in, just use the first variable:

{{Lancode|de}}

In this case it will pull in the German code.

Code in this wiki:

www



Related templates: