This site is supported by donations to The OEIS Foundation.

Template:Edit/doc

From OeisWiki
Jump to: navigation, search

This documentation subpage contains instructions, categories, or other information for Template:Edit. [<Edit> Template:Edit]

[⧼Purge⧽ Template:Edit/doc]

The {{edit}} OEIS Wiki utility template adds a small <Edit> link to a page (as you see above).

Usage

To edit the current page (as default):

{{edit}}

or

{{edit|label = link label}}

To edit some other page:

{{edit|full page title}}

or

{{edit|title = full page title}}

or

{{edit|full page title|link label}}

or

{{edit|title = full page title|label = link label}}

or

{{edit|full page title|link label|section id}}

or

{{edit|title = full page title|label = link label|section = section id}}

where

  • title (first argument): full page title (namespace prefix:page title) (default is current page);
  • label (second argument): link label (optional) (default is <Edit> if page exists, <Create> if page does not exist);
  • section (third argument): section id (optional) (nonnegative integer: 0 refers to the top section, i.e. before the first heading). (Unfortunately, using section titles doesn't work!).

Examples

NOTE: the optional : prefix refers to the (Main) namespace.

Examples with existing pages

NOTE: Check the section edit test link at the top right of this page!

Code Result Comment
{{Ed}} <Edit> Template:Edit/doc  
{{Edit}} <Edit> Template:Edit/doc  
{{Ed|label=Edit this page}} Edit this page  
{{Edit|label=Edit this page}} Edit this page  
{{Edit|Template:Edit/doc|Edit top section|section=0}} Edit top section (Edit top section)
{{Ed|Template:Purge}} <Edit> Template:Purge  
{{Edit|Template:Purge}} <Edit> Template:Purge  
{{Ed|Template:Purge|Modify Template:Purge}} Modify Template:Purge  
{{Edit|Template:Purge|Modify Template:Purge}} Modify Template:Purge  
{{Edit|Fibonacci numbers}} <Edit> Fibonacci numbers  
{{Edit|:Fibonacci numbers}} <Edit> :Fibonacci numbers  
{{Edit|Riemann zeta function||3}} <Edit> Riemann zeta function (Edit section)
{{Edit|Riemann zeta function|section = 3}} <Edit> Riemann zeta function (Edit section)
{{Edit|Riemann zeta function||1.2}} <Edit> Riemann zeta function (Reply: Section doesn't exist!)
{{Edit|Riemann zeta function||Analytic continuation within the critical strip}} <Edit> Riemann zeta function (Edits section id 0, i.e. top of page, before first heading.)
{{Edit|Template:Sequence of the Day's terms or constant}} <Edit> Template:Sequence of the Day's terms or constant  
{{Edit|Template:Sequence of the Day's terms or constant/doc}} <Edit> Template:Sequence of the Day's terms or constant/doc  

Examples with nonexisting pages

Code Result
{{Ed|Lucanacci numbers}} <Create> Lucanacci numbers
{{Ed|:Lucanacci numbers}} <Create> :Lucanacci numbers
{{Edit|Lucanacci numbers}} <Create> Lucanacci numbers
{{Edit|:Lucanacci numbers}} <Create> :Lucanacci numbers
{{Edit|+ operator}} <Create> + operator

Code

See the quite different version of the code on meta.wikimedia.org.

See also