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"
(renamed) |
(using NVal list template) |
||
Line 26: | Line 26: | ||
|CKDate=2019-01-01 | |CKDate=2019-01-01 | ||
|CKReserved=Karbon | |CKReserved=Karbon | ||
− | |CKClist=1 | + | |CKClist= |
− | |CKKlist=5 | + | 1;234;C:text |
+ | 2;564 | ||
+ | 4 | ||
+ | |CKKlist= | ||
+ | 5;C:Another text | ||
+ | 6;C:see [[Examples]] | ||
+ | 7 | ||
|CKRemarks=None | |CKRemarks=None | ||
|CKSieve=y | |CKSieve=y | ||
Line 38: | Line 44: | ||
|CKDate=2019-01-01 | |CKDate=2019-01-01 | ||
|CKReserved=Karbon | |CKReserved=Karbon | ||
− | |CKClist=1 | + | |CKClist= |
− | |CKKlist=5 | + | 1;234;C:text |
+ | 2;564 | ||
+ | 4 | ||
+ | |CKKlist= | ||
+ | 5;C:Another text | ||
+ | 6;C:see [[Examples]] | ||
+ | 7 | ||
|CKRemarks=None | |CKRemarks=None | ||
|CKSieve=y | |CKSieve=y | ||
Line 93: | Line 105: | ||
"description": "Current data for Caol/Kynea base <b>" | "description": "Current data for Caol/Kynea base <b>" | ||
} | } | ||
− | </templatedata> | + | </templatedata>{{#vardefine:dum|1}} |
− | </noinclude><includeonly> | + | </noinclude><includeonly>{{#if:{{#varexits:dum}}||{{DISPLAYTITLE:Carol/Kynea primes of the form: ({{#explode:{{PAGENAME}}||-1}}<sup>n</sup>±1)<sup>2</sup>-2}}}} |
==Current data== | ==Current data== | ||
{| style="border:solid black 1px" | {| style="border:solid black 1px" | ||
Line 112: | Line 124: | ||
| <div width="85%"> | | <div width="85%"> | ||
{| | {| | ||
− | | <b>C {{padleft:{{#if:{{{CKClist|}}}|{{ | + | | <b>C {{padleft:{{#if:{{{CKClist|}}}|{{NVal list|{{{CKClist}}}|count}}|0}}|2}} : </b> {{NVal list|{{{CKClist}}}}} |
|- | |- | ||
| <hr> | | <hr> | ||
|- | |- | ||
− | | <b>K {{padleft:{{#if:{{{CKKlist|}}}|{{ | + | | <b>K {{padleft:{{#if:{{{CKKlist|}}}|{{NVal list|{{{CKKlist}}}|count}}|0}}|2}} : </b> {{NVal list|{{{CKKlist}}}}} |
|} | |} | ||
</div> | </div> | ||
Line 124: | Line 136: | ||
{{!}} <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| | ||
+ | ==Notes== | ||
+ | <references />}}<!-- | ||
-->{{#if:{{{CKClist|}}}||[[Category:Carol-Kynea without Carol]]}}<!-- | -->{{#if:{{{CKClist|}}}||[[Category:Carol-Kynea without Carol]]}}<!-- | ||
-->{{#if:{{{CKKlist|}}}||[[Category:Carol-Kynea without Kynea]]}}<!-- | -->{{#if:{{{CKKlist|}}}||[[Category:Carol-Kynea without Kynea]]}}<!-- | ||
-->{{#if:{{{CKClist|}}}||{{#if:{{{CKKlist|}}}||[[Category:Carol-Kynea without both]]}}}}</includeonly> | -->{{#if:{{{CKClist|}}}||{{#if:{{{CKKlist|}}}||[[Category:Carol-Kynea without both]]}}}}</includeonly> |
Revision as of 07:54, 2 April 2019
Description
Template Carol-Kynea prime
Display of current data for Carol/Kynea-type base.
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 Caol/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
| String | 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 |