Difference between revisions of "Template:Definition"
From Maths
m |
m |
||
Line 4: | Line 4: | ||
{{#if: {{{2|}}} | [[Category:{{{2}}} Definitions]] | }} {{#if: {{{2|}}} | [[Category:{{{2}}}]] | }} | {{#if: {{{2|}}} | [[Category:{{{2}}} Definitions]] | }} {{#if: {{{2|}}} | [[Category:{{{2}}}]] | }} | ||
{{#if: {{{3|}}} | [[Category:{{{3}}} Definitions]] | }} {{#if: {{{3|}}} | [[Category:{{{3}}}]] | }} | {{#if: {{{3|}}} | [[Category:{{{3}}} Definitions]] | }} {{#if: {{{3|}}} | [[Category:{{{3}}}]] | }} | ||
− | </includeonly> | + | {{#if: {{{4|}}} | [[Category:{{{4}}} Definitions]] | }} {{#if: {{{4|}}} | [[Category:{{{4}}}]] | }} |
+ | {{#if: {{{5|}}} | [[Category:{{{5}}} Definitions]] | }} {{#if: {{{5|}}} | [[Category:{{{5}}}]] | }} | ||
+ | {{#if: {{{6|}}} | [[Category:{{{6}}} Definitions]] | }} {{#if: {{{6|}}} | [[Category:{{{6}}}]] | }} | ||
+ | </includeonly><noinclude> | ||
+ | ==Purpose== | ||
+ | This template is intended to make categorising of definitions easier. At time of writing it supports up to {{C|6}} arguments. That is you can categorise something as a definition belonging to 6 subjects. | ||
+ | |||
+ | ==Using the template== | ||
+ | To use simply type: | ||
+ | * {{C|<nowiki>{{Definition|</nowiki>{{M|\text{Cat}_1}}<nowiki>|</nowiki>{{M|\text{Cat}_2}}<nowiki>|</nowiki>{{M|\ldots}}<nowiki>|</nowiki>{{M|\text{Cat}_n}}<nowiki>}}</nowiki>}} | ||
+ | This will automatically categorise the page in {{M|\text{Cat}_i}} and the definitions category for {{M|\text{Cat}_i}} | ||
+ | [[Category:Templates]] | ||
+ | </noinclude> |
Revision as of 19:31, 16 October 2015
Purpose
This template is intended to make categorising of definitions easier. At time of writing it supports up to 6 arguments. That is you can categorise something as a definition belonging to 6 subjects.
Using the template
To use simply type:
- {{Definition|[ilmath]\text{Cat}_1[/ilmath]|[ilmath]\text{Cat}_2[/ilmath]|[ilmath]\ldots[/ilmath]|[ilmath]\text{Cat}_n[/ilmath]}}
This will automatically categorise the page in [ilmath]\text{Cat}_i[/ilmath] and the definitions category for [ilmath]\text{Cat}_i[/ilmath]