Template:OscillatorComponent: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
mNo edit summary
Use Template:PatternPopulationAndBoundingBox; group "generic" parameters at top of infobox
Line 15: Line 15:
<th> Pattern type </th>
<th> Pattern type </th>
<td> {{#if: {{{type|}}} | [[{{{type}}}]] | Induction coil }} </td></tr>
<td> {{#if: {{{type|}}} | [[{{{type}}}]] | Induction coil }} </td></tr>
<tr>
<!--
<th> Number of [[cell]]s </th>
 
<td> {{#if: {{{c|}}} | {{#iferror: {{#expr: floor({{{c}}})}} | {{{c}}} | {{#ifexpr: {{{c|}}} >= 1000 | [[:Category:Patterns with 1000 or more cells|{{{c}}}]] | [[:Category:Patterns with {{{c}}} cells|{{{c}}}]] }} }} | Unknown }} </td></tr>
Display population and bounding box. Passing catextra= ensures we also get conduit-specific categories, e.g. "Induction coils with ... cells".
<tr>
 
<th> [[Bounding box]] </th>
-->{{PatternPopulationAndBoundingBox
<td> {{#if: {{{bx|}}} | {{{bx}}}&times;{{{by}}} | Unknown }} </td></tr><!--
|c       = {{{c|}}}
|bx      = {{{bx|}}}
|by      = {{{by|}}}
|catextra = Induction coils
}}<!--


Display an infobox divider
Display an infobox divider
Line 77: Line 81:
[[Category:Patterns]]
[[Category:Patterns]]
[[Category:Induction coils]]{{#if: {{{type|}}} | [[Category:{{{type|}}}s]] }}
[[Category:Induction coils]]{{#if: {{{type|}}} | [[Category:{{{type|}}}s]] }}
{{#if: {{{c|}}} | {{#iferror: {{#expr: floor({{{c}}})}} | | {{#ifexpr: {{{c|}}} >= 1000 | [[Category:Patterns with 1000 or more cells]] [[Category:Induction coils with 1000 or more cells]] | [[Category:Patterns with {{{c}}} cells]] [[Category:Induction coils with {{{c}}} cells]] }} }} }}
</includeonly>
</includeonly>

Revision as of 20:48, 18 February 2018