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:GP"
(added for Williams) |
(used MultiRes in Riesel/Proth) |
||
Line 13: | Line 13: | ||
*<nowiki>{{GP|Riesel prime 15|RMaxn}}</nowiki> results in | *<nowiki>{{GP|Riesel prime 15|RMaxn}}</nowiki> results in | ||
:{{GP|Riesel prime 15|RMaxn}} | :{{GP|Riesel prime 15|RMaxn}} | ||
+ | |||
+ | *<nowiki>{{GP|Riesel prime 65|RMaxn}}</nowiki> (using MultiReservation) results in | ||
+ | :{{GP|Riesel prime 65|RMaxn}} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
− | </noinclude><includeonly>{{#if:{{#pos:{{{1}}}|Williams}}|{{#vardefine:q|Williams prime}}|{{#vardefine:q|{{#sub:{{{1}}}|0|{{#rpos:{{{1}}}| }} }}}}}}{{#ifexist:{{{1}}}|{{#dpl:title={{{1}}}|skipthispage=no|include={ {{#var:q}}}:{{{2}}}}}|}}</includeonly> | + | </noinclude><includeonly>{{#if:{{#pos:{{{1}}}|Williams}}|{{#vardefine:q|Williams prime}}|{{#vardefine:q|{{#sub:{{{1}}}|0|{{#rpos:{{{1}}}| }} }}}}{{#vardefine:m|{{#dpl:title={{{1}}}|skipthispage=no|include={ {{#var:q}}}:{{#sub:{{{1}}}|0|1}}MultiRes}}}}}}{{#ifexist:{{{1}}}|{{#if:{{#var:m}}|{{Multi Reservation:{{#var:m}}-NMax}}|{{#dpl:title={{{1}}}|skipthispage=no|include={ {{#var:q}}}:{{{2}}}}} |
+ | }}|}}</includeonly> |
Revision as of 11:04, 15 April 2020
Description
Get a parameter value of a template by name if exists, "" (null) otherwise.
Call
- {{GP|<prime name>|<Parameter>}}
Examples
Get the parameter "CKReserved" from "Carol-Kynea base 2" primes
- {{GP|Carol-Kynea prime 2|CKBase}} results in
- 2
- {{GP|Riesel prime 15|RMaxn}} results in
- {{GP|Riesel prime 65|RMaxn}} (using MultiReservation) results in