Difference between revisions of "Template:Edit/doc"
From Project: Gorgon Wiki
(Initial setup. Copy-over from http://templates.wikia.com/wiki/Template:Edit/doc) |
m (Removing unused foreign-language links) |
||
| Line 29: | Line 29: | ||
<includeonly> | <includeonly> | ||
[[Category:General wiki templates]] | [[Category:General wiki templates]] | ||
| − | |||
| − | |||
</includeonly><noinclude> | </includeonly><noinclude> | ||
[[Category:Template documentation]] | [[Category:Template documentation]] | ||
| − | |||
</noinclude> | </noinclude> | ||
Latest revision as of 05:05, 18 April 2016
| This template was copied from Template:Edit on Wikia Templates. That wiki should periodically be checked for a new version of this template. |
- Description
- This template creates a clickable edit link for the given page name.
- Syntax
- Type
{{edit}},{{edit|pagename}}or{{edit|pagename|linkname}}. - Required parameters
-
1 =Pagename to edit. - Optional parameters
-
2 =Linkname instead of "edit". -
3 =Section # to edit (warning, if sections are inserted above expected section, numbering will change). -
color =Alternative link color instead of inherited theme default. -
float =Alternative link float CSS instead of none. -
fontsize =Alternative link font size CSS instead of normal. -
margintop=Alternative link margin-top CSS instead of inherit. - Sample output
{{edit}}gives...- [edit]
{{edit|Project Gorgon}}gives...- [edit]
{{edit|Project Gorgon|edit the main page!}}gives...- [edit the main page!]
{{edit|Template_guidelines|Edit template code rules (section 2)|2}}gives...- [Edit template code rules (section 2)]
{{edit|Template_guidelines|3=2}}gives...- [edit]
{{edit|Project Gorgon|edit the main page!|color=gray|fontsize=small}}gives...- [edit the main page!]