Difference between revisions of "Template:Edit"
From EVE University Wiki
(Copy in magicword to autoresolve edit link (cf. Template:Navbar). Not sure what to do when no parameter is specified - there is a possibility of calling the page-name it is transcluded to by magic word, but that is very complicated/confusing) |
(Moved documentation to Template:Edit/doc) |
||
(10 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | [[image:notepad.png|{{#switch: {{{2|}}} | = 12 | #default = {{{2}}}}}px|link= | + | <includeonly>[[image:notepad.png|{{#switch: {{{2|}}} | = 12 | #default = {{{2}}}}}px|link=http://wiki.eveuniversity.org/index.php?title={{{1|}}}&action=edit|Click to edit.]]</includeonly><noinclude> |
− | + | {{documentation}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</noinclude> | </noinclude> |
Latest revision as of 03:00, 26 March 2017
Template documentation (for the above template, sometimes hidden or invisible)
- Description
- This template generates an edit link to the specified page in the form of a icon, for example if you want to add a direct edit link to a template used as a portal for many other pages. If called from inside the portal-template itself, the page in question would be the page it's called from (the main article) and not the template itself, due to how transclusion is parsed. Thus the need for this template.
- Usage
- Add the page you want the edit link to lead to and optionally the size of the notepad image as a second argument:
{{edit|article|size}}
- Example
- This code:
{{edit|Template:Edit}}
- And this code:
{{edit|Template:Edit|32}}