Mudanças entre as edições de "EquationRef"

De Wiki Coolab
Ir para navegação Ir para pesquisar
EquationNote>TedPavlic
m (In an attempt to get rid of "({SPACE}2)" type labels generated by NumBlk+EquationRef, got rid of some spaces.)
m (31 edições )
 
(15 revisões intermediárias por 12 usuários não estão sendo mostradas)
Linha 1: Linha 1:
<includeonly><cite {{#ifeq:{{{noid}}}|noid||id="math_{{{1}}}"}}><span class="reference plainlinksneverexpand">'''{{ #if: {{{2| }}} | [[#equation_{{{1}}} |{{{2}}}]] | [[#equation_{{{1}}}|{{{1}}}]] }}'''</span></cite></includeonly><noinclude>
+
<includeonly><span {{#ifeq:{{{noid}}}|noid||id="math_{{{1}}}"}} class="reference nourlexpansion" style="font-weight:bold;">{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}</span></includeonly><noinclude>{{documentation}}</noinclude>
The pair of templates {{tl|EquationRef}} and {{tl|EquationNote}} is used for labeling equations in text.  The following equation:
 
:{{EquationRef|Eq. 1}} <math>x^2+x+1=0</math>
 
Is typeset by <nowiki>:{{EquationRef|Eq. 1}} <math>x^2+x+1=0</math></nowiki>.  Here the identifier "Eq. 1" is a label which can be later referred to with the following call to {{tl|EquationNote}}: <nowiki>{{EquationNote|Eq. 1}}</nowiki>.  This produces a link {{EquationNote|Eq. 1}} to equation Eq. 1.
 
 
 
This template can be used together with {{tl|NumBlk}} to produce nicely formatted numbered equations.  For instance, <nowiki>{{NumBlk|:|<math>x^2+x+1=0</math>|{{EquationRef|2}}}}</nowiki> gives
 
 
 
{{NumBlk|:|<math>x^2+x+1=0</math>|{{EquationRef|2}}}}
 
 
 
which may then be referred to by <nowiki>{{EquationNote|2}}</nowiki>.
 
</noinclude>
 

Edição atual tal como às 18h38min de 16 de abril de 2020

Erro de script: Nenhum módulo desse tipo "documentation".