Template:EditSection

From WikiPathways

(Difference between revisions)
Jump to: navigation, search
m (Reverted edits by Thomas (Talk); changed back to last version by AlexanderPico)
Line 1: Line 1:
-
<span class="plainlinks" style="float:right;margin-right:5px;margin-top:15px;clear:left;{{{style}}}"><nowiki>[</nowiki>[{{SERVER}}{{localurl:{{FULLPAGENAME}}|action=edit&section={{{section}}}}} edit]<nowiki>]</nowiki></span>{{#if:{{{section|}}}|<span>==test==</span>|}}<noinclude>
+
<span class="plainlinks" style="float:right;margin-right:5px;margin-top:15px;clear:left"><nowiki>[</nowiki>[{{SERVER}}{{localurl:{{FULLPAGENAME}}|action=edit&section={{{section}}}}} edit]<nowiki>]</nowiki></span><noinclude>
-
__NOEDITSECTION__
+
 
'''Description'''
'''Description'''
Line 6: Line 6:
To edit a section of a page when <nowiki>__NOEDITSECTION__</nowiki> 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.
To edit a section of a page when <nowiki>__NOEDITSECTION__</nowiki> 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 }}
 
'''Usage'''
'''Usage'''
-
Add <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|section=#}}</nowiki></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].
+
Add <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|section=#}}</nowiki></tt> above the section header you want to make editable. Replase "#" with the number of the section.  
</noinclude>
</noinclude>

Revision as of 17:34, 13 April 2007

[edit]


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.


Usage

Add {{EditSection|section=#}} above the section header you want to make editable. Replase "#" with the number of the section.


Personal tools