Changes

Jump to: navigation, search

Template:Edit/doc

1,798 bytes added, 05:03, 18 April 2016
Initial setup. Copy-over from http://templates.wikia.com/wiki/Template:Edit/doc
{{SPW|is not on|name=Edit}}
;Description
:This template creates a clickable edit link for the given page name.
;Syntax
:Type <code>{{t|edit}}</code>, <code>{{t|edit|pagename}}</code> or <code>{{t|edit|pagename|linkname}}</code>.
;Required parameters
: <code>1 =</code> Pagename to edit.
;Optional parameters
: <code>2 =</code> Linkname instead of "edit".
: <code>3 =</code> Section # to edit (warning, if sections are inserted above expected section, numbering will change).
: <code>color =</code> Alternative link color instead of inherited theme default.
: <code>float =</code> Alternative link float CSS instead of none.
: <code>fontsize =</code> Alternative link font size CSS instead of normal.
: <code>margintop=</code> Alternative link margin-top CSS instead of inherit.
;Sample output
:<code><nowiki>{{edit}}</nowiki></code> gives...
:{{edit}}
:<code><nowiki>{{edit|</nowiki>{{ns:Project}}<nowiki>}}</nowiki></code> gives...
:{{edit|{{ns:Project}}}}
:<code><nowiki>{{edit|</nowiki>{{ns:Project}}<nowiki>|edit the main page!}}</nowiki></code> gives...
:{{edit|{{ns:Project}}|edit the main page!}}
:<code><nowiki>{{edit|Template_guidelines|Edit template code rules (section 2)|2}}</nowiki></code> gives...
:{{edit|Template_guidelines|Edit template code rules (section 2)|2}}
:<code><nowiki>{{edit|Template_guidelines|3=2}}</nowiki></code> gives...
:{{edit|Template_guidelines|3=2}}
:<code><nowiki>{{edit|</nowiki>{{ns:Project}}<nowiki>|edit the main page!|color=gray|fontsize=small}}</nowiki></code> gives...
:{{edit|{{ns:Project}}|edit the main page!|color=gray|fontsize=small}}

<includeonly>
[[Category:General wiki templates]]
[[ja:テンプレート:Edit]]
[[zh:Template:Edit]]
</includeonly><noinclude>
[[Category:Template documentation]]
[[ja:テンプレート:Edit/doc]]
</noinclude>
1,071
edits

Navigation menu