Template:Editsection: Difference between revisions
Jump to navigation
Jump to search
imported>Drew R. Smith (New page: <div class="editsection plainlinks" style="float:right; margin-left:5px; font-weight:normal; font-style:normal; font-variant:normal; font-stretch:normal; font-size-adjust:none; line-height...) |
imported>Drew R. Smith mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<div class="editsection plainlinks" style="float:right; margin-left:5px; font-weight:normal; font-style:normal; font-variant:normal; font-stretch:normal; font-size-adjust:none; line-height:normal; font-size:100%; font-family:sans-serif; text-decoration:none; color:#000000;">[<span style="color:#002bb8;">[{{fullurl:{{FULLPAGENAME}}|action=edit§ion={{{1|{{{section|0}}}}}}}} edit]</span>]</div>< | <div class="editsection plainlinks" style="float:right; margin-left:5px; font-weight:normal; font-style:normal; font-variant:normal; font-stretch:normal; font-size-adjust:none; line-height:normal; font-size:100%; font-family:sans-serif; text-decoration:none; color:#000000;">[<span style="color:#002bb8;">[{{fullurl:{{FULLPAGENAME}}|action=edit§ion={{{1|{{{section|0}}}}}}}} edit]</span>]</div><noinclude> | ||
{{TlDoc}} | {{TlDoc}} | ||
</ | </noinclude> |
Latest revision as of 04:56, 16 June 2009
[edit]
The template {{Editsection}} (which uses a <div>
) allows the creation of a right-hand-side "[edit]" link where one otherwise would not exist.
The templates take a single parameter, the number of the section to edit, as this will appear in the edit URL. If unspecified, it defaults to 0. The principal use of this is to add an edit link to the lead section (section 0) of article with long leads. It cannot be used to add edit links to arbitrary blocks, as they will not have section numbers.
Examples
{{Editsection}} Produces
[edit]
and
{{Editsection|1}} Produces
[edit]