Template:EditSection
From WikiPathways
(Difference between revisions)
Current revision (21:30, 20 April 2007) (view source) m (Protected "Template:EditSection" [edit=sysop:move=sysop]) |
|||
(33 intermediate revisions not shown.) | |||
Line 1: | Line 1: | ||
- | + | <span class="plainlinks" style="float:right;margin-right:5px;margin-top:-30px;clear:left;{{{style}}}"><nowiki>[</nowiki>[{{SERVER}}{{localurl:{{#if:{{{page|}}}|{{{page}}}|{{FULLPAGENAME}}}}|action=edit§ion={{{section}}}}} edit]<nowiki>]</nowiki></span><noinclude> | |
- | <noinclude> | + | |
- | + | ||
'''Description''' | '''Description''' | ||
Line 7: | 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. | ||
- | |||
'''Usage''' | '''Usage''' | ||
- | Add <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|section=#}}</nowiki></tt> above the section header you want to make editable. | + | 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> |
Current revision
[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.