This site is supported by donations to The OEIS Foundation.
Template:Edit
From OeisWiki
(Redirected from Template:Ed)
The following documentation is located at Template:Edit/doc. [<Edit> Template:Edit/doc]
[⧼Purge⧽ Template:Edit]
[⧼Purge⧽ Template:Edit]
The {{edit}} OEIS Wiki utility template adds a small <Edit> link to a page (as you see above).
Contents
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 {{Edit}} <Edit> Template:Edit {{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
- {{Edit}} ({{Ed}})
- {{Edit request}} (and Category:Protected items with edit request)
- {{Purge}}