Template:OscillatorComponent: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
Remove discovery-related categories; handled by Template:PatternDiscovery now
No edit summary
 
(12 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<!--  
<!--


Display "request pattern file" box if no pattern files exist and "nofile" was not passed to suppress this
Begin infobox


--> <includeonly>{{#if: {{{zip|}}}{{{mc|}}}{{{life105|}}}{{{life106|}}}{{{plaintext|}}}{{{rle|}}}{{{nofile|}}} | | {{requestpatternfile}} }}</includeonly><!--
-->{{InfoboxStart
|typename      = Oscillator Component
|defaultconfig = oscillator
|viewerconfig  = {{{viewerconfig|}}}
|name          = {{{name|}}}
|zip          = {{{zip|}}}
|mc            = {{{mc|}}}
|life105      = {{{life105|}}}
|life106      = {{{life106|}}}
|plaintext    = {{{plaintext|}}}
|rle          = {{{rle|}}}
|nofile        = {{{nofile|}}}
|pname        = {{{pname|}}}
|animated      = {{{animated|}}}
|hideimg      = {{{hideimg|}}}
}}<!--


Begin infobox
Display pattern type


--> <table class="infobox">
--><tr>
<tr><td colspan="2" class="infobox_head"> {{{name|Pattern Name}}} </td></tr>
<tr>
<td colspan="2" class="infobox_img"><table class="img_border" cellpadding="0"><tr><td>{{#if: {{{zip|}}}{{{mc|}}}{{{life105|}}}{{{life106|}}}{{{plaintext|}}}{{{rle|}}}{{{nofile|}}} | [[Image:{{{pname|}}}.png|{{{name}}} image]]|[[Image:UnknownPattern.png|{{{name}}} image]]}}</td></tr></table></td></tr>{{#if: {{{animated|}}} | <tr><td colspan="2" class="infobox_animlink"> [[Media:{{{pname|name}}}.gif|View animated image]] </td></tr> }}
<!-- {{#if: {{{rle|}}} | <tr><td colspan="2" class="infobox_link"> [http://www.conwaylife.com?p={{{pname|name}}} Manipulate via Java] </td></tr> }} -->
<tr>
<th> Pattern type </th>
<th> Pattern type </th>
<td> {{#if: {{{type|}}} | [[{{{type}}}]] | Induction coil }} </td></tr>
<td> [[{{{type|Oscillator component}}}]] </td></tr>
<!--
 
Display population and bounding box. Passing catextra= ensures we also get conduit-specific categories, e.g. "Oscillator components with ... cells".
 
-->{{PatternPopulationAndBoundingBox
|c        = {{{c|}}}
|bx      = {{{bx|}}}
|by      = {{{by|}}}
|catextra = Oscillator components
}}<!--
 
Display an infobox divider
 
-->{{InfoboxDivider}}
<tr>
<tr>
<th> Number of [[cell]]s </th>
<th> [[Period#Oscillators|Period]] </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>
<td> {{#if: {{{p|}}} | [[:Category:Oscillators with period {{{p}}}|{{{p}}}]] | Unknown }} </td></tr><!--
 
Display an infobox divider
 
-->{{InfoboxDivider}}
<tr>
<tr>
<th> [[Bounding box]] </th>
<th> [[Static symmetry]] </th>
<td> {{#if: {{{bx|}}} | {{{bx}}}&times;{{{by}}} | Unknown }} </td></tr><!--
<td> {{#if: {{NAMESPACE}} | {{{symmetry|Unspecified}}} | {{#if: {{{symmetry|}}} | [[:Category:Patterns with {{{symmetry}}} symmetry|{{{symmetry}}}]] | Unspecified }} | Unspecified }} </td></tr><!--
 
Display an infobox divider
 
-->{{InfoboxDivider}}<!--


Display discoverers and year of discovery
Display discoverers and year of discovery
Line 48: Line 80:
|rulemax      = {{{rulemax|}}}
|rulemax      = {{{rulemax|}}}
|rulemin      = {{{rulemin|}}}  
|rulemin      = {{{rulemin|}}}  
|isorulemax  = {{{isorulemax|}}}
|isorulemin  = {{{isorulemin|}}}
}}<!--
}}<!--


Line 64: Line 98:
Transcluded documentation
Transcluded documentation


--><noinclude>{{InductionCoil/Doc}}
--><noinclude>{{OscillatorComponent/Doc}}
{{PatternTemplates}}
{{PatternTemplates}}
</noinclude><!--
</noinclude><!--
Line 71: Line 105:


--><includeonly>
--><includeonly>
{{#ifeq:{{NAMESPACE}}|User||
[[Category:Patterns]]
[[Category:Patterns]]
[[Category:Induction coils]]{{#if: {{{type|}}} | [[Category:{{{type|}}}s]] }}
[[Category:Oscillator components]]{{#if: {{{type|}}} | [[Category:{{{type|}}}s]] }}{{#if: {{{symmetry|}}} | [[Category:Patterns with {{{symmetry|}}} symmetry]] | [[Category:Patterns with unknown symmetry]] }}
{{#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>

Latest revision as of 20:50, 21 August 2024

Oscillator Component Name
image
Pattern type Oscillator component
Period Unknown
Static symmetry Unspecified
Discovered by Unknown
Year of discovery Unknown

This is an infobox template for oscillator components. An example can be seen to the right. For general information about how to use pattern templates, see LifeWiki:Style guide/Pattern layout.

Special parameters

This template takes no special parameters.


Pattern templates