Template talk:Math: Difference between revisions
Jump to navigation
Jump to search
>TheFrz |
>Vinifera7 |
||
Line 3: | Line 3: | ||
Since the formula is clearly the most important parameter used by this template, couldn't we simplify the wikicode by using the first numbered parameter <code><nowiki>{{{1}}}</nowiki></code> to pass in the formula? We can still retain <code><nowiki>{{{formula}}}</nowiki></code> for backwards compatibility. —[[User:Vinifera7|Vini]] ([[User talk:Vinifera7|t]]|[[Special:Contributions/Vinifera7|c]]) 03:12, 6 July 2016 (UTC) | Since the formula is clearly the most important parameter used by this template, couldn't we simplify the wikicode by using the first numbered parameter <code><nowiki>{{{1}}}</nowiki></code> to pass in the formula? We can still retain <code><nowiki>{{{formula}}}</nowiki></code> for backwards compatibility. —[[User:Vinifera7|Vini]] ([[User talk:Vinifera7|t]]|[[Special:Contributions/Vinifera7|c]]) 03:12, 6 July 2016 (UTC) | ||
:That's how it used to be in the beggining, and it caused errors due to <code>=</code> sign inside of formulas, e.g. <code><nowiki>{{math|2 + 2 = 5}}</nowiki></code>. I didn't know a fix for that other than calling a parameter by name, like <code><nowiki>{{math|1=2 + 2 = 5}}</nowiki></code>, that's why I decided to make a named parameter <code>{{{formula}}}</code> instead of <code><nowiki>{{{1}}}</nowiki></code>. But now I see we can use [[Template:%3D]] instead of <code>=</code>, so it makes sense to use <code><nowiki>{{{1}}}</nowiki></code> — [[User:TheFrz|Freeeeez]] aka TheFrz – 08:45, 6 July 2016 (UTC) | :That's how it used to be in the beggining, and it caused errors due to <code>=</code> sign inside of formulas, e.g. <code><nowiki>{{math|2 + 2 = 5}}</nowiki></code>. I didn't know a fix for that other than calling a parameter by name, like <code><nowiki>{{math|1=2 + 2 = 5}}</nowiki></code>, that's why I decided to make a named parameter <code>{{{formula}}}</code> instead of <code><nowiki>{{{1}}}</nowiki></code>. But now I see we can use [[Template:%3D]] instead of <code>=</code>, so it makes sense to use <code><nowiki>{{{1}}}</nowiki></code> — [[User:TheFrz|Freeeeez]] aka TheFrz – 08:45, 6 July 2016 (UTC) | ||
:: I see. I would prefer to use a named parameter than have to use [[Template:%3D]], so I think we can leave it how it is now. —[[User:Vinifera7|Vini]] ([[User talk:Vinifera7|t]]|[[Special:Contributions/Vinifera7|c]]) 09:05, 6 July 2016 (UTC) |
Latest revision as of 09:06, 6 July 2016
Formula parameter
Since the formula is clearly the most important parameter used by this template, couldn't we simplify the wikicode by using the first numbered parameter {{{1}}}
to pass in the formula? We can still retain {{{formula}}}
for backwards compatibility. —Vini (t|c) 03:12, 6 July 2016 (UTC)
- That's how it used to be in the beggining, and it caused errors due to
=
sign inside of formulas, e.g.{{math|2 + 2 = 5}}
. I didn't know a fix for that other than calling a parameter by name, like{{math|1=2 + 2 = 5}}
, that's why I decided to make a named parameter{{{formula}}}
instead of{{{1}}}
. But now I see we can use Template:= instead of=
, so it makes sense to use{{{1}}}
— Freeeeez aka TheFrz – 08:45, 6 July 2016 (UTC)- I see. I would prefer to use a named parameter than have to use Template:=, so I think we can leave it how it is now. —Vini (t|c) 09:05, 6 July 2016 (UTC)