Template:PeriodS/Doc: Difference between revisions
Jump to navigation
Jump to search
Created page with "This template can be used to quickly and easily embed a link to the category of spaceships with a given period. For example, :<tt><nowiki>The frobnozzle is a {{periodS|20}} [..." |
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:Spaceships with period 20|period-20]] [[c/2 orthogonal]] [[spaceship]].</nowiki></tt> | ||
everytime you want to link to a spaceship period category.) | everytime you want to link to a spaceship period category.) | ||
| Line 15: | Line 15: | ||
The template takes two parameters, the first of which is the period and can be passed without a name or as <tt>period=</tt>. The second one is passed without a name and removes the "period" from the resulting text: | The template takes two parameters, the first of which is the period and can be passed without a name or as <tt>period=</tt>. The second one is passed without a name and removes the "period" from the resulting text: | ||
:<tt><nowiki>The first known | :<tt><nowiki>The first known spaceships of periods {{periodS|2|brief}} and {{periodS|3|brief}} were found in 1989.</nowiki></tt> | ||
becomes | becomes | ||
:The first known spaceships of periods {{periodS|2|brief}} and {{periodS|3|brief}} were found in 1989. | :The first known spaceships of periods {{periodS|2|brief}} and {{periodS|3|brief}} were found in 1989. | ||
Optionally, it is possible to specify an arbitrary displayed link text using <tt>text=</tt>. For example, | |||
:<tt><nowiki>...a {{periodS|7|text=p7}} spaceship...</nowiki></tt> | |||
becomes | |||
:...a {{periodS|7|text=p7}} spaceship... | |||
==See also== | ==See also== | ||
*[[Template:Period]] (for oscillators) | *[[Template:Period]] (for oscillators) | ||
<noinclude>[[Category:Template documentation pages]]</noinclude> | |||
Latest revision as of 22:16, 20 July 2022
This template can be used to quickly and easily embed a link to the category of spaceships with a given period. For example,
- The frobnozzle is a {{periodS|20}} [[c/2 orthogonal]] [[spaceship]].
becomes
- The frobnozzle is a period-20 c/2 orthogonal spaceship.
(This is much more convenient than having to type the equivalent of
- The frobnozzle is a [[:Category:Spaceships with period 20|period-20]] [[c/2 orthogonal]] [[spaceship]].
everytime you want to link to a spaceship 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 spaceships of periods {{periodS|2|brief}} and {{periodS|3|brief}} were found in 1989.
becomes
Optionally, it is possible to specify an arbitrary displayed link text using text=. For example,
- ...a {{periodS|7|text=p7}} spaceship...
becomes
- ...a p7 spaceship...
See also
- Template:Period (for oscillators)