Template:EquationRef
{{#ifeq: EquationRef | sandbox
|
Template:Template sandbox notice
}}{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:Template|Template | template | other }} }}
| template = {{#ifeq: | sysop
| {{#ifeq:{{#switch:{{#switch:{{#ifeq:-|-sysop|move|}} |semi |autoconfirmed=semi |administrator |full |sysop=indef |move=move |#default=indef}} |move={{#ifeq: {{#switch:{{#ifeq:equationref/template|equationref/template|undefined|{{#ifeq:equationref|sandbox|sysop|undefined}}}} |semi |autoconfirmed = autoconfirmed |administrator |full |sysop = sysop |undefined = |#default = }} |sysop|yes|no }} |create={{#if: {{#switch:{{#ifeq:equationref/template|equationref/template|undefined|{{#ifeq:equationref|sandbox|sysop|undefined}}}} |semi |autoconfirmed = autoconfirmed |administrator |full |sysop = sysop |undefined = |#default = }} |yes|no }} |pc1 ={{#ifeq: {{#switch:{{#ifeq:equationref/template|equationref/template|undefined|{{#ifeq:equationref|sandbox|sysop|undefined}}}} |pc1 = autoconfirmed |undefined = Template:PENDINGCHANGELEVEL |#default = }} |autoconfirmed |yes|no }} |pc2 ={{#ifeq: {{#switch:{{#ifeq:equationref/template|equationref/template|undefined|{{#ifeq:equationref|sandbox|sysop|undefined}}}} |pc2 = review |undefined = Template:PENDINGCHANGELEVEL |#default = }} |review |yes|no }}
|#default={{#if:
{{#switch:{{#ifeq:equationref/template|equationref/template|undefined|{{#ifeq:equationref|sandbox|sysop|undefined}}}} |semi |autoconfirmed = autoconfirmed |administrator |full |sysop = sysop |undefined = |#default = }} |{{#ifeq:{{#switch: |semi |autoconfirmed = autoconfirmed |administrator |full |sysop = sysop |#default = }} |{{#switch:{{#ifeq:equationref/template|equationref/template|undefined|{{#ifeq:equationref|sandbox|sysop|undefined}}}} |semi |autoconfirmed = autoconfirmed |administrator |full |sysop = sysop |undefined = |#default = }} |no|yes }} |no}}
}}|yes|{{#ifeq:yes|yes| {{#switch:{{#switch:{{#ifeq:-|-sysop|move|}}
|semi |autoconfirmed=semi |administrator |full |sysop=indef |move=move |#default=indef}}
| pc1 | pc2 =
}}[[Image:{{#switch:{{#switch:{{#ifeq:-|-sysop|move|}}
|semi |autoconfirmed=semi |administrator |full |sysop=indef |move=move |#default=indef}} |full=Padlock.svg |semi=Padlock-silver.svg |pc1=Padlock-silver-light.svg |pc2=Padlock-orange.svg |move=Padlock-olive.svg |indef=Padlock-red.svg |office=Padlock-black.svg |create=Padlock-skyblue.svg |#default=Transparent.gif
}}|20px|link=Wikipedia:Protection policy#{{#switch:{{#ifeq:-|-sysop|move|}}
|semi |autoconfirmed=semi |administrator |full |sysop=indef |move=move |#default=indef}}|This {{#ifeq:Template|File|image, included in a high-risk template or message,|high-risk template}} is indefinitely {{#switch:{{#ifeq:-|-sysop|move|}} |semi |autoconfirmed=semi-protected from editing |move=move-protected |administrator |full |sysop |#default=protected from editing}} to prevent vandalism.|alt=Page {{#switch:{{#switch:{{#ifeq:-|-sysop|move|}} |semi |autoconfirmed=semi |administrator |full |sysop=indef |move=move |#default=indef}} |pc1=protected with pending changes level 1 |pc2=protected with pending changes level 2 |semi=semi-protected |move=move-protected |indef=permanently protected |create=creation-protected |office=protected |full |#default=protected}}]]
| Template:Mbox }}|}}{{#ifeq:{{#ifeq:template|template|{{#switch:{{#ifeq:-|-sysop|move|}}
|semi |autoconfirmed={{#ifeq:|sysop|}} |move= |administrator |full |sysop |#default=}}}}{{#ifeq:template|file|[[category:{{#switch: |semi |autoconfirmed=semi-protected |administrator |full |sysop |#default=protected}} images|equationref]]}}|no||{{#ifeq:Template|Template|{{#switch:{{#ifeq:-|-sysop|move|}} |semi |autoconfirmed={{#ifeq:|sysop|}} |move= |administrator |full |sysop |#default=}}}}{{#ifeq:Template|File|[[Category:{{#switch: |semi |autoconfirmed=Semi-protected |administrator |full |sysop |#default=Protected}} images|EquationRef]]}}}} | {{#if: | {{#ifeq:{{#switch:{{#switch:{{#ifeq:-|-sysop|move|}} |semi |autoconfirmed=semi |administrator |full |sysop=indef |move=move |#default=indef}} |move={{#ifeq: {{#switch:{{#ifeq:equationref/template|equationref/template|undefined|{{#ifeq:equationref|sandbox|sysop|undefined}}}} |semi |autoconfirmed = autoconfirmed |administrator |full |sysop = sysop |undefined = |#default = }} |sysop|yes|no }} |create={{#if: {{#switch:{{#ifeq:equationref/template|equationref/template|undefined|{{#ifeq:equationref|sandbox|sysop|undefined}}}} |semi |autoconfirmed = autoconfirmed |administrator |full |sysop = sysop |undefined = |#default = }} |yes|no }} |pc1 ={{#ifeq: {{#switch:{{#ifeq:equationref/template|equationref/template|undefined|{{#ifeq:equationref|sandbox|sysop|undefined}}}} |pc1 = autoconfirmed |undefined = Template:PENDINGCHANGELEVEL |#default = }} |autoconfirmed |yes|no }} |pc2 ={{#ifeq: {{#switch:{{#ifeq:equationref/template|equationref/template|undefined|{{#ifeq:equationref|sandbox|sysop|undefined}}}} |pc2 = review |undefined = Template:PENDINGCHANGELEVEL |#default = }} |review |yes|no }}
|#default={{#if:
{{#switch:{{#ifeq:equationref/template|equationref/template|undefined|{{#ifeq:equationref|sandbox|sysop|undefined}}}} |semi |autoconfirmed = autoconfirmed |administrator |full |sysop = sysop |undefined = |#default = }} |{{#ifeq:{{#switch: |semi |autoconfirmed = autoconfirmed |administrator |full |sysop = sysop |#default = }} |{{#switch:{{#ifeq:equationref/template|equationref/template|undefined|{{#ifeq:equationref|sandbox|sysop|undefined}}}} |semi |autoconfirmed = autoconfirmed |administrator |full |sysop = sysop |undefined = |#default = }} |no|yes }} |no}}
}}|yes|{{#ifeq:yes|yes| {{#switch:{{#switch:{{#ifeq:-|-sysop|move|}}
|semi |autoconfirmed=semi |administrator |full |sysop=indef |move=move |#default=indef}}| pc1 | pc2 =
}}[[Image:{{#switch:{{#switch:{{#ifeq:-|-sysop|move|}}
|semi |autoconfirmed=semi |administrator |full |sysop=indef |move=move |#default=indef}} |full=Padlock.svg |semi=Padlock-silver.svg |pc1=Padlock-silver-light.svg |pc2=Padlock-orange.svg |move=Padlock-olive.svg |indef=Padlock-red.svg |office=Padlock-black.svg |create=Padlock-skyblue.svg |#default=Transparent.gif
}}|20px|link=Wikipedia:Protection policy#{{#switch:{{#ifeq:-|-sysop|move|}}
|semi |autoconfirmed=semi |administrator |full |sysop=indef |move=move |#default=indef}}|This {{#ifeq:Template|File|image, included in a high-risk template or message,|high-risk template}} is indefinitely {{#switch:{{#ifeq:-|-sysop|move|}} |semi |autoconfirmed=semi-protected from editing |move=move-protected |administrator |full |sysop |#default=protected from editing}} to prevent vandalism.|alt=Page {{#switch:{{#switch:{{#ifeq:-|-sysop|move|}} |semi |autoconfirmed=semi |administrator |full |sysop=indef |move=move |#default=indef}} |pc1=protected with pending changes level 1 |pc2=protected with pending changes level 2 |semi=semi-protected |move=move-protected |indef=permanently protected |create=creation-protected |office=protected |full |#default=protected}}]]
| Template:Mbox }}|}}{{#ifeq:{{#ifeq:template|template|{{#switch:{{#ifeq:-|-sysop|move|}}
|semi |autoconfirmed={{#ifeq:|sysop|}} |move= |administrator |full |sysop |#default=}}}}{{#ifeq:template|file|[[category:{{#switch: |semi |autoconfirmed=semi-protected |administrator |full |sysop |#default=protected}} images|equationref]]}}|no||{{#ifeq:Template|Template|{{#switch:{{#ifeq:-|-sysop|move|}} |semi |autoconfirmed={{#ifeq:|sysop|}} |move= |administrator |full |sysop |#default=}}}}{{#ifeq:Template|File|[[Category:{{#switch: |semi |autoconfirmed=Semi-protected |administrator |full |sysop |#default=Protected}} images|EquationRef]]}}}} | }} }}
| other | #default =
}}|
|#if: The pair of templates {{EquationRef}} and {{EquationNote}} is used for labeling equations in text.
For example, :{{EquationRef|Eq. 1}} <math>x^2+x+1=0</math> results in:
Here, the identifier "Eq. 1" is a label which can be later referred to with a call to {{EquationNote}}. That is, {{EquationNote|Eq. 1}} produces a link {{#if:|{{{2}}}|Eq. 1}} to this equation.
Similarly, :{{EquationRef|2|Eq. 2:}} <math>x^2-2x+1=0</math> results in
which can be referred to by {{EquationNote|2}} or even {{EquationNote|2|Equation 2}} (i.e., {{#if:Equation 2|Equation 2|2}}).
This template can be used together with {{NumBlk}} to produce nicely formatted numbered equations. For instance:
- {{NumBlk|::|<math>x^2+x+1=0</math>|{{EquationRef|3}}}} gives
{{#if:::|{{{{{safesubst:#invoke:String|len|s=::}}}}}|}}
thin solid|none}}; padding:0.08em;" nowrap| | thin solid|none}}; padding:0.08em;"|
|
thin solid|none}}; padding:0.08em;" nowrap| {{#if:|{{{3}}}|({{{3}}})}} |
- which may then be referred to by {{EquationNote|3}} or even {{EquationNote|3|Eq. 3}} (i.e., {{#if:Eq. 3|Eq. 3|3}}).
- {{NumBlk|::|<math>x^2+x+1=0</math>|{{EquationRef|4|Eq.4}}}} gives
{{#if:::|{{{{{safesubst:#invoke:String|len|s=::}}}}}|}}
thin solid|none}}; padding:0.08em;" nowrap| | thin solid|none}}; padding:0.08em;"|
|
thin solid|none}}; padding:0.08em;" nowrap| {{#if:|{{{3}}}|({{{3}}})}} |
- {{NumBlk|::|<math>x^2+x+1=0</math>|{{EquationRef|Eq.5}}}} gives
{{#if:::|{{{{{safesubst:#invoke:String|len|s=::}}}}}|}}
thin solid|none}}; padding:0.08em;" nowrap| | thin solid|none}}; padding:0.08em;"|
|
thin solid|none}}; padding:0.08em;" nowrap| {{#if:|{{{3}}}|({{{3}}})}} |
|
|
{{
#if: {{#ifexist:
{{#if:
|
| {{#switch: Template
|
| File
| MediaWiki
| Category = Template talk
| #default = Template
}}:{{#switch: EquationRef | sandbox | testcases = EquationRef | #default = EquationRef }}/doc
}} | yes }} | [[[{{#if: | | {{#switch: Template | | File | MediaWiki | Category = Template talk | #default = Template
}}:{{#switch: EquationRef | sandbox | testcases = EquationRef | #default = EquationRef }}/doc
}}|view]]] [[{{fullurl:{{#if: | | {{#switch: Template | | File | MediaWiki | Category = Template talk | #default = Template
}}:{{#switch: EquationRef | sandbox | testcases = EquationRef | #default = EquationRef }}/doc
}}|action=edit}} edit]] [[{{fullurl:{{#if: | | {{#switch: Template | | File | MediaWiki | Category = Template talk | #default = Template
}}:{{#switch: EquationRef | sandbox | testcases = EquationRef | #default = EquationRef }}/doc
}}|action=history}} history]] [purge]
|
[[{{fullurl:{{#if:
|
| {{#switch: Template
|
| File
| MediaWiki
| Category = Template talk
| #default = Template
}}:{{#switch: EquationRef | sandbox | testcases = EquationRef | #default = EquationRef }}/doc
}}| action=edit&preload={{
#if:
|
| {{#ifeq: Template | File
| Template:Documentation/preload-filespace
| Template:Documentation/preload
}} }} }} create]]
}}
}} {{#switch: ¬
| ¬ =
{{#switch: Template
| Template = 50px Template documentation
| Template:Ns:Module = 50px Module documentation
| File = Summary
| #default = Documentation
}}
| #default =
¬
}}}} {{#switch: {{#if:The pair of templates {{EquationRef}} and {{EquationNote}} is used for labeling equations in text.
For example, :{{EquationRef|Eq. 1}} <math>x^2+x+1=0</math> results in:
Here, the identifier "Eq. 1" is a label which can be later referred to with a call to {{EquationNote}}. That is, {{EquationNote|Eq. 1}} produces a link {{#if:|{{{2}}}|Eq. 1}} to this equation.
Similarly, :{{EquationRef|2|Eq. 2:}} <math>x^2-2x+1=0</math> results in
which can be referred to by {{EquationNote|2}} or even {{EquationNote|2|Equation 2}} (i.e., {{#if:Equation 2|Equation 2|2}}).
This template can be used together with {{NumBlk}} to produce nicely formatted numbered equations. For instance:
- {{NumBlk|::|<math>x^2+x+1=0</math>|{{EquationRef|3}}}} gives
{{#if:::|{{{{{safesubst:#invoke:String|len|s=::}}}}}|}}
thin solid|none}}; padding:0.08em;" nowrap| | thin solid|none}}; padding:0.08em;"|
|
thin solid|none}}; padding:0.08em;" nowrap| {{#if:|{{{3}}}|({{{3}}})}} |
- which may then be referred to by {{EquationNote|3}} or even {{EquationNote|3|Eq. 3}} (i.e., {{#if:Eq. 3|Eq. 3|3}}).
- {{NumBlk|::|<math>x^2+x+1=0</math>|{{EquationRef|4|Eq.4}}}} gives
{{#if:::|{{{{{safesubst:#invoke:String|len|s=::}}}}}|}}
thin solid|none}}; padding:0.08em;" nowrap| | thin solid|none}}; padding:0.08em;"|
|
thin solid|none}}; padding:0.08em;" nowrap| {{#if:|{{{3}}}|({{{3}}})}} |
- {{NumBlk|::|<math>x^2+x+1=0</math>|{{EquationRef|Eq.5}}}} gives
{{#if:::|{{{{{safesubst:#invoke:String|len|s=::}}}}}|}}
thin solid|none}}; padding:0.08em;" nowrap| | thin solid|none}}; padding:0.08em;"|
|
thin solid|none}}; padding:0.08em;" nowrap| {{#if:|{{{3}}}|({{{3}}})}} |
- which may be referred to by {{EquationNote|Eq.5}} (i.e., {{#if:|{{{2}}}|Eq.5}}).|1|0}}{{#if:|1|0}}{{#ifexist:|1|0}}{{#ifexist:{{#switch: Template
| | File | MediaWiki | Category = Template talk | #default = Template
}}:{{#switch: EquationRef | sandbox | testcases = EquationRef | #default = EquationRef }}/doc|1|0}} | 1000 | 1001 | 1010 | 1011 | 1100 | 1101 | 1110 | 1111 = The pair of templates {{EquationRef}} and {{EquationNote}} is used for labeling equations in text.
For example, :{{EquationRef|Eq. 1}} <math>x^2+x+1=0</math> results in:
Here, the identifier "Eq. 1" is a label which can be later referred to with a call to {{EquationNote}}. That is, {{EquationNote|Eq. 1}} produces a link {{#if:|{{{2}}}|Eq. 1}} to this equation.
Similarly, :{{EquationRef|2|Eq. 2:}} <math>x^2-2x+1=0</math> results in
which can be referred to by {{EquationNote|2}} or even {{EquationNote|2|Equation 2}} (i.e., {{#if:Equation 2|Equation 2|2}}).
This template can be used together with {{NumBlk}} to produce nicely formatted numbered equations. For instance:
- {{NumBlk|::|<math>x^2+x+1=0</math>|{{EquationRef|3}}}} gives
{{#if:::|{{{{{safesubst:#invoke:String|len|s=::}}}}}|}}
thin solid|none}}; padding:0.08em;" nowrap| | thin solid|none}}; padding:0.08em;"|
|
thin solid|none}}; padding:0.08em;" nowrap| {{#if:|{{{3}}}|({{{3}}})}} |
- which may then be referred to by {{EquationNote|3}} or even {{EquationNote|3|Eq. 3}} (i.e., {{#if:Eq. 3|Eq. 3|3}}).
- {{NumBlk|::|<math>x^2+x+1=0</math>|{{EquationRef|4|Eq.4}}}} gives
{{#if:::|{{{{{safesubst:#invoke:String|len|s=::}}}}}|}}
thin solid|none}}; padding:0.08em;" nowrap| | thin solid|none}}; padding:0.08em;"|
|
thin solid|none}}; padding:0.08em;" nowrap| {{#if:|{{{3}}}|({{{3}}})}} |
- {{NumBlk|::|<math>x^2+x+1=0</math>|{{EquationRef|Eq.5}}}} gives
{{#if:::|{{{{{safesubst:#invoke:String|len|s=::}}}}}|}}
thin solid|none}}; padding:0.08em;" nowrap| | thin solid|none}}; padding:0.08em;"|
|
thin solid|none}}; padding:0.08em;" nowrap| {{#if:|{{{3}}}|({{{3}}})}} |
| 0110 | 0111 = {{ {{{1}}} }} | 0001 | 0011 = {{ {{#switch: Template
| | File | MediaWiki | Category = Template talk | #default = Template
}}:{{#switch: EquationRef | sandbox | testcases = EquationRef | #default = EquationRef }}/doc }} | 0000 | 0100 | 0010 | 0101 = }}
{{#ifeq: | off | | {{#ifexist: {{#if: | | {{#switch: Template | | File | MediaWiki | Category = Template talk | #default = Template
}}:{{#switch: EquationRef | sandbox | testcases = EquationRef | #default = EquationRef }}/doc
}} | yes }}{{ #switch: Template | User | Template = yes }} }}| {{#ifeq:none|none | | }} {{#if: |
}}
{{#if:none | none | [[File:{{#switch: | warning = Cmbox deletion.png | editnotice = Imbox notice.png | system | #default = Imbox notice.png }}|40x40px|link=|alt=]]}} | {{#if:
| | {{#if: {{#ifexist: {{#if: | | {{#switch: Template | | File | MediaWiki | Category = Template talk | #default = Template }}:{{#switch: EquationRef | sandbox | testcases = EquationRef | #default = EquationRef }}/doc }} | yes }} | The above documentation is transcluded from [[{{#if: | | {{#switch: Template | | File | MediaWiki | Category = Template talk | #default = Template }}:{{#switch: EquationRef | sandbox | testcases = EquationRef | #default = EquationRef }}/doc }}]]. ([{{fullurl:{{#if: | | {{#switch: Template | | File | MediaWiki | Category = Template talk | #default = Template }}:{{#switch: EquationRef | sandbox | testcases = EquationRef | #default = EquationRef }}/doc }}|action=edit}} edit] | [{{fullurl:{{#if: | | {{#switch: Template | | File | MediaWiki | Category = Template talk | #default = Template }}:{{#switch: EquationRef | sandbox | testcases = EquationRef | #default = EquationRef }}/doc }}|action=history}} history]) }}:{{#switch: EquationRef | sandbox | testcases = EquationRef | #default = EquationRef }}/sandbox | [[{{#switch: Template | | File | MediaWiki | Category = Template talk | #default = Template }}:{{#switch: EquationRef | sandbox | testcases = EquationRef | #default = EquationRef }}/sandbox|sandbox]] ([{{fullurl: {{#switch: Template | | File | MediaWiki | Category = Template talk | #default = Template }}:{{#switch: EquationRef | sandbox | testcases = EquationRef | #default = EquationRef }}/sandbox | action=edit }} edit] | diff) | sandbox ([{{fullurl: {{#switch: Template | | File | MediaWiki | Category = Template talk | #default = Template }}:{{#switch: EquationRef | sandbox | testcases = EquationRef | #default = EquationRef }}/sandbox | action=edit&preload=Template:Documentation/preload-sandbox }} create] | [{{fullurl: {{#switch: Template | | File | MediaWiki | Category = Template talk | #default = Template }}:{{#switch: EquationRef | sandbox | testcases = EquationRef | #default = EquationRef }}/sandbox | action=edit&preload=Template%3A%7B%7B%23switch%3A+EquationRef%0A%7C+sandbox%0A%7C+testcases+%3D+EquationRef%0A%7C+%23default+%3D+EquationRef%0A%7D%7D&summary=Create+sandbox+version+of+%5B%5BTemplate%3A%7B%7B%23switch%3A+EquationRef%0A%7C+sandbox%0A%7C+testcases+%3D+EquationRef%0A%7C+%23default+%3D+EquationRef%0A%7D%7D%5D%5D }} mirror]) }} and {{ #ifexist: {{#switch: Template | | File | MediaWiki | Category = Template talk | #default = Template }}:{{#switch: EquationRef | sandbox | testcases = EquationRef | #default = EquationRef }}/testcases | [[{{#switch: Template | | File | MediaWiki | Category = Template talk | #default = Template }}:{{#switch: EquationRef | sandbox | testcases = EquationRef | #default = EquationRef }}/testcases|testcases]] ([{{fullurl: {{#switch: Template | | File | MediaWiki | Category = Template talk | #default = Template }}:{{#switch: EquationRef | sandbox | testcases = EquationRef | #default = EquationRef }}/testcases | action=edit }} edit]) | testcases ([{{fullurl: {{#switch: Template | | File | MediaWiki | Category = Template talk | #default = Template }}:{{#switch: EquationRef | sandbox | testcases = EquationRef | #default = EquationRef }}/testcases | action=edit&preload=Template:Documentation/preload-testcases }} create]) }} pages. For example, :{{EquationRef|Eq. 1}} <math>x^2+x+1=0</math> results in: Here, the identifier "Eq. 1" is a label which can be later referred to with a call to {{EquationNote}}. That is, {{EquationNote|Eq. 1}} produces a link {{#if:|{{{2}}}|Eq. 1}} to this equation. Similarly, :{{EquationRef|2|Eq. 2:}} <math>x^2-2x+1=0</math> results in which can be referred to by {{EquationNote|2}} or even {{EquationNote|2|Equation 2}} (i.e., {{#if:Equation 2|Equation 2|2}}). This template can be used together with {{NumBlk}} to produce nicely formatted numbered equations. For instance:
{{#if:::|{{{{{safesubst:#invoke:String|len|s=::}}}}}|}}
{{#if:::|{{{{{safesubst:#invoke:String|len|s=::}}}}}|}}
{{#if:::|{{{{{safesubst:#invoke:String|len|s=::}}}}}|}}
| yes }} | | Please add categories to the [[{{#if: | | {{#switch: Template | | File | MediaWiki | Category = Template talk | #default = Template }}:{{#switch: EquationRef | sandbox | testcases = EquationRef | #default = EquationRef }}/doc }}|/doc]] subpage. }}{{#switch: Template | File = | Template = [[Special:PrefixIndex/Template:{{#switch: EquationRef | sandbox | testcases = EquationRef | #default = EquationRef }}/|Subpages of this template]]. | #default = [[Special:PrefixIndex/Template:{{#switch: EquationRef | sandbox | testcases = EquationRef | #default = EquationRef }}/|Subpages of this page]]. }} }}{{#ifexist:Template:EquationRef/Print |}} | {{{imageright}}} |
| | warning | editnotice | system =
| #default =}} }}{{#if:
{{#switch: EquationRef | doc | testcases = strange }}
|
}}
- Wikipedia pages with incorrect protection templates
- Wikipedia semi-protected templates
- Wikipedia move-protected templates
- Wikipedia protected templates
- Mathematical formatting templates
- Pages with broken file links
- Templates with print versions
- Wikipedia message box parameter needs fixing
- Wikipedia pages with strange ((documentation)) usage