Difference between revisions of "Template:Editurl"

ADVERTISEMENT
From Diablo Wiki
Jump to: navigation, search
(Created Template)
 
m
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>This template is created to standardise all the "edit" links of all the navboxes. It inserts a string into the url, so that we easily can change it, if the wiki goes through changes or updates.
+
<noinclude>This template is created to have an easy and standardised way to create edit links. It's a simplified version of [[Template:Editlink|Editlink]]. The template uses [[Template:Lancode|Lancode]] and one compulsory variable to work. The variable is '''the name of the article''' including any prefixes. There are also a second optional variable that can be used for customization. The variables are:
 +
 
 +
Variables:
 +
* '''1''' - Full name of article linked. Must use underscores ("_") in place of spaces. (compulsory)
 +
* '''2''' - Changing to other language code than the standard for the wiki. (optional)
 +
 
 +
Example:
 +
<nowiki>{{editurl|Template:Editurl}}</nowiki>
 +
Will create:
 +
{{editurl|Template:Editurl}}
 +
 
 +
</noinclude><includeonly>http://{{{2|{{lancode}}}}}.diablowiki.net/index.php?title={{{1|DiabloWiki:Sandbox}}}&action=edit</includeonly><noinclude>
 +
 
 +
 
 +
'''Related templates:'''
 +
* [[Template:Lancode]] - It's the language code of the wiki.
 +
* [[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><includeonly>index.php?title=</includeonly>
+
[[Category:Templates]]
 +
[[Category:Formatting templates]]</noinclude>

Latest revision as of 11:31, 13 November 2009

This template is created to have an easy and standardised way to create edit links. It's a simplified version of Editlink. The template uses Lancode and one compulsory variable to work. The variable is the name of the article including any prefixes. There are also a second optional variable that can be used for customization. The variables are:

Variables:

  • 1 - Full name of article linked. Must use underscores ("_") in place of spaces. (compulsory)
  • 2 - Changing to other language code than the standard for the wiki. (optional)

Example:

{{editurl|Template:Editurl}}

Will create:

http://www.diablowiki.net/index.php?title=Template:Editurl&action=edit



Related templates: