Template:Period/Doc: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
update |
||
| (3 intermediate revisions by one other user not shown) | |||
| Line 9: | Line 9: | ||
(This is much more convenient than having to type the equivalent of | (This is much more convenient than having to type the equivalent of | ||
:<tt><nowiki>The frobnozzle is a | :<tt><nowiki>The frobnozzle is a [[:Category:Oscillators with period 3|period-3]] [[oscillator]].</nowiki></tt> | ||
everytime you want to link to an oscillator period category.) | everytime you want to link to an oscillator period category.) | ||
| Line 20: | Line 20: | ||
:The first known oscillators of periods {{period|37|brief}} and {{period|51|brief}} were found in 2009. | :The first known oscillators of periods {{period|37|brief}} and {{period|51|brief}} were found in 2009. | ||
Optionally, it is possible to specify an arbitrary displayed link text using <tt>text=</tt>. For example, | |||
:<tt><nowiki>...a {{period|7|text=p7}} sparker...</nowiki></tt> | |||
becomes | |||
:...a {{period|7|text=p7}} sparker... | |||
==See also== | |||
*[[Template:PeriodS]] (for spaceships) | |||
<noinclude>[[Category:Template documentation pages]]</noinclude> | |||
Latest revision as of 22:14, 20 July 2022
This template can be used to quickly and easily embed a link to the category of oscillators with a given period. For example,
- The frobnozzle is a {{period|3}} [[oscillator]].
becomes
- The frobnozzle is a period-3 oscillator.
(This is much more convenient than having to type the equivalent of
- The frobnozzle is a [[:Category:Oscillators with period 3|period-3]] [[oscillator]].
everytime you want to link to an oscillator period category.)
The template takes two parameters, the first of which is the period and can be passed without a name or as period=. The second one is passed without a name and removes the "period" from the resulting text:
- The first known oscillators of periods {{period|37|brief}} and {{period|51|brief}} were found in 2009.
becomes
Optionally, it is possible to specify an arbitrary displayed link text using text=. For example,
- ...a {{period|7|text=p7}} sparker...
becomes
- ...a p7 sparker...
See also
- Template:PeriodS (for spaceships)