Log in Discussion History Go to the site toolbox

Difference between revisions of "Template talk:Editsection"

From BluWiki

m (Reverted edits by 221.4.151.150 (Talk); changed back to last version by Sam Odio)
Line 2: Line 2:
 
== Purpose ==
 
== Purpose ==
  
;
+
;{{[[template:editsection|editsection]]}}
 +
 
 +
Allows readers to edit a particular section of the page they're looking at.  If you are writing or editing a page that you want your readers to edit, but you would prefer that they not edit certain sections, you can include <nowiki>__NOEDITSECTION__</nowiki> at the top of the page to turn off all section edit links, and then you can allow particular sections to be edited using this template.
 +
 
 +
== Usage ==
 +
 
 +
<code>&#123;{editsection|sectionnumber|text}}</code>
 +
 
 +
<!-- explain what this template's parameters do -- if no params, delete that word. -->
 +
;sectionnumber
 +
The number of the section to be edited.  Every header that begins with two equals-signs (==) counts as one section.  Section zero is the text before the first header, if any.
 +
;text
 +
The text you want your reader to see.  This text will be rendered as a link.  When the link is clicked, the reader will be able to edit the specified section.
 +
;float right
 +
In keeping with wiki tradition, you might want to enclose the Editsection link in a division that floats to the right.  See the example, below.
 +
 
 +
== Example ==
 +
 
 +
<div style="float:right">{{editsection|3|[edit this example]}}</div>
 +
<code>&#60;div style="float:right">&#123;{editsection|3|[edit this example]}}&#60;/div></code><br>
 +
results in the link you see to the right of this section.
 +
 
 +
== History ==
 +
 
 +
Created &mdash;[[User:GraemeMcRae|GraemeMcRae]]<sup>[[User talk:GraemeMcRae|talk]]</sup> 11:51, 21 Nov 2005 (EST)
 +
 
 +
== Discussion ==

Revision as of 22:32, 18 September 2007

Purpose

{{editsection}}

Allows readers to edit a particular section of the page they're looking at. If you are writing or editing a page that you want your readers to edit, but you would prefer that they not edit certain sections, you can include __NOEDITSECTION__ at the top of the page to turn off all section edit links, and then you can allow particular sections to be edited using this template.

Usage

{{editsection|sectionnumber|text}}

sectionnumber

The number of the section to be edited. Every header that begins with two equals-signs (==) counts as one section. Section zero is the text before the first header, if any.

text

The text you want your reader to see. This text will be rendered as a link. When the link is clicked, the reader will be able to edit the specified section.

float right

In keeping with wiki tradition, you might want to enclose the Editsection link in a division that floats to the right. See the example, below.

Example

[edit this example]

<div style="float:right">{{editsection|3|[edit this example]}}</div>
results in the link you see to the right of this section.

History

Created —GraemeMcRaetalk 11:51, 21 Nov 2005 (EST)

Discussion

Site Toolbox:

Personal tools
GNU Free Documentation License 1.2

Disclaimers - About BluWiki