Template:EditSection

From WikiPathways

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
-
<span class="plainlinks" style="float:right;margin-left:5px;"><nowiki>[</nowiki>[{{SERVER}}{{localurl:{{FULLPAGENAME}}|action=edit&section={{{section}}}}} edit]<nowiki>]</nowiki></span><noinclude>
+
<span class="plainlinks" style="float:right;margin-left:50px;"><nowiki>[</nowiki>[{{SERVER}}{{localurl:{{FULLPAGENAME}}|action=edit&section={{{section}}}}} edit]<nowiki>]</nowiki></span><noinclude>
'''Description'''
'''Description'''
-
To edit a particular section of the page when <nowiki>__NOEDITSECTION__</nowiki> is evoked, one usually has to edit the whole page. This template creates an edit link for '''section 2'''.
+
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.
-
The section 2 link is:<br/>
 
-
<span class="plainlinks">[{{SERVER}}{{localurl:{{PAGENAME}}|action=edit&section=2}} {{SERVER}}{{localurl:{{PAGENAME}}|action=edit&section=2}}]</span>
 
'''Usage'''
'''Usage'''
-
Add <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>}}</nowiki></tt> to your page where the edit link should appear (on the right hand side, as usual), above the section header.  
+
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 01:34, 5 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