Template:Gliders/Doc

From LifeWiki
Jump to: navigation, search

This template can be used to quickly and easily embed a link to the category of patterns with a given glider cost. For example,

The frobnozzle has a {{gliders|15}} [[synthesis]] discovered by [[Jason Summers]].

becomes

The frobnozzle has a 15-glider synthesis discovered by Jason Summers.

(This is much more convenient than having to type the equivalent of

The frobnozzle has a [[:Category:Patterns that can be constructed with 15 gliders|15]]-[[glider]] [[synthesis]] discovered by Jason Summers.

everytime you want to link to a glider synthesis category.)

The template takes two parameters, the first of which is the cost and can be passed without a name or as cost=. The second one is passed without a name and removes the "glider" from the resulting text:

Infinite growth patterns can be constructed with as few as {{gliders|3|brief}} [[glider]]s.

becomes

Infinite growth patterns can be constructed with as few as 3 gliders.

If the specified cost is at least 101 gliders, the template will instead link to the "101 or more gliders" category:

A {{gliders|601}} [[synthesis]] for the [[spider]] was discovered by [[Martin Grant]].

becomes

A 601-glider synthesis for the spider was discovered by Martin Grant.