Difference between revisions of "Template:Editurl"
ADVERTISEMENT
From Diablo Wiki
m |
m |
||
Line 1: | Line 1: | ||
− | <noinclude>This template is created to have an easy and standardised way to create edit links. It uses in [[Template:Lancode|Lancode]] and one variable to work. The variable is '''the name of the article''' including any prefixes. | + | <noinclude>This template is created to have an easy and standardised way to create edit links. It uses in [[Template:Lancode|Lancode]] and one variable to work. The variable is '''the name of the article''' including any prefixes. There is a second variable that can be used to change the language link. |
+ | |||
+ | Variables: | ||
+ | * 1 - Full name of article linked, with underscored "_" if it uses spaces. (compulsory) | ||
+ | * 2 - Other language code than the standard for the wiki. (optional) | ||
Example: | Example: | ||
Line 6: | Line 10: | ||
{{editurl|Template:Editurl}} | {{editurl|Template:Editurl}} | ||
− | </noinclude><includeonly>http://{{lancode}}.diablowiki.net/index.php?title={{{1|DiabloWiki:Sandbox}}}&action=edit</includeonly><noinclude> | + | </noinclude><includeonly>http://{{{2|{{lancode}}}}}.diablowiki.net/index.php?title={{{1|DiabloWiki:Sandbox}}}&action=edit</includeonly><noinclude> |
Related templates: | Related templates: |
Revision as of 17:06, 12 November 2009
This template is created to have an easy and standardised way to create edit links. It uses in Lancode and one variable to work. The variable is the name of the article including any prefixes. There is a second variable that can be used to change the language link.
Variables:
- 1 - Full name of article linked, with underscored "_" if it uses spaces. (compulsory)
- 2 - 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:
- Template:Editurl - Used to create an edit url. Uses Lancode. Used in Editlink.
- Template:Lancode - It's the language code of the wiki.
- Template:Editlink - Uses Editurl (and Lancode) to create a small bracketed linkbox.