User:©TriMoon™/Sandbox

Separation of: Code-Data
See this thread for my suggestion. />For example-use using &lt;inputbox&gt;&lt;/inputbox&gt;, see the data page.
 * Code templates intended to be protected from regular editors.
 * /Code/xxx are meant to set Variables using Template-arguments.
 * User:©TriMoon™/Code/Locodata
 * User:©TriMoon™/Code/Wagondata
 * /Code/Info/xxx are meant to generate visual output using Template-arguments.
 * User:©TriMoon™/Code/Info/Locodata
 * User:©TriMoon™/Code/Info/Wagondata
 * User:©TriMoon™/Code/Info/Calculated
 * /Code/xxx/Info are meant to be called using subst: or safesubst: to set Template-arguments for /Code/Info/xxx using Variables.
 * User:©TriMoon™/Code/Locodata/Info
 * User:©TriMoon™/Code/Wagondata/Info
 * User:©TriMoon™/Code/CalculatedInfo
 * /Code/preload-xxx are meant to be used as the preload-page for aided-creation of new pages under /Data/xxx<br
 * User:©TriMoon™/Data/preload-loco
 * User:©TriMoon™/Data/preload-wagon
 * Data templates intended to be adjusted by trusted editors.
 * /Data/Loco/xxx are meant to set Variables for individual Locomotives using /Code/Locodata
 * /Data/Wagon/xxx are meant to set Variables for individual using /Code/Wagondata
 * User:©TriMoon™/Presentation
 * User:©TriMoon™/Presentation/Info/Locodata
 * User:©TriMoon™/Presentation/Info/Wagondata
 * User:©TriMoon™/Presentation/Info/Calculated

Examples
User:©TriMoon™/Sandbox/test1|1 User:©TriMoon™/Sandbox/test2|2 User:©TriMoon™/Sandbox/test3|3 User:©TriMoon™/Sandbox/test4|4

MathML test
$$ {\color{lime}f(\mbox{Part}\#_2^\infty)\to} $$ \begin{align} GPT &=\mbox{Gain Per Train} \\ Y_\text{base} &=\mbox{Base yield for destination as shown in table} \\ &=Y^\text{dest})\{\dots,\dots,\dots\} \\ L_\text{bonus} &=\mbox{Loco Bonus} \\ &=f(L_\text{type},W_\text{type})=\begin{cases} 1.4 &\mbox{IF}~L_\text{type}=\mbox{Diesel loco AND}~W_\text{type}=\mbox{cargo wagon} \\ 2 &\mbox{IF}~L_\text{type}=\mbox{Electric loco AND}~W_\text{type}=\mbox{non-cargo wagon} \\ 1 & \mbox{Otherwise} \end{cases} \\ \mbox{Wagon Bonus} &=f(W_\text{bonus}) = \frac{100+W_\text{bonus}}{100} \\ \mbox{Yield} &=f(\text{dest},L_\text{type},W_\text{type}) = Y_\text{base}(\text{dest})\times L_\text{bonus}(L_\text{type},W_\text{type}) \end{align} $$ \begin{align} \mbox{Gain Per Train}&=\mbox{Yield}\times\mbox{Wagon Bonus} \\ GPT(dest,L_{type},W_{type},W_{bonus_x})&=\mbox{Yield}(dest,L_{type},W_{type})\times \mbox{Wagon Bonus}(W_{bonus}) \\ &=BY(dest)\times L_{bonus}(L_{type},W_{type})\times \mbox{Wagon Bonus}(W_{bonus}) \\ &=BY(dest)\times L_{bonus}(L_{type},W_{type})\times\frac{100+W_{bonus}}{100} \\ &=\frac{BY(dest)\times L_{bonus}(L_{type},W_{type})\times(100+W_{bonus})}{100} \end{align} $$
 * Formula definitions:$$
 * Result formula:$$