Changes

Template:Mbox

103 bytes removed, 19:26, 17 September 2007
Created page with '<span style="white-space: nowrap;">{{{eq|{{{1}}}}}}</span><noinclude> ---- This template prevents line breaks during HTML mathematics. It is a practical alternativ...'
<table span style="white-space: nowrap;">{{{styleeq|}}}" class="metadata plainlinks ambox {{#switch:{{{type|1}}}} | serious = ambox-serious | content = ambox-content | style = ambox-style | merge = ambox-merge | notice = ambox-notice | growth = ambox-growth | #default = ambox-notice}}"</span><trnoinclude>{{#ifeq:{{{image}}}|none | <!-- no image cell --> | <td class="ambox-image"> {{#switch:{{{image|{{{type|}}}}}} | serious = [[Image:Stop hand nuvolaThis template prevents line breaks during HTML mathematics.svg|40px]] | content = It is a practical alternative to excessive use of [[Image:Emblemnon-important.svg|40pxbreaking space]]s (&#38;nbsp;).  | style = [[Image:Broom icon.svg|40px]] | merge = [[Image:Merge-split-transwiki default.svg]] | notice Use== [[Image:Info non-talk.png|40px]] | growth = [[Image:Green plus icon.png]]In a math article, included math such as | blank = <!-- empty image cell --pre> | #default = {{{image|''f'': ''X'' × ''Y'' → [[Image:Info non-talk.png|40px]0, 1]}}} }}</tdpre>}}may end up broken between lines. This can be fixed using nonbreaking spaces:<tdpre>{{{text}}}''f'':&#38;nbsp;''X''&#38;nbsp;×&#38;nbsp;''Y''&#38;nbsp;→&#38;nbsp;[0,&#38;nbsp;1]</tdpre>{{#ifHowever, this results in cumbersome source code which can be difficult to edit. Using this template, the same result can be achieved with:{{{imageright|}}}| <td class="ambox-imageright"pre> {{{imageright}mbox| ''f'': ''X'' × ''Y'' → [0, 1] }} </tdpre>}}</tr>===Dealing with equations===Because of Wikipedia limitations on templates, mbox doesn't function as stated above if the math contains an equals sign. In this case, the following syntax should be used:</table><noincludepre>{{template docmbox|eq= 2''x'' + 3''y'' + 5''z'' = 7 }}<!-- Add categories and inter-wikis to the /doc subpage, not here! --pre>
</noinclude>
Anonymous user