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
(array used)
Line 104: Line 104:
 
| <div width="85%">
 
| <div width="85%">
 
  {|  
 
  {|  
  | <b>C</b> || <b>{{#if:{{{CKClist|}}}|{{#expr:{{#len:{{{CKClist}}}}} - {{#len:{{#replace:{{{CKClist}}}|,|}}}}+1}}|0}} : </b> || {{{CKClist}}}
+
  | <b>C</b> || <b>{{#if:{{{CKClist|}}}|{{#arraydefine:CC|{{{CKClist}}}}}{{#arraysize:CC}} : </b>}} || {{{CKClist}}}
 
  |-
 
  |-
 
  | colspan="3"| <hr>
 
  | colspan="3"| <hr>
 
  |-
 
  |-
  | <b>K</b> || <b>{{#if:{{{CKKlist|}}}|{{#expr:{{#len:{{{CKKlist}}}}} - {{#len:{{#replace:{{{CKKlist}}}|,|}}}}+1}}|0}} : </b> || {{{CKKlist}}}
+
  | <b>K</b> || <b>{{#if:{{{CKKlist|}}}|{{#arraydefine:CK|{{{CKKlist}}}}}{{#arraysize:CK}} : </b>}} || {{{CKKlist}}}
 
  |}
 
  |}
 
  </div>
 
  </div>

Revision as of 16:13, 11 March 2019

Description

Template CarolKyneaBase

Display of current data for Carol/Kynea-type base.

Calling

{{CarolKyneaBase
|CKBase=
|CKMaxn=
|CKDate=
|CKReserved=
|CKClist=
|CKKlist=
|CKRemarks=
}}

Example

{{CarolKyneaBase
|CKBase=2
|CKMaxn=1234
|CKDate=2019-01-01
|CKReserved=anon
|CKClist=1, 2, 3, 4
|CKKlist=5, 6, 7
|CKRemarks=None
}}

will create: Template:CarolKyneaBase

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" } }, "description": "Current data for Caol/Kynea base " } </templatedata>