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
(category power-of included)
(sorting in categories)
Line 45: Line 45:
 
</pre>
 
</pre>
 
will create:
 
will create:
{{Carol-Kynea prime
+
 
|CKBase=2
+
==Current data==<!--
|CKMaxn=1234
+
-->{{#vardefine:CC|
|CKDate=2019-01-01
 
|CKReserved=Karbon
 
|CKClist=
 
 
1;234;C:text
 
1;234;C:text
 
2;564
 
2;564
4
+
4}}{{#vardefine:CK|
|CKKlist=
 
 
5;C:Another text
 
5;C:Another text
 
6;C:see [[Examples]]
 
6;C:see [[Examples]]
7
+
7}}
|CKRemarks=None
+
{| style="border:solid black 1px"
|CKSieve=y
+
| <div width="15%" style="background-color:#ddd">
}}
+
{|
 +
  | <b>Base :</b> || 2 ([[:File:Carol-Kynea base 2 sieve.zip|sieve]])
 +
  |-
 +
  | <b>Max&nbsp;<i>n</i> :</b> || 1234
 +
  |-
 +
  | <b>Date :</b> || 2019-01-01
 +
  |-
 +
  | <b>Reserved :</b> || [[:User:Karbon|Karbon]]
 +
|}
 +
</div>
 +
| <div width="85%">
 +
{|
 +
| <b>C {{padleft:{{NVal list|{{#var:CC}}|count}}|2}} : </b> {{NVal list|{{#var:CC}}}}
 +
|-
 +
| <hr>
 +
|-
 +
| <b>K {{padleft:{{NVal list|{{#var:CK}}|count}}|2}} : </b> {{NVal list|{{#var:CK}}}}
 +
|}
 +
</div>
 +
|}
 +
{|
 +
| <div height="120%" style="background-color:#ddd;"><b>Remarks : </b></div> || None
 +
|}
 +
==Notes==
 +
<references />
 
[[Category:Templates]]
 
[[Category:Templates]]
  
Line 146: Line 166:
 
==Notes==
 
==Notes==
 
<references />}}<!--
 
<references />}}<!--
-->{{#if:{{{CKClist|}}}||[[Category:Carol-Kynea without Carol‎]]}}<!--
+
-->{{#if:{{{CKClist|}}}||[[Category:Carol-Kynea without Carol‎|#.....{{padleft:{{{CKBase}}}|5}}]]}}<!--
-->{{#if:{{{CKKlist|}}}||[[Category:Carol-Kynea without Kynea]]}}<!--
+
-->{{#if:{{{CKKlist|}}}||[[Category:Carol-Kynea without Kynea|#.....{{padleft:{{{CKBase}}}|5}}]]}}<!--
-->{{#if:{{{CKClist|}}}||{{#if:{{{CKKlist|}}}||[[Category:Carol-Kynea without both]]}}}}<!--
+
-->{{#if:{{{CKClist|}}}||{{#if:{{{CKKlist|}}}||[[Category:Carol-Kynea without both|#.....{{padleft:{{{CKBase}}}|5}}]]}}}}<!--
-->{{#if:{{#pos:{{{CKRemarks|}}}|Power}}|[[Category:Carol-Kynea power-of]]}}</includeonly>
+
-->{{#if:{{#pos:{{{CKRemarks|}}}|Power}}|[[Category:Carol-Kynea power-of|#.....{{padleft:{{{CKBase}}}|5}}]]}}<!--
 +
-->[[Category:Carol-Kynea prime|#.....{{padleft:{{{CKBase}}}|5}}]]</includeonly>

Revision as of 23:05, 6 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

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

K 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
List K-primesCKKlist

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

Default
empty
Example
empty
Auto value
empty
Stringoptional
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