Wikitext: Difference between revisions

 
(6 intermediate revisions by the same user not shown)
Line 3: Line 3:
Inline code can by represented with <nowiki><code></code></nowiki><br>
Inline code can by represented with <nowiki><code></code></nowiki><br>
Code blocks should be like:
Code blocks should be like:
<pre>
<pre>
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">
Line 10: Line 11:


==Math==
==Math==
Math is written in standard latex syntax inside of <nowiki><math></math></nowiki>.
Math is written in standard latex syntax inside of <nowiki><math></math></nowiki>.
I use a modified version of SimpleMathJax: https://github.com/dli7319/SimpleMathJax3.
 
* Beware: Do not use <code>||</code>, use <code>\Vert</code> instead.
* Beware: Do not use <code>||</code>, use <code>\Vert</code> instead.
* The attribute <code>display</code> can be used to control the rendering style. See [[Mediawikiwiki: Extension:Math/Displaystyle]].
** <code>display="inline"</code> renders inline math inline.
** <code>display="block"</code> renders display math which separate and centered.
** Omitting display will render display math inline.


==Images==
==Images==
See [https://www.mediawiki.org/wiki/Help:Images https://www.mediawiki.org/wiki/Help:Images]
See [[Mediawikiwiki: Help:Images]].


==Line Breaks==
==Line Breaks==
Line 22: Line 29:


Download my extension [[Mediawikiwiki: Extension:LineBreaks]] to use two spaces and a new line as a line break.
Download my extension [[Mediawikiwiki: Extension:LineBreaks]] to use two spaces and a new line as a line break.
==References==
Referenced are defined using the <code>&lt;ref&gt;</code> tag inline. 
I'm actually pretty opposed to formatting all references inline with the wikitext.
They should be centralized somewhere else such as in a references section.
Instead you can use [[Wikipedia: Help:Footnotes#List-defined_references]].
<syntaxhighlight lang="xml">
{{reflist|refs=
<ref name="name1">Content</ref>
<ref name="name2">Content</ref>
<ref name="name...n">Content</ref>
}}
</syntaxhighlight>