Currently there may be errors shown on top of a page, because of a missing Wiki update (PHP version and extension DPL3). |
Navigation
Topics | Help • Register • News • History • How to • Sequences statistics • Template prototypes |
Difference between revisions of "Template:Greatest Mersenne Prime"
(parameters) |
(M52) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
− | This template will show the currently greatest Mersenne | + | {{Last update|2019-02-15}} |
+ | This template will show the currently greatest [[Mersenne prime]] found. | ||
− | Depending of a given parameter the information | + | Depending of a given parameter the rendered information differs. |
==Calling== | ==Calling== | ||
Line 10: | Line 11: | ||
==Parameter== | ==Parameter== | ||
:<code>number</code>: The number in TeX-notation is given with a link to the page for that Mersenne prime. | :<code>number</code>: The number in TeX-notation is given with a link to the page for that Mersenne prime. | ||
− | :< | + | :<code>only</code>: The number in HTML-notation is given for that Mersenne prime, language specific delimiters. |
+ | :<code>pure</code>: The number in HTML-notation is given as a link to the page for that Mersenne prime, language specific delimiters. | ||
+ | :<code>text</code>: The number in HTML-notation is given with a link to the page for that Mersenne prime, language specific delimiters. | ||
:<code>count</code>: Only the current count for this Mersenne number as link is given. | :<code>count</code>: Only the current count for this Mersenne number as link is given. | ||
==Examples== | ==Examples== | ||
<code><nowiki>{{Greatest Mersenne Prime|number}}</nowiki></code> gives {{Greatest Mersenne Prime|number}} | <code><nowiki>{{Greatest Mersenne Prime|number}}</nowiki></code> gives {{Greatest Mersenne Prime|number}} | ||
+ | |||
+ | <code><nowiki>{{Greatest Mersenne Prime|only}}</nowiki></code> gives {{Greatest Mersenne Prime|only}} | ||
+ | |||
+ | <code><nowiki>{{Greatest Mersenne Prime|pure}}</nowiki></code> gives {{Greatest Mersenne Prime|pure}} | ||
<code><nowiki>{{Greatest Mersenne Prime|text}}</nowiki></code> gives {{Greatest Mersenne Prime|text}} | <code><nowiki>{{Greatest Mersenne Prime|text}}</nowiki></code> gives {{Greatest Mersenne Prime|text}} | ||
Line 23: | Line 30: | ||
Use this template on other pages instead of editing every page. | Use this template on other pages instead of editing every page. | ||
− | [[Category: | + | [[Category:Prime collections]]</noinclude> |
<includeonly>{{#switch:{{{1}}} | <includeonly>{{#switch:{{{1}}} | ||
− | |number=<math>2^{ | + | |number=<math>2^{136\,279\,841}-1</math> ([[M52]]) |
− | |text=2<sup> | + | |only=2<sup>{{Num|136279841}}</sup>-1 |
− | |count=[[ | + | |pure=[[M52|2<sup>{{Num|136279841}}</sup>-1]] |
+ | |text=2<sup>{{Num|136279841}}</sup>-1 ([[M52]]) | ||
+ | |count=[[M52|52]] | ||
|#default=<span style="color:red">'''''ERROR in calling template "Greatest Mersenne Prime"'''''</span>}}</includeonly> | |#default=<span style="color:red">'''''ERROR in calling template "Greatest Mersenne Prime"'''''</span>}}</includeonly> |
Latest revision as of 10:45, 22 October 2024
Last update: 2019-02-15 |
This template will show the currently greatest Mersenne prime found.
Depending of a given parameter the rendered information differs.
Calling
{{Greatest Mersenne Prime|<parameter>}}
The parameter is optional.
Parameter
number
: The number in TeX-notation is given with a link to the page for that Mersenne prime.only
: The number in HTML-notation is given for that Mersenne prime, language specific delimiters.pure
: The number in HTML-notation is given as a link to the page for that Mersenne prime, language specific delimiters.text
: The number in HTML-notation is given with a link to the page for that Mersenne prime, language specific delimiters.count
: Only the current count for this Mersenne number as link is given.
Examples
{{Greatest Mersenne Prime|number}}
gives
[math]\displaystyle{ 2^{136\,279\,841}-1 }[/math] (M52)
{{Greatest Mersenne Prime|only}}
gives
2136,279,841-1
{{Greatest Mersenne Prime|pure}}
gives
2136,279,841-1
{{Greatest Mersenne Prime|text}}
gives
2136,279,841-1 (M52)
{{Greatest Mersenne Prime|count}}
gives
52
A false or no parameter prints an error code: ERROR in calling template "Greatest Mersenne Prime"
Use this template on other pages instead of editing every page.