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"
(used MultiRes in Riesel/Proth) |
|||
Line 16: | Line 16: | ||
*<nowiki>{{GP|Riesel prime 65|RMaxn}}</nowiki> (using MultiReservation) results in | *<nowiki>{{GP|Riesel prime 65|RMaxn}}</nowiki> (using MultiReservation) results in | ||
:{{GP|Riesel prime 65|RMaxn}} | :{{GP|Riesel prime 65|RMaxn}} | ||
+ | |||
+ | *<nowiki>{{GP|Riesel prime 65|RDate}}</nowiki> (using MultiReservation) results in | ||
+ | :{{GP|Riesel prime 65|RDate}} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
− | </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}}}} | + | </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}}}|{{#dpl:title={{{1}}}|skipthispage=no|include={ {{#var:q}}}:{{{2}}}}}}}<!-- | ||
+ | -->{{#if:{{#var:m}}| | ||
+ | {{#switch:{{{2}}} | ||
+ | |RMaxn |PMaxn={{Multi Reservation:{{#var:m}}-NMax}} | ||
+ | |RDate |PDate={{Multi Reservation:{{#var:m}}-Date}} | ||
+ | }} | ||
+ | }}</includeonly> |
Revision as of 13:00, 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
- {{GP|Riesel prime 65|RDate}} (using MultiReservation) results in