Template:Year/Doc: Difference between revisions

From LifeWiki
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 patterns found in a given year. For example, :<tt><nowiki>The frobnozzle is a pattern found in..."
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 7: Line 7:
:The frobnozzle is a pattern found in {{year|1991}}.
:The frobnozzle is a pattern found in {{year|1991}}.


(This is much more 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 pattern found in [[:Category:Patterns found in 1991|1991]].</nowiki></tt>
:<tt><nowiki>The frobnozzle is a pattern found in [[:Category:Patterns found in 1991|1991]].</nowiki></tt>
Line 14: Line 14:


The template takes a single parameter, which can be passed without a name or as <tt>year=</tt>.
The template takes a single parameter, which can be passed without a name or as <tt>year=</tt>.
<noinclude>[[Category:Template documentation pages]]</noinclude>

Latest revision as of 19:56, 29 December 2020

This template can be used to quickly and easily embed a link to the category of patterns found in a given year. For example,

The frobnozzle is a pattern found in {{year|1991}}.

becomes

The frobnozzle is a pattern found in 1991.

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

The frobnozzle is a pattern found in [[:Category:Patterns found in 1991|1991]].

everytime you want to link to a year-based pattern category.)

The template takes a single parameter, which can be passed without a name or as year=.