Difference between revisions of "Template:Macro suit"
From Maths
(Trying initial version) |
(Adding links to the template data pages) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 15: | Line 15: | ||
-->}}<noinclude> | -->}}<noinclude> | ||
+ | ==Adding suits== | ||
+ | See: | ||
+ | # [[Template data:Macro]] and | ||
+ | # [[Template data:Macro suit]] | ||
==Notes== | ==Notes== | ||
This page was copied and pasted from [[Template:Macro]] (including the template workings) then changed slightly to fit. [[User:Alec|Alec]] ([[User talk:Alec|talk]]) 15:01, 1 February 2018 (UTC) | This page was copied and pasted from [[Template:Macro]] (including the template workings) then changed slightly to fit. [[User:Alec|Alec]] ([[User talk:Alec|talk]]) 15:01, 1 February 2018 (UTC) | ||
Line 25: | Line 29: | ||
* '''[[Template:Macro suit|Macro suit]]: ''' this is a collection ("suit") of individual macros (defined on the previous bullet point) which are commonly needed together, for example a {{C|prob}}-suit could introduce the {{C|prob}} macros and macros for expected value ({{C|\E}}), variance ({{C|\Var}}), Mdm ({{C|\Mdm}}) and so forth | * '''[[Template:Macro suit|Macro suit]]: ''' this is a collection ("suit") of individual macros (defined on the previous bullet point) which are commonly needed together, for example a {{C|prob}}-suit could introduce the {{C|prob}} macros and macros for expected value ({{C|\E}}), variance ({{C|\Var}}), Mdm ({{C|\Mdm}}) and so forth | ||
+ | ==Tests== | ||
Test page: | Test page: | ||
* [[/TestPage]] | * [[/TestPage]] | ||
+ | ** Used to make sure the thing /actually works/ | ||
+ | * [[Template data:Macro suit/Suit tests]] | ||
+ | ** Here's where we may design suits | ||
</noinclude> | </noinclude> |
Latest revision as of 20:40, 1 February 2018
Warning:No such macro suit definition found!, request: (Empty)
Contents
Adding suits
See:
Notes
This page was copied and pasted from Template:Macro (including the template workings) then changed slightly to fit. Alec (talk) 15:01, 1 February 2018 (UTC)
Purpose
Before this template there was just Template:ProbMacro because a nicely formatted probability statement was hard, up until then I'd resisted using macros, however then came Template:ProbMacros which adds \E and \Mdm.
Rather than clutter the template namespace with macros plural and not all over the place I have decided to use:
- Macro: a small collection of 1 (possibly, but rarely more) macros, where prob will introduce only \P and \Pcond, and mod will introduce only \mod (modulo operation)
- I may extend this to use a second argument to communicate with the defining page (a sub-page of Template data:Macro/List), for example to request only \Pcond from the prob group
- Macro suit: this is a collection ("suit") of individual macros (defined on the previous bullet point) which are commonly needed together, for example a prob-suit could introduce the prob macros and macros for expected value (\E), variance (\Var), Mdm (\Mdm) and so forth
Tests
Test page:
- /TestPage
- Used to make sure the thing /actually works/
- Template data:Macro suit/Suit tests
- Here's where we may design suits