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"

From Prime-Wiki
Jump to: navigation, search
m
(counting parameters added + remarks)
Line 4: Line 4:
  
 
Display of current data for Carol/Kynea-type base.
 
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 [[:Category:Carol-Kynea without Carol‎|Carol-Kynea without Carol‎]].
 +
:If no Kynea primes are given, the page is categorized into the category [[:Category:Carol-Kynea without Kynea|Carol-Kynea without Kynea]].
 +
:If no primes are given at all, the page is categorized into the category [[:Category:Carol-Kynea without both|Carol-Kynea without both]].
  
 
==Calling==
 
==Calling==
Line 13: Line 19:
 
|CKReserved=
 
|CKReserved=
 
|CKClist=
 
|CKClist=
 +
|CKCcount=
 
|CKKlist=
 
|CKKlist=
 +
|CKKcount=
 
|CKRemarks=
 
|CKRemarks=
 
|CKSieve=
 
|CKSieve=
Line 30: Line 38:
 
2;564
 
2;564
 
4
 
4
 +
|CKCcount=99
 
|CKKlist=
 
|CKKlist=
 
5;C:Another text
 
5;C:Another text
Line 48: Line 57:
 
2;564
 
2;564
 
4
 
4
 +
|CKCcount=99
 
|CKKlist=
 
|CKKlist=
 
5;C:Another text
 
5;C:Another text
Line 87: Line 97:
 
"description": "List of prime ''n''-values on Carol-side"
 
"description": "List of prime ''n''-values on Carol-side"
 
},
 
},
 +
"CKCcount": {},
 
"CKKlist": {
 
"CKKlist": {
 
"type": "string",
 
"type": "string",
Line 92: Line 103:
 
"description": "List of prime ''n''-values on Kynea-side"
 
"description": "List of prime ''n''-values on Kynea-side"
 
},
 
},
 +
"CKKcount": {},
 
"CKRemarks": {
 
"CKRemarks": {
 
"type": "string",
 
"type": "string",
Line 124: Line 136:
 
| <div width="85%">
 
| <div width="85%">
 
  {|  
 
  {|  
  | <b>C {{padleft:{{#if:{{{CKClist|}}}|{{NVal list|{{{CKClist}}}|count}}|0}}|2}} : </b> {{NVal list|{{{CKClist}}}}}
+
  | <b>C {{#if:{{{CKCcount|}}}|{{padleft:{{{CKCcount}}}|2}}|{{padleft:{{#if:{{{CKClist|}}}|{{NVal list|{{{CKClist}}}|count}}|0}}|2}}}} : </b> {{NVal list|{{{CKClist}}}}}
 
  |-
 
  |-
 
  | <hr>
 
  | <hr>
 
  |-
 
  |-
  | <b>K {{padleft:{{#if:{{{CKKlist|}}}|{{NVal list|{{{CKKlist}}}|count}}|0}}|2}} : </b> {{NVal list|{{{CKKlist}}}}}
+
  | <b>K {{#if:{{{CKKcount|}}}|{{padleft:{{{CKKcount}}}|2}}|{{padleft:{{#if:{{{CKKlist|}}}|{{NVal list|{{{CKKlist}}}|count}}|0}}|2}}}} : </b> {{NVal list|{{{CKKlist}}}}}
 
  |}
 
  |}
 
  </div>
 
  </div>

Revision as of 10:03, 3 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=
|CKCcount=
|CKKlist=
|CKKcount=
|CKRemarks=
|CKSieve=
}}

Example

{{Carol-Kynea prime
|CKBase=2
|CKMaxn=1234
|CKDate=2019-01-01
|CKReserved=Karbon
|CKClist=
1;234;C:text
2;564
4
|CKCcount=99
|CKKlist=
5;C:Another text
6;C:see [[Examples]]
7
|CKRemarks=None
|CKSieve=y
}}

will create:

Current data

Base : 2  (sieve)
Max n : 1,234
Date : 2019-01-01
Reserved : Karbon
Carol: (03) 1[1], 2, 4

Kynea: (03) 5[2], 6[3], 7
Remarks :
None

Notes

  1. text
  2. Another text
  3. see Examples

Template-data

Current data for Caol/Kynea base <b>

Template parameters

ParameterDescriptionTypeStatus
Base bCKBase

Base for this type

Default
empty
Example
empty
Auto value
empty
Stringrequired
Max ''n''CKMaxn

Maximal searched ''n''-value

Default
empty
Example
empty
Auto value
empty
Stringoptional
DateCKDate

Date of last edit

Default
empty
Example
empty
Auto value
empty
Stringoptional
Reserved byCKReserved

Reserved by contributor, if given

Default
empty
Example
empty
Auto value
empty
Stringoptional
List C-primesCKClist

List of prime ''n''-values on Carol-side

Default
empty
Example
empty
Auto value
empty
Stringoptional
CKCcountCKCcount

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
List K-primesCKKlist

List of prime ''n''-values on Kynea-side

Default
empty
Example
empty
Auto value
empty
Stringoptional
CKKcountCKKcount

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
RemarksCKRemarks

Remarks for this base

Default
empty
Example
empty
Auto value
empty
Stringoptional
Sieve availableCKSieve

If a sieve file is available, the link is generated

Default
empty
Example
empty
Auto value
empty
Stringoptional