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"
(extended) |
(default for no MultiRes) |
||
Line 19: | Line 19: | ||
*<nowiki>{{GP|Riesel prime 65|RDate}}</nowiki> (using MultiReservation) results in | *<nowiki>{{GP|Riesel prime 65|RDate}}</nowiki> (using MultiReservation) results in | ||
:{{GP|Riesel prime 65|RDate}} | :{{GP|Riesel prime 65|RDate}} | ||
+ | |||
+ | *<nowiki>{{GP|Riesel prime 65|RNlist}}</nowiki> (ignoring MultiReservation) results in | ||
+ | :{{GP|Riesel prime 65|RNlist}} | ||
[[Category:Templates]]</noinclude><includeonly><!-- | [[Category:Templates]]</noinclude><includeonly><!-- | ||
-->{{#vardefine:_type|none}}<!-- | -->{{#vardefine:_type|none}}<!-- | ||
Line 36: | Line 39: | ||
|RMaxn |PMaxn={{Multi Reservation:{{#var:_mres}}-NMax}} | |RMaxn |PMaxn={{Multi Reservation:{{#var:_mres}}-NMax}} | ||
|RDate |PDate={{Multi Reservation:{{#var:_mres}}-Date}} | |RDate |PDate={{Multi Reservation:{{#var:_mres}}-Date}} | ||
+ | |#default={{#dpl:title={{{1}}}|skipthispage=no|include={ {{#var:_type}}}:{{{2}}}}} | ||
}} | }} | ||
|{{#dpl:title={{{1}}}|skipthispage=no|include={ {{#var:_type}}}:{{{2}}}}}}} | |{{#dpl:title={{{1}}}|skipthispage=no|include={ {{#var:_type}}}:{{{2}}}}}}} | ||
}}</includeonly> | }}</includeonly> |
Revision as of 08:20, 27 May 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
- {{GP|Riesel prime 65|RNlist}} (ignoring MultiReservation) results in