Template:Sparker: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
* ''type'', which specifies the shape of the spark (type=dot, type=domino, type=reflecting duoplet, or type=non-reflecting duoplet; see [[Spark#Sparker|this section]] for more info)
* ''type'', which specifies the shape of the spark (type=dot, type=domino, type=reflecting duoplet, or type=non-reflecting duoplet; see [[Spark#Sparker|this section]] for more info)
* ''strength'', which specifies the strength of the spark (strength=weak, strength=moderate, strength=strong; see [[Spark#Strength_of_sparkers|this section]] for more info)
* ''strength'', which specifies the strength of the spark (strength=weak, strength=moderate, strength=strong; see [[Spark#Strength_of_sparkers|this section]] for more info)
* ''type2'', ''strength2'', ''type3'', and ''strength3'', which add additional categories if the oscillator gives off multiple distinct types/strengths of sparks)
* ''type2'', ''strength2'', ''type3'', and ''strength3'', which add additional categories if the oscillator gives off multiple distinct types/strengths of sparks


All parameters are optional. For example,
All parameters are optional. For example,
Line 21: Line 21:


This template should not be used if the oscillator does not give off usable sparks of any kind, or if the oscillator is merely a combination of two lower-period oscillators whose sparks interact without producing new ones, e.g. [[figure eight on pentadecathlon]].
This template should not be used if the oscillator does not give off usable sparks of any kind, or if the oscillator is merely a combination of two lower-period oscillators whose sparks interact without producing new ones, e.g. [[figure eight on pentadecathlon]].
[[Category:Categorization templates]]
[[Category:Article categorization templates]]
</noinclude>
</noinclude>
<includeonly>
<includeonly>
Line 27: Line 30:
{{#if: {{{p|}}} | [[Category:Sparkers with period {{{p}}}]]}}
{{#if: {{{p|}}} | [[Category:Sparkers with period {{{p}}}]]}}
{{#if: {{{type|}}} | [[Category:{{{type}}} sparkers]]}}
{{#if: {{{type|}}} | [[Category:{{{type}}} sparkers]]}}
{{#if: {{{strength|}}} | [[Category:{{{strength}}} sparkers}}
{{#if: {{{strength|}}} | [[Category:{{{strength}}} sparkers]]}}
{{#if: {{{type2|}}} | [[Category:{{{type2}}} sparkers]]}}
{{#if: {{{type2|}}} | [[Category:{{{type2}}} sparkers]]}}
{{#if: {{{strength2|}}} | [[Category:{{{strength2}}} sparkers]]}}
{{#if: {{{strength2|}}} | [[Category:{{{strength2}}} sparkers]]}}

Latest revision as of 18:57, 29 December 2020

This is a template for including sparker categories for oscillators. The available parameters are:

  • p, which specifies the period of the oscillator;
  • type, which specifies the shape of the spark (type=dot, type=domino, type=reflecting duoplet, or type=non-reflecting duoplet; see this section for more info)
  • strength, which specifies the strength of the spark (strength=weak, strength=moderate, strength=strong; see this section for more info)
  • type2, strength2, type3, and strength3, which add additional categories if the oscillator gives off multiple distinct types/strengths of sparks

All parameters are optional. For example,

{{Sparker|p=13|type=dot|strength=moderate}}

adds the categories Category:Sparkers, Category:Sparkers with period 13, Category:Dot sparkers, and Category:Moderate sparkers to the page. Typing

{{Sparker|p=13}}

adds only Category:Sparkers and Category:Sparkers with period 13, whereas

{{Sparker}}

adds only Category:Sparkers.

This template should not be used if the oscillator does not give off usable sparks of any kind, or if the oscillator is merely a combination of two lower-period oscillators whose sparks interact without producing new ones, e.g. figure eight on pentadecathlon.