Difference between revisions of "Template:Edit/doc"
From EVE University Wiki
m |
m |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{{main|Template:Edit}}</noinclude> | <noinclude>{{main|Template:Edit}}</noinclude> | ||
; Description | ; Description | ||
− | : This template generates an edit link to the specified page in the form of a icon. | + | : 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 | ; Usage | ||
: Add the page you want the edit link to lead to and optionally the size of the notepad image as a second argument: | : Add the page you want the edit link to lead to and optionally the size of the notepad image as a second argument: | ||
− | : | + | : <code><nowiki>{{edit|article|size}}</nowiki></code> |
; Example | ; Example | ||
: This code: | : This code: | ||
− | + | : <code><nowiki>{{edit|Template:Edit}}</nowiki></code> | |
− | : | ||
: Would result in this: | : Would result in this: | ||
− | |||
: {{edit|Template:Edit}} | : {{edit|Template:Edit}} | ||
: And this code: | : And this code: | ||
− | + | : <code><nowiki>{{edit|Template:Edit|32}}</nowiki></code> | |
− | : | ||
: Would result in this: | : Would result in this: | ||
− | |||
: {{edit|Template:Edit|32}} | : {{edit|Template:Edit|32}} | ||
− | <includeonly>[[Category: | + | <includeonly>[[Category:Link templates]]</includeonly> |
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> |
Latest revision as of 12:43, 15 March 2021
- Main article: Template:Edit
- 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}}