Template:Edit

From Project: Gorgon Wiki
Jump to: navigation, search

[edit]

Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
Description
This template creates a clickable edit link for the given page name.
Syntax
Type Template:T, Template:T or Template:T.
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!]
The above text is transcluded from Template:Edit/doc; you can change it or view its history. (How does this work?)
If you're done making changes, please refresh the text. (Why?)
You can experiment in this template's sandbox (create | mirror ) and testcases (create) pages.
Please add categories and interwikis to Template:Edit/doc. (View all subpages of this page.)