Template:Sparker: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 27: | Line 27: | ||
{{#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]]}} | ||
Revision as of 19:48, 26 December 2019
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.