Currently there may be errors shown on top of a page, because of a missing Wiki update (PHP version and extension DPL3). |
Topics | Help • Register • News • History • How to • Sequences statistics • Template prototypes |
Difference between revisions of "Template:Carol-Kynea prime"
(counting parameters added + remarks) |
(counts deleted + automated) |
||
Line 19: | Line 19: | ||
|CKReserved= | |CKReserved= | ||
|CKClist= | |CKClist= | ||
− | |||
|CKKlist= | |CKKlist= | ||
− | |||
|CKRemarks= | |CKRemarks= | ||
|CKSieve= | |CKSieve= | ||
Line 38: | Line 36: | ||
2;564 | 2;564 | ||
4 | 4 | ||
− | |||
|CKKlist= | |CKKlist= | ||
5;C:Another text | 5;C:Another text | ||
Line 57: | Line 54: | ||
2;564 | 2;564 | ||
4 | 4 | ||
− | |||
|CKKlist= | |CKKlist= | ||
5;C:Another text | 5;C:Another text | ||
Line 97: | Line 93: | ||
"description": "List of prime ''n''-values on Carol-side" | "description": "List of prime ''n''-values on Carol-side" | ||
}, | }, | ||
− | |||
"CKKlist": { | "CKKlist": { | ||
"type": "string", | "type": "string", | ||
Line 103: | Line 98: | ||
"description": "List of prime ''n''-values on Kynea-side" | "description": "List of prime ''n''-values on Kynea-side" | ||
}, | }, | ||
− | |||
"CKRemarks": { | "CKRemarks": { | ||
"type": "string", | "type": "string", | ||
Line 136: | Line 130: | ||
| <div width="85%"> | | <div width="85%"> | ||
{| | {| | ||
− | | <b>C {{#if:{{{ | + | | <b>C {{padleft:{{#if:{{{CKClist|}}}|{{#if:{{#pos:{{{CKRemarks|}}}|Power}}|{{#arraydefine:CL|{{{CKClist}}}}}{{#arraysize:CL}}|{{NVal list|{{{CKClist}}}|count}}|0}}}}|2}} : </b> {{NVal list|{{{CKClist}}}}} |
|- | |- | ||
| <hr> | | <hr> | ||
|- | |- | ||
− | | <b>K {{#if:{{{ | + | | <b>K {{padleft:{{#if:{{{CKKlist|}}}|{{#if:{{#pos:{{{CKRemarks|}}}|Power}}|{{#arraydefine:CK|{{{CKKlist}}}}}{{#arraysize:CK}}|{{NVal list|{{{CKKlist}}}|count}}|0}}}}|2}} : </b> {{NVal list|{{{CKKlist}}}}} |
|} | |} | ||
</div> | </div> |
Revision as of 13:54, 4 April 2019
Description
Template Carol-Kynea prime
Display of current data for Carol/Kynea-type base.
Notes:
- The automatically generated countings of list members are overwritten, if "CKCcount" and/or "CKKcount" are given.
- If no Carol primes are given, the page is categorized into the category Carol-Kynea without Carol.
- If no Kynea primes are given, the page is categorized into the category Carol-Kynea without Kynea.
- If no primes are given at all, the page is categorized into the category Carol-Kynea without both.
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
<templatedata> { "params": { "CKBase": { "type": "string", "required": true, "label": "Base b", "description": "Base for this type" }, "CKMaxn": { "type": "string", "label": "Max n", "description": "Maximal searched n-value" }, "CKDate": { "type": "string", "label": "Date", "description": "Date of last edit" }, "CKReserved": { "type": "string", "label": "Reserved by", "description": "Reserved by contributor, if given" }, "CKClist": { "type": "string", "label": "List C-primes", "description": "List of prime n-values on Carol-side" }, "CKKlist": { "type": "string", "label": "List K-primes", "description": "List of prime n-values on Kynea-side" }, "CKRemarks": { "type": "string", "label": "Remarks", "description": "Remarks for this base" }, "CKSieve": { "type": "string", "label": "Sieve available", "description": "If a sieve file is available, the link is generated" } }, "description": "Current data for Caol/Kynea base " } </templatedata>