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:MersWorktype"
(new) |
(changed text background) |
||
Line 10: | Line 10: | ||
==Example== | ==Example== | ||
− | |||
<pre> | <pre> | ||
{{MersWorktype|80956769|DC:75|reserved by Karbon}} | {{MersWorktype|80956769|DC:75|reserved by Karbon}} | ||
</pre> | </pre> | ||
− | + | displays as | |
:{{MersWorktype|80956769|DC:75|reserved by Karbon}} | :{{MersWorktype|80956769|DC:75|reserved by Karbon}} | ||
− | <noinclude><includeonly>{{#switch:{{#explode:{{{2}}}|:|0}} | + | <pre> |
− | |DC=''' | + | *{{MersWorktype|1237|DC:83}} |
+ | </pre> | ||
+ | displays as | ||
+ | *{{MersWorktype|1237|DC:83}}</noinclude><includeonly>{{#switch:{{#explode:{{{2}}}|:|0}} | ||
+ | |DC='''[https://www.mersenne.org/report_exponent/?exp_lo={{{1}}}&full=1 M{{{1}}}]''': {{Key|1=DoubleCheck={{{1}}},{{#explode:{{{2}}}|:|1}},1}} {{#if:{{{3|}}}| ({{{3}}})}} | ||
|#default=ERR}}</includeonly> | |#default=ERR}}</includeonly> |
Latest revision as of 20:49, 16 March 2019
Purpose
Display the given worktype and Mersenne exponent with a link and as text.
Calling
Possibile 3 unnamed parameters:
- <exponent>: exponent of a Mersenne number
- <woktype>: worktype (with bits) of the exponent to show
- <comment>: (optional) can contain a comment/reservation/additional information
Example
{{MersWorktype|80956769|DC:75|reserved by Karbon}}
displays as
- M80956769: DoubleCheck=80956769,75,1 (reserved by Karbon)
*{{MersWorktype|1237|DC:83}}
displays as
- M1237: DoubleCheck=1237,83,1