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
(categories if no Carol/Kynea)
(CKSieve + without both)
Line 15: Line 15:
 
|CKKlist=
 
|CKKlist=
 
|CKRemarks=
 
|CKRemarks=
 +
|CKSieve=
 
}}
 
}}
 
</pre>
 
</pre>
Line 28: Line 29:
 
|CKKlist=5, 6, 7
 
|CKKlist=5, 6, 7
 
|CKRemarks=None
 
|CKRemarks=None
 +
|CKSieve=y
 
}}
 
}}
 
</pre>
 
</pre>
Line 39: Line 41:
 
|CKKlist=5, 6, 7
 
|CKKlist=5, 6, 7
 
|CKRemarks=None
 
|CKRemarks=None
 +
|CKSieve=y
 
}}
 
}}
 
[[Category:Templates]]
 
[[Category:Templates]]
Line 81: Line 84:
 
"label": "Remarks",
 
"label": "Remarks",
 
"description": "Remarks for this base"
 
"description": "Remarks for this base"
 +
},
 +
"CKSieve": {
 +
"type": "string",
 +
"label": "Sieve available",
 +
"description": "If a sieve file is available, the link is generated"
 
}
 
}
 
},
 
},
Line 91: Line 99:
 
| <div width="15%" style="background-color:#ddd">
 
| <div width="15%" style="background-color:#ddd">
 
  {|  
 
  {|  
   | <b>Base :</b> || {{{CKBase}}}
+
   | <b>Base :</b> || {{{CKBase}}} {{#if:{{{CKSieve|}}}|&nbsp;[[File:{{PAGENAME}} sieve.zip|(sieve)]]|}}
 
   |-
 
   |-
 
   | <b>Max&nbsp;<i>n</i> :</b> || {{{CKMaxn}}}
 
   | <b>Max&nbsp;<i>n</i> :</b> || {{{CKMaxn}}}
Line 118: Line 126:
 
}}<!--
 
}}<!--
 
-->{{#if:{{{CKClist|}}}||[[Category:Carol-Kynea without Carol‎]]}}<!--
 
-->{{#if:{{{CKClist|}}}||[[Category:Carol-Kynea without Carol‎]]}}<!--
-->{{#if:{{{CKKlist|}}}||[[Category:Carol-Kynea without Kynea]]}}</includeonly>
+
-->{{#if:{{{CKKlist|}}}||[[Category:Carol-Kynea without Kynea]]}}<!--
 +
-->{{#if:{{{CKClist|}}}||{{#if:{{{CKKlist|}}}||[[Category:Carol-Kynea without both]]}}}}</includeonly>

Revision as of 13:25, 19 March 2019

Description

Template CarolKyneaBase

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

Calling

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

Example

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

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" }, "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>