Difference between revisions of "Template:Editlink"
ADVERTISEMENT
From Diablo Wiki
m |
m |
||
Line 9: | Line 9: | ||
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;" | + | {|style="border-collapse: collapse; background: #2D0606; clear:both;" width="50%" |
− | | | + | |colspan="3"| |
'''Example 1:''' | '''Example 1:''' | ||
<nowiki>{{editurl|Template:Editlink}}</nowiki> | <nowiki>{{editurl|Template:Editlink}}</nowiki> | ||
Line 16: | Line 16: | ||
{{editlink|Template:Editlink}} | {{editlink|Template:Editlink}} | ||
− | | | + | |colspan="3"| |
'''Example 2:''' | '''Example 2:''' | ||
<nowiki>{{editurl|Template:Editlink|edit me}}</nowiki> | <nowiki>{{editurl|Template:Editlink|edit me}}</nowiki> | ||
Line 24: | Line 24: | ||
|- | |- | ||
− | | | + | |colspan="3"| |
'''Example 3:''' | '''Example 3:''' | ||
<nowiki>{{editurl|Template:Editlink|edit me|de}}</nowiki> | <nowiki>{{editurl|Template:Editlink|edit me|de}}</nowiki> | ||
Line 30: | Line 30: | ||
{{editlink|Template:Editlink|edit me|de}} | {{editlink|Template:Editlink|edit me|de}} | ||
− | | | + | |colspan="3"| |
'''Example 4:''' | '''Example 4:''' | ||
<nowiki>{{editurl|Template:Editlink|edit me|de|A}}</nowiki> | <nowiki>{{editurl|Template:Editlink|edit me|de|A}}</nowiki> | ||
Line 37: | Line 37: | ||
|- | |- | ||
+ | |colspan="2" width="33%"| | ||
− | |colspan="2"| | + | |colspan="2" width="34%"| |
'''Example 5:''' | '''Example 5:''' | ||
<nowiki>{{editurl|Template:Editlink|edit me|de|A|A}}</nowiki> | <nowiki>{{editurl|Template:Editlink|edit me|de|A|A}}</nowiki> | ||
'''Will create:''' | '''Will create:''' | ||
{{editlink|Template:Editlink|edit me|de|A|A}} | {{editlink|Template:Editlink|edit me|de|A|A}} | ||
+ | |||
+ | |colspan="2" width="33%"| | ||
|} | |} | ||
− | </noinclude><includeonly>{{#if: {{{5|}}}| <span style="font-size:80%; font-weight:normal;"> }}{{#if: {{{4|}}}| <nowiki>[</nowiki> }}<span class="plainlinks">[http://{{{3|{{lancode}}}}}.diablowiki.net/index.php?title={{{1|DiabloWiki:Sandbox}}}&action=edit {{{2|edit}}}]</span>{{#if: {{{4|}}}| <nowiki>]</nowiki> }}{{#if: {{{5|}}}| </span>}}</includeonly><noinclude> | + | </noinclude><includeonly>{{#if: {{{6|}}}| |{{#if: {{{5|}}}| <span style="font-size:80%; font-weight:normal;"> }}{{#if: {{{4|}}}| <nowiki>[</nowiki> }}<span class="plainlinks">[}}http://{{{3|{{lancode}}}}}.diablowiki.net/index.php?title={{{1|DiabloWiki:Sandbox}}}&action=edit{{#if: {{{6|}}}| | {{{2|edit}}}]</span>{{#if: {{{4|}}}| <nowiki>]</nowiki> }}{{#if: {{{5|}}}| </span>}}}}</includeonly><noinclude> |
− | Related templates: | + | '''Related templates:''' |
* [[Template:Editurl]] - Used to create an edit url. Uses Lancode. Used in Editlink. | * [[Template:Editurl]] - Used to create an edit url. Uses Lancode. Used in Editlink. | ||
* [[Template:Lancode]] - It's the language code of the wiki. | * [[Template:Lancode]] - It's the language code of the wiki. | ||
− | * [[Template:Editlink]] - | + | * [[Template:Editlink]] - Used to create a small bracketed linkbox. Uses Lancode. |
[[Category:DiabloWiki templates]] | [[Category:DiabloWiki templates]] | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Revision as of 17:57, 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: edit me
| ||||
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:
- 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 - Used to create a small bracketed linkbox. Uses Lancode.