Template:EditSection

From WikiPathways

Revision as of 17:04, 13 April 2007 by Thomas (Talk | contribs)
Jump to: navigation, search
{{#if:|{{{section}}}
|}}<span class="plainlinks" style="align=right;font-size:1em;margin-right:5px;margin-top:15px;clear:left">[[{{SERVER}}{{localurl:{{FULLPAGENAME}}|action=edit&section={{{section}}}}} edit]]</span>{{{level|}}}<noinclude>
__NOEDITSECTION__

'''Description'''

To edit a section of a page when __NOEDITSECTION__ is evoked, one usually has to edit the whole page. This template creates an edit link for a particular section. Note that this can also be used to add an edit link for text above the first section on a page, i.e., section=0.

{{EditSection|section=test|level===}}

'''Usage'''

Add <tt>{{{{PAGENAME}}|section=#}}</tt> above the section header you want to make editable. Replace "#" with the number of the section. Subsections have a single number, so section 2.1 will be numbered 3, this will cause section 3 to be numbered 4 (see [http://en.wikipedia.org/wiki/Help:Section Sections].

</noinclude>
Personal tools