Help

From HandWiki

How to create a HandWiki article

Registered users can create articles in the usual MediaWiki MediaWiki style. See Special:CreateAccount about how to create HandWiki account. Once you are registered, simply add your "article" by entering this URL:

https://handwiki.org/wiki/article

This means you create an article in the "Main Namespace". As a rule, such articles should be about mathematics, statistical, computer and programming language terms, i.e. sufficiently general and can be shared by many specific fiels of sciences (i.e. formal and natural). Do not forget to add the corresponding "Category" at the button of the page, i.e.

[[Category:My category]]

For example, if you describe some programming language, add this:

[[Category:Programming languages]]

You can find the existing categories here: Special:Categories. All other articles for a certain topic should be created in a dedicated MediaWiki namespace, i.e. as "Namespace:article", where "Namespace" means a specific topic. For example, an article about physics should be posted as

https://handwiki.org/wiki/Physics:article

The following Namespaces are available:

  • Physics
  • Chemistry
  • Astronomy
  • Biology
  • Earth
  • Social (for social sciences)
  • Finance (for earth sciences)
  • Engineering

If you decide to create a manual, tutorial or online course on any topic dedicated to computers, programming languages, analysis algorithm, and how they are used in sciences, you should always use one of the namespaces used above, i.e. "Namespace:article". If the term is general and can be used by many sciences, create this term under the main Namespaces.


If your manual or lectures are inside a dedicated namespace, is possible to protect this material from editing by other users, or attach less permissive license. This is especially important for various manuals where editing by other users is not a good option.


HandWiki syntax

HandWiki is based on MediaWiki MediaWiki, so you can use the standard [Mediawiki MediaWiki syntax] for your articles. For example, you can view "Categories" as usual Categories. In addition, jWorkPedia has several enhancements which will be discussed below.

You can also use HTML as shown in the example below:

  sample text sample text sample text sample text

which can be programmed as:

<div style="border:1px solid #5599FF; {{Round corners}}; margin: 5px;  width=40%;">
   sample text sample text sample text sample text
</div>

In order to show these code snippets, we use "jcode" as the keyword (with its closing counterpart). You can also use the "nowiki" tag to show the above line.

Page protection

Use "ifauth" to protect code for non-members:

This part is protected

F="OK";

For jLearn port, it will look as this:

jPort

Notes

This is the standard way:

which can be programmed as:

<jnote>
My new note
</jnote>

Here are the standard MediaWiki notices:

which can be inserted as:

{{Notice | There are many kinds of snakes.}}

{{Warning| There are many kinds of snakes.}}


Including DMelt images

If you want to add images from the DataMelt (DMelt) image database, simply use the image "id" (integer value). You can find this id when look at the DMelt image gallery.

DMelt example: Kinematics of top decays

which is programmed as:

<jput>
image 93819127
</jput>

For other URL, use the standard MediaWiki approach.

Showing code

For fast rendering on server side, use "source":

Java="OK";
File F = new File();


For showing DMelt code, use "jcode" statement. The first word should be "dmelt", the second - id of the example.

from jhplot  import *
f1 = F1D("2*exp(-x*x/50)+sin(pi*x)/x", 1.0, 10.0)
c1 = HPlot("Example of  function")
c1.visible()
c1.setAutoRange()
c1.draw(f1)

which is programmed as:

<jcode lang="python">
dmelt 27777667.py
</jcode>

If the example is protected, you will see yellow box instead. You can also type code inside "jcode", but this will be less efficient than using "source" statement.


You can also show code using "pycode" tag (Python syntax). This is more protected approach since it show yellow box if not member:

You can also us this:

def quickSort(arr):
	less = []
	pivotList = []
	more = []
	if len(arr) <= 1:
		return arr
	else:
		pass

codded as:

<source lang="Python" line='line'>
def quickSort(arr):
	less = []
	pivotList = []
	more = []
	if len(arr) <= 1:
		return arr
	else:
		pass
</source>
console.log('Some JavaScript code');
console.log('Some Java code');
console.log('Some Python code');

It is used in tutorials. The best way to show output is to use "pre" tag.

Including Javadoc

Here are Javadoc. Native Java classes are identified automatically.

jhplot.H1D jhplot.H1D

programmed as:

<javadoc>jhplot.H1D</javadoc>

java.lang.String java.lang.String

programmed as:

<javadoc>java.lang.String</javadoc>

Showing Math

You can use "math" tag for math equations. See [showing formulas]

Here is inline formula: [math]\displaystyle{ \sum_{i=0}^\infty 2^{-i} }[/math]

<math inline>\sum_{i=0}^\infty 2^{-i}</math>

Another example:

[math]\displaystyle{ \text{geometric series:}\quad \sum_{i=0}^\infty 2^{-i}=2 }[/math]

<math display="block">\text{geometric series:}\quad \sum_{i=0}^\infty 2^{-i}=2 </math>

Show $F^2*cos(x)$ using the dollar sign:

$F^2*cos(x)$


Editing help

Lorem ipsum...
See also this link: WP:DR
edit 

Title

Text goes here


A bunch of text that will wrap.

Here are some examples using the "notice" style:


This text is collapsible.


Tables

General Mathematics Visualization

A

Table of contents

{{#tree: minExpandLevel=1 |

}}


{{#tree: minExpandLevel=2 |

  • DMelt/

}}

Collapsible sections

To show this output, click expand

Size: 1000
Sum: 2.0795326321690155E11
SumOfSquares: 1.722072831288292E22
Min: 4.3681673233597326E-14
Max: 1.187289072883721E11
Mean: 2.0795326321690154E8
RMS: 4.1497865382309628E9


Global notice text

Global messages for a given namespace controlled by these pages:

# jwork.org/wiki/mediawiki:top-notice-ns-3000
# jwork.org/wiki/mediawiki:bottom-notice-ns-3000


Text boxes

Here how to make text boxes:

{{robelbox|title=Test title}} <div style="{{Robelbox/pad}}"> Test content using a default bo </div> {{Robelbox/close}}


Nuvola apps bookcase.svg

Topics covering statistics, software, data mining and visualization


Here are more examples:


Theme 13

Some text here


Theme 9

Some text here


Alternative simpler syntax:

Nuvola apps bookcase.svg

Test content using a default box with theme=2

coded as:

{{Robelbox2|theme=13|title=[https://handwiki.org/wiki/Category:Statistics Data Science]| icon = Nuvola apps bookcase.svg | iconwidth=32px |width=300px | msg=Test content using a default box with theme=2}}

Citations

Here is my first reference [1]. It can be programmed as:

<ref>
Test
</ref>

Or you can use this style [2], so you can repeat it again [2]. Such repetitions in references looks should be coded as:

Or you can use this style <ref name=test>test</ref>, so you can repeat it again  <ref name=test/>.

Citations can be quite complex. This is how you can reference web resource [3]

<ref>{{cite web|url=http://www.gap-system.org/Download/copyright.html |title=GAP Copyright |date=2012-06-14 |accessdate=2015-02-26}}</ref>

And this is how to cite a journal article McCullough, B. D. (1999). "Econometric software". Journal of Applied Econometrics Journal of Applied Econometrics 14 (2): 191–202. doi:10.1002/(SICI)1099-1255(199903/04)14:2<191::AID-JAE524>3.0.CO;2-K. 

<ref>{{Cite journal |first=B. D. |last=McCullough | title=Econometric software  |journal=<wipe>Journal of Applied Econometrics</wipe> |year=1999 |volume=14 |issue=2 |pages=191–202 |doi=10.1002/(SICI)1099-1255(199903/04)14:2<191::AID-JAE524>3.0.CO;2-K }}</ref>

Here is an example of book reference [4]

<ref>{{Cite journal |first=B. D. |last=McCullough | title=Econometric software |journal=<wipe>Journal of Applied Econometrics</wipe> |year=1999 |volume=14 |issue=2 |pages=191–202 |doi=10.1002/(SICI)1099-1255(199903/04)14:2<191::AID-JAE524>3.0.CO;2-K }}</ref>


Here is how to cite news [5]

<ref>{{Cite news|url=https://www.schoolofmotion.com/blog/illustrator-vs-affinity|title=Why I Use Affinity Designer |work=School of Motion|access-date=2018-08-06}}</ref>


You can also cite arXiv article [6]

<ref>
{{cite arXiv |last=Leinster |first=Tom |date=2007 |title=The Euler characteristic of a category |eprint=0707.0835 |class=math.CT}}
</ref>


Image gallery

Use "gallery" tag. See: [1]. Here is the examples:


Wiki external links

You can link external resources to other Wikipedias

For example, if you want to link articles from Everipedia, like this Histogram Histogram, use this syntax:

<wp>Histogram</wp>

You can link Wikipedia articles about Histogram Histogram as this:

<wipe>Histogram</wipe>


Note that one can also use templates instead, which is a slightly shorter:

Show link to Wikipedia:

{{wipe|Histogram}}

and this is link to Everipedia:

{{evpe|Histogram}}

These codes produce: Histogram (Wikipedia) and Histogram (Everipedia)

As usual, you can link the local articles about Histogram as this:

[[Histogram]]

Further MediaWiki help

You can apply styling of namespaces too. See Using_custom_namespaces. Look at: MediaWiki:Common.css This option is typically for admins.

References



  1. Test
  2. 2.0 2.1 test
  3. "GAP Copyright". 2012-06-14. http://www.gap-system.org/Download/copyright.html. Retrieved 2015-02-26. 
  4. Ooms, Marius (2009). "Trends in Applied Econometrics Software". Palgrave Handbook of Econometrics. Volume 2: Applied Econometrics. Palgrave Macmillan. pp. 1321–1348. ISBN 978-1-4039-1800-0. 
  5. "Why I Use Affinity Designer". School of Motion. https://www.schoolofmotion.com/blog/illustrator-vs-affinity. 
  6. Leinster, Tom (2007). "The Euler characteristic of a category". arXiv:0707.0835 [math.CT].