APL Wiki:Formatting: Difference between revisions

Jump to navigation Jump to search
739 bytes added ,  12:57, 4 November 2019
Miraheze>Adám Brudzewsky
No edit summary
Miraheze>Adám Brudzewsky
Line 8: Line 8:
It is fine for a page to have a section about a subject that also has its own page. When that happens, begin the section with <code><nowiki>{{Main|subject}}</nowiki></code> where <code>subject</code> is the target page title. Don't include double brackets (as a page link) — it is done for you.
It is fine for a page to have a section about a subject that also has its own page. When that happens, begin the section with <code><nowiki>{{Main|subject}}</nowiki></code> where <code>subject</code> is the target page title. Don't include double brackets (as a page link) — it is done for you.
== Inserting code ==
== Inserting code ==
=== Inline ===
=== Mathematical notation ===
MathJax is enabled, so you can insert mathematical notation (for example for [[Iverson notation]]) inline using
<blockquote><pre>
included the expression <math>⊥p_{32,33}:+/\alpha^2/I^0</math> in its description
</pre></blockquote>
which results in:
<blockquote>
included the expression <math>⊥p_{32,33}:+/\alpha^2/I^0</math> in its description
</blockquote>
For multiple and larger mathematical expressions, use
<blockquote><pre>
included the expression
:<math>i←O^{⊥I^0_{0,1,2,3}}_{⊥I^0_{4,5,6,7}}</math>
in its description
</pre></blockquote>
which results in:
<blockquote>
included the expression
:<math>i←O^{⊥I^0_{0,1,2,3}}_{⊥I^0_{4,5,6,7}}</math>
in its description
</blockquote>
 
=== Inline code ===
Inline code is used for single primitives and short expressions and uses the format
Inline code is used for single primitives and short expressions and uses the format


Line 61: Line 83:
2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97
2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97
</source></blockquote>
</source></blockquote>
== Creating new pages ==
== Creating new pages ==
=== Primitives and other built-ins ===
=== Primitives and other built-ins ===

Navigation menu