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:Carol-Kynea prime"
m |
(redone) |
||
Line 115: | Line 115: | ||
</templatedata> | </templatedata> | ||
[[Category:Prime collections]]</noinclude><includeonly>{{#ifeq:{{NAMESPACENUMBER}}|0|<!-- | [[Category:Prime collections]]</noinclude><includeonly>{{#ifeq:{{NAMESPACENUMBER}}|0|<!-- | ||
− | -->{{#vardefine:b|{{#explode:{{PAGENAME}}||-1}}}}{{DISPLAYTITLE:Carol/Kynea primes of the form: ({{# | + | -->{{#vardefine:b|{{#explode:{{PAGENAME}}||-1}}}}{{DISPLAYTITLE:Carol/Kynea primes of the form: ({{#var:b}}<sup>n</sup>±1)<sup>2</sup>-2}}<!-- |
− | -->{{#if:{{{CKClist|}}}||[[Category:Carol-Kynea without Carol]]}}<!-- | + | -->{{#if:{{{CKClist|}}}||[[Category:Carol-Kynea without Carol|#.....{{padleft:{{#var:b}}|5}}]]}}<!-- |
− | -->{{#if:{{{CKKlist|}}}||[[Category:Carol-Kynea without Kynea]]}}<!-- | + | -->{{#if:{{{CKKlist|}}}||[[Category:Carol-Kynea without Kynea|#.....{{padleft:{{#var:b}}|5}}]]}}<!-- |
− | -->{{#if:{{{CKClist|}}}||{{#if:{{{CKKlist|}}}||[[Category:Carol-Kynea without both]]}}}}<!-- | + | -->{{#if:{{{CKClist|}}}||{{#if:{{{CKKlist|}}}||[[Category:Carol-Kynea without both|#.....{{padleft:{{#var:b}}|5}}]]}}}}<!-- |
− | -->{{#if:{{#pos:{{{CKRemarks|}}}|Power}}|[[Category:Carol-Kynea power-of]]}}<!-- | + | -->{{#if:{{#pos:{{{CKRemarks|}}}|Power}}|[[Category:Carol-Kynea power-of|#.....{{padleft:{{#var:b}}|5}}]]}}<!-- |
− | -->[[Category:Carol-Kynea prime]]}} | + | -->[[Category:Carol-Kynea prime|#.....{{padleft:{{#var:b}}|5}}]]}} |
==Current data== | ==Current data== | ||
{| style="border:solid black 1px" | {| style="border:solid black 1px" | ||
Line 150: | Line 150: | ||
{{!}} <div height="120%" style="background-color:#ddd;"><b>Remarks : </b></div> {{!}}{{!}} {{{CKRemarks}}} | {{!}} <div height="120%" style="background-color:#ddd;"><b>Remarks : </b></div> {{!}}{{!}} {{{CKRemarks}}} | ||
{{!}}} | {{!}}} | ||
− | }}{{#ifexpr:{{#if:{{#pos:{{{CKClist}}}|:}}|1|0}} + {{#if:{{#pos:{{{CKKlist}}}|:}}|1|0}} > 0| | + | }} |
+ | {{#ifexpr:{{#if:{{#pos:{{{CKClist}}}|:}}|1|0}} + {{#if:{{#pos:{{{CKKlist}}}|:}}|1|0}} > 0| | ||
==Notes== | ==Notes== | ||
<references />}}</includeonly> | <references />}}</includeonly> |
Revision as of 01:50, 10 April 2019
Description
Template Carol-Kynea prime
Display of current data for Carol/Kynea-type base.
Notes:
- The page title is displayed with the formula.
- The category Carol-Kynea prime is set.
- If no Carol primes are given, the page is categorized into Carol-Kynea without Carol.
- If no Kynea primes are given, the page is categorized into Carol-Kynea without Kynea.
- If no primes are given at all, the page is categorized into Carol-Kynea without both.
- If <CKRemarks> contains "Power" the page is categorized into Carol-Kynea power-of.
Calling
{{Carol-Kynea prime |CKBase= |CKMaxn= |CKDate= |CKReserved= |CKClist= |CKKlist= |CKRemarks= |CKSieve= }}
Example
{{Carol-Kynea prime |CKBase=2 |CKMaxn=1234 |CKDate=2019-01-01 |CKReserved=Karbon |CKClist= 1;234;C:text 2;564 4 |CKKlist= 5;C:Another text 6;C:see [[Examples]] 7 |CKRemarks=None |CKSieve=y }}
will create:
Current data
|
|
Remarks : |
None |
Notes
Template-data
Current data for Carol/Kynea base <b>
Parameter | Description | Type | Status | |
---|---|---|---|---|
Base b | CKBase | Base for this type
| String | required |
Max ''n'' | CKMaxn | Maximal searched ''n''-value
| String | optional |
Date | CKDate | Date of last edit
| String | optional |
Reserved by | CKReserved | Reserved by contributor, if given
| String | optional |
List C-primes | CKClist | List of prime ''n''-values on Carol-side
| Content | optional |
List K-primes | CKKlist | List of prime ''n''-values on Kynea-side
| String | optional |
Remarks | CKRemarks | Remarks for this base
| String | optional |
Sieve available | CKSieve | If a sieve file is available, the link is generated
| String | optional |