Difference between revisions of "Template:Editlink"
ADVERTISEMENT
From Diablo Wiki
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]], [[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: | <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''' - | + | * '''1''' - Full name of article linked, with underscores "_" if it uses spaces. (compulsory) |
− | * '''2''' - How you want the edit link to write out. Full "Edit", or just "e" for example. | + | * '''2''' - How you want the edit link to write out. Full "Edit", or just "e" for example. (optional) |
− | * ''' | + | * '''2''' - Other language code than the standard for the wiki. (optional) |
− | * '''4''' - Write anything here to put link in brackets. | + | * '''4''' - Write anything here to put link in brackets. (optional) |
− | * '''5''' - Write anything here to make text smaller and unbolded. | + | * '''5''' - Write anything here to make text smaller and unbolded. (optional) |
− | 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. | + | 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. |
{|style="border-collapse: collapse; background: #2D0606; clear:both;" width="50%" | {|style="border-collapse: collapse; background: #2D0606; clear:both;" width="50%" | ||
Line 52: | Line 52: | ||
'''Related templates:''' | '''Related templates:''' | ||
− | |||
* [[Template:Lancode]] - It's the language code of the wiki. | * [[Template:Lancode]] - It's the language code of the wiki. | ||
− | * [[Template:Editlink]] - Used to create a small | + | * [[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> |
Revision as of 18:15, 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 - Full name of article linked, with underscores "_" if it uses spaces. (compulsory)
- 2 - How you want the edit link to write out. Full "Edit", or just "e" for example. (optional)
- 2 - Other language code than the standard for the wiki. (optional)
- 4 - Write anything here to put link in brackets. (optional)
- 5 - Write anything here to make text smaller and unbolded. (optional)
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: {{editlink|Template:Editlink}} Will create: edit
|
Example 2: {{editlink|Template:Editlink|edit me}} Will create: edit me
| ||||
Example 3: {{editlink|Template:Editlink|edit me|de}} Will create: edit me
|
Example 4: {{editlink|Template:Editlink|edit me|de|A}} Will create: [edit me]
| ||||
Example 5: {{editlink|Template:Editlink|edit me|de|A|A}} Will create: [edit me]
|
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.