Difference between revisions of "Template:Definition"

From Maths
Jump to: navigation, search
m (Fixing typo from copying and pasting (for the 8th definition category name))
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly><!--
[[Category:Definitions]]
+
-->[[Category:Definitions]][[Category:All Definitions]]<!--
{{#if: {{{1}}} | [[Category::{{{1}}} Definitions]] | }}
+
-->{{#if: {{{1|}}} | [[Category:{{{1}}} Definitions]] | }} {{#if: {{{1|}}} | [[Category:{{{1}}}]] | }}<!--
{{#if: {{{2}}} | [[Category::{{{2}}} Definitions]] | }}
+
-->{{#if: {{{2|}}} | [[Category:{{{2}}} Definitions]] | }} {{#if: {{{2|}}} | [[Category:{{{2}}}]] | }}<!--
</includeonly>
+
-->{{#if: {{{3|}}} | [[Category:{{{3}}} Definitions]] | }} {{#if: {{{3|}}} | [[Category:{{{3}}}]] | }}<!--
 +
-->{{#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}}}]] | }}<!--
 +
-->{{#if: {{{7|}}} | [[Category:{{{7}}} Definitions]] | }} {{#if: {{{7|}}} | [[Category:{{{7}}}]] | }}<!--
 +
-->{{#if: {{{8|}}} | [[Category:{{{8}}} Definitions]] | }} {{#if: {{{8|}}} | [[Category:{{{8}}}]] | }}<!--
 +
--></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 {{strike|6}} 8 subjects.
 +
 
 +
'''Log: '''
 +
* 6 increased to 8 subjects - the disambiguation list for [[trivial]] was too long [[User:Alec|Alec]] ([[User talk:Alec|talk]]) 13:27, 16 February 2017 (UTC)
 +
 
 +
 
 +
==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:Page marking templates]]
 +
</noinclude>

Latest revision as of 07:20, 28 July 2018

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 8 subjects.

Log:

  • 6 increased to 8 subjects - the disambiguation list for trivial was too long Alec (talk) 13:27, 16 February 2017 (UTC)


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]