הבדלים בין גרסאות בדף "תבנית:Equation"

מתוך Math-Wiki
קפיצה אל: ניווט, חיפוש
(דף חדש: <noinclude> ==Usage== Used to add new rows of aligned math text.'''{|''' needs to be called first. You can add a new general row in the following manner: <pre><nowiki> {{equation |l= |…)
 
 
(29 גרסאות ביניים של אותו משתמש אינן מוצגות)
שורה 1: שורה 1:
 
<noinclude>
 
<noinclude>
==Usage==
+
יש להשתמש ב-[[תבנית:=|<nowiki>{{</nowiki>=<nowiki>}}</nowiki>]] במקום
Used to add new rows of aligned math text.'''{|''' needs to be called first. You can add a new general row in the following manner:
+
 
+
<pre><nowiki>
+
{{equation |l= |r= }}
+
</nowiki></pre>
+
 
+
The different possible variables that can be used are:
+
# ll - Furthest left column (used only when needed).
+
# l - General left column.
+
# o - Operator, defaults to <math>=</math>
+
# r - General right column.
+
# rr - Furthest  right column (used only when needed).
+
# c - Comment
+
# cc - Extra comment (used only when needed).
+
 
+
Once the full equation is completed, '''|}''' must be called.
+
==Example==
+
<pre><nowiki>
+
{|
+
{{equation|l=<math>42</math>|r=<math>21\cdot2</math>}}
+
{{equation|o=<math>\leq</math>|r=<math>12345</math>|c=since <math>21\cdot2=42\leq12345</math>}}
+
|}
+
</nowiki></pre>
+
gives:
+
{|
+
{{equation|l=<math>42</math>|r=<math>21\cdot2</math>}}
+
{{equation|o=<math>\leq</math>|r=<math>12345</math>|c=כי <math>21\cdot2=42\leq12345</math>}}
+
|}
+
 
+
 
</noinclude>
 
</noinclude>
<includeonly>|-
+
|-
| align="right" | {{ #if: {{{ll|}}}|{{{ll}}}|}}
+
| align="right" | {{{cc|}}}
| align="right" | {{#if: {{{l|}}}|{{{l}}}|}}
+
| align="right" dir="rtl" style="width:100%; padding:0 5px 0 20px;" | {{{c|}}}
| align="center" | {{#if: {{{o|}}}|{{{o}}}|<math>=</math>}}
+
| align="left" | {{#תגית:math|{{{rr|}}}}}
| align="left"   | {{ #if: {{{r|}}}|{{{r}}}|}}
+
| align="left" style="padding:0 10px 0 7px;" | {{#תגית:math|{{{r|}}}}}
| align="left"   | {{ #if: {{{rr|}}}|{{{rr}}}|}}
+
| align="center" | {{#תגית:math|{{{o|=}}}}}
| align="right" | {{ #if: {{{c|}}}|{{{c}}}|}}
+
| align="right" style="padding:0 7px 0 10px;" | {{#תגית:math|{{{l|}}}}}
| align="right" | {{ #if: {{{cc|}}}|{{{cc}}}|}}</includeonly>
+
| align="right" | {{#תגית:math|{{{ll|}}}}}

גרסה אחרונה מ־17:34, 25 בינואר 2011

יש להשתמש ב-{{=}} במקום

|- | align="right" | | align="right" dir="rtl" style="width:100%; padding:0 5px 0 20px;" | | align="left" | | align="left" style="padding:0 10px 0 7px;" | | align="center" | = | align="right" style="padding:0 7px 0 10px;" | | align="right" |