模板:Editlink

出自【暗黑百科】DiabloWiki_凯恩之角

跳转到: 导航, 搜索

This template is created to help making a small and neat edit link for whatever page it's needed on. It's an advanced version of Editurl. The template uses 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. Must use underscores ("_") in place of spaces. (compulsory)* 2 - How you want the edit link to write out. Full "Edit", just an "e", or perhaps "Edit me" for example. (optional)* 2 - Changing to 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.{|style="border-collapse: collapse; background: #2D0606; clear:both;" width="50%"|colspan="3"|Example 1: {{editlink|Template:Editlink}}Will create: [http://模板:Lancode.diablowiki.net/index.php?title=Template:Editlink&action=edit edit]|colspan="3"|Example 2: {{editlink|Template:Editlink|edit me}}Will create: [http://模板:Lancode.diablowiki.net/index.php?title=Template:Editlink&action=edit edit me]|-|colspan="3"|Example 3: {{editlink|Template:Editlink|edit me|de}}Will create: edit me|colspan="3"|Example 4: {{editlink|Template:Editlink|edit me|de|A}}Will create: [edit me]|-|colspan="2" width="33%"| |colspan="2" width="34%"| Example 5: {{editlink|Template:Editlink|edit me|de|A|A}}Will create: [edit me]|colspan="2" width="33%"| |}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.

个人工具
分享到: 更多
名字空间
变换
动作
网站地图
暗黑破坏神 III
暗黑破坏神 II
暗黑破坏神
工具箱
编辑箱
关于暗黑百科