Difference between revisions of "Template:Editlink"

ADVERTISEMENT
From Diablo Wiki
Jump to: navigation, search
m
m
Line 1: Line 1:
<noinclude>This template is created to help making a small and neat edit link for whatever page it's needed on. It uses [[Template:Editurl|Editurl]] and [[Template:Lancode|Lancode]]) and one compulsory variable to work. There are also four optional variables that can be used for customization. The variables are:
+
<noinclude>This template is created to help making a small and neat edit link for whatever page it's needed on. It uses [[Template:Editurl|Editurl]], [[Template:Lancode|Lancode]], parsing and one compulsory variable to work. There are also four optional variables that can be used for customization. The variables are:
  
 
* '''1''' - Name of the article you wish to edit. (compulsory)
 
* '''1''' - Name of the article you wish to edit. (compulsory)
Line 7: Line 7:
 
* '''5''' - Write anything here to make text smaller and unbolded.
 
* '''5''' - Write anything here to make text smaller and unbolded.
  
Example:
+
It's very important to note that in order to use variable 4 or 5, you must use '''all''' previous variables as well (or use specific denominators) in the template string.
 +
 
 +
'''Example 1:'''
 
  <nowiki>{{editurl|Template:Editlink}}</nowiki>
 
  <nowiki>{{editurl|Template:Editlink}}</nowiki>
Will create:
+
'''Will create:'''
 
  {{editlink|Template:Editlink}}
 
  {{editlink|Template:Editlink}}
 +
 +
 +
'''Example 2:'''
 +
<nowiki>{{editurl|Template:Editlink|edit me}}</nowiki>
 +
'''Will create:'''
 +
{{editlink|Template:Editlink|de}}
 +
 +
 +
'''Example 3:'''
 +
<nowiki>{{editurl|Template:Editlink|edit me|de}}</nowiki>
 +
'''Will create:'''
 +
{{editlink|Template:Editlink|edit me|de}}
 +
 +
 +
'''Example 4:'''
 +
<nowiki>{{editurl|Template:Editlink|edit me|de|A}}</nowiki>
 +
'''Will create:'''
 +
{{editlink|Template:Editlink|edit me|de|A}}
 +
 +
 +
'''Example 5:'''
 +
<nowiki>{{editurl|Template:Editlink|edit me|de|A|A}}</nowiki>
 +
'''Will create:'''
 +
{{editlink|Template:Editlink|edit me|de|A|A}}
  
  

Revision as of 17:43, 12 November 2009

This template is created to help making a small and neat edit link for whatever page it's needed on. It uses Editurl, Lancode, parsing and one compulsory variable to work. There are also four optional variables that can be used for customization. The variables are:

  • 1 - Name of the article you wish to edit. (compulsory)
  • 2 - How you want the edit link to write out. Full "Edit", or just "e" for example.
  • 3 - If you want to change the language code to a different one than the standard for the wiki.
  • 4 - Write anything here to put link in brackets.
  • 5 - Write anything here to make text smaller and unbolded.

It's very important to note that in order to use variable 4 or 5, you must use all previous variables as well (or use specific denominators) in the template string.

Example 1:

{{editurl|Template:Editlink}}

Will create:

edit


Example 2:

{{editurl|Template:Editlink|edit me}}

Will create:

de


Example 3:

{{editurl|Template:Editlink|edit me|de}}

Will create:

edit me


Example 4:

{{editurl|Template:Editlink|edit me|de|A}}

Will create:

[edit me]


Example 5:

{{editurl|Template:Editlink|edit me|de|A|A}}

Will create:

[edit me]



Related templates: