Wikibooks:WikiProject OpenRewi - Open Legal Science/Writing
On this page you will find technical guidance to start writing in your chapter in Wikibooks. If you have any questions, feel free to contact your editors at any time.
General remarks
editYou cannot write your text in Microsoft Word (or other word processors) and then copy it to Wikibooks. Instead, you must use one of the three editing options described below.
You have three different options for writing:
- Using Wikibook's visual editor for writing online
- Using Wikibook's source editor for writing online
- Using Atom editor for writing offline
There are four basic rules for working in Wikibooks, regardless of the technique you choose:
- Before you edit your chapter, you have to register and log in to Wikibooks.
- Instead of publishing many small changes over and over again, you should publish all changes at the same time at the end of your edit (this way, the changes are easier for others to track)
- Before publishing your edits, you should double check your change. You can do that by clicking "Show preview" at the bottom of the page
- Each edit should be summarized under "Edit summary"
Text editors for writing in Wikibooks
editVisual editor
editThe easiest way to write, publish and modify your text in Wikibooks is the visual editor. You can select the visual editor by clicking on "Edit" in the top menu bar of your chapter.
Writing using the visual editor is very similar to writing in Microsoft Word. In the top menu bar you can apply simple formatting (e.g. italic, bold or underlined), select style sheets (e.g. heading, paragraph), insert lists or tables and cite something. These elements are mostly self-explanatory.
By clicking on "Insert" and then on "Template" in the top menu bar you can select our uniform designs for advanced content and examples.
For example, to integrate a box for advanced content into your text, you
- click on "Insert",
- click on "Template",
- search for the template ("OpenRewi/Advanced"),
- click on "Add template",
- enter your heading under "Reference" and your text under "Content" and
- add the box to your text by clicking on "Insert".
If you want to insert an example, you have to select the "OpenRewi/Example" template instead of the "OpenRewi/Advanced" template in the third step.
Please make sure not to change our design theme (e.g. info boxes) and follow our style guide (especially for headings).
Source editor
editYou can also edit your chapter using the source editor. You select the source editor by clicking on "Edit source" in the upper menu bar of your chapter.
For the source editor you have to use the so called wiki syntax. Wiki syntax is a simplified markup language of HTML. The syntax is very simple so you can learn it quickly. Detailed instructions for working in the source editor can be found here. You can find an list of the most important wiki syntax commands for OpenRewi in the following cheat sheet. Just copy the code and paste it into your chapter. You just need to adjust the content for your chapter. Our style guide describes in detail what the individual parts are used for.
Title | Code | Visualization |
---|---|---|
Basic formatting | '''This is a bold text''' , this is an ''italic text'' , <u>this is an underlined text</u> and <s>this is a strikethrough text</s> . |
This is a bold text, this is an italic text, this is an underlined text and |
Headings | ==A. Heading ==
|
|
Lists | *This is a bulleted list
|
|
Footnotes | In Corfu Channel, the ICJ found state responsibility on the part of Albania.<ref>[https://www.icj-cij.org/public/files/case-related/1/001-19490409-JUD-01-00-EN.pdf Corfu Channel Case (UK v Albania) (Merits) (1949) ICJ Rep 4].</ref> |
In Corfu Channel, the ICJ found state responsibility on the part of Albania.[1] |
Link to other chapter | [[Title of your book/ Chapter|Text that should appear for the link to other chapters]] |
Text that should appear for the link to other chapters |
Link to other chapters using an anchor | [[Title of your book/ Chapter#anchor:name of your anchor|Text that should appear for the link to an anchor]] |
Text that should appear for the link to an anchor |
Anchor in linked text | {{anchor|name of your anchor}}
| |
Link to source outside Wikibooks | [https://openrewi.org/en/english/ Text that should appear for the link to sources outside Wikibooks] |
Text that should appear for the link to sources outside Wikibooks |
Providing examples | {{Template:OpenRewi/Example|Content=This is your example.|Reference= example topic}} |
|
Providing advanced content | {{Template:OpenRewi/Advanced|Content=This is your advanced content.|Reference=Heading for your advanced content}} |
Advanced: Heading for your advanced content
This is your advanced content.
|
Embed interactive elements | {{Template:OpenRewi/Test|Link=Link to H5P element#your_anchor}} |
Test your knowledge in our learning area.
|
Comment in source code | <!--This is a comment.--> |
Atom editor
editIf you prefer to write your texts offline first (and not immediately in the visual editor, where every intermediate saving also means a publication), we recommend the program Atom. If you want to write your text offline first, you have to use the so called "Wiki-Syntax". This is not difficult and quickly learned (as described in the previous section about the source editor). You can find an overview of the most important commands for OpenRewi in this cheat sheet. Just copy the code and paste it into the Atom editor. You just need to adjust the content for your chapter. Detailed instructions for working in the source editor can be found here.
To write your text offline using Atom, you need to follow the steps below:
- Download Atom and install the program
- Install the Mediawiki-Package in Atom according to the following steps
- Open the preferences window of Atom
- Click on "Install"
- Search for "language-mediawiki" and click on "install
- Set "Mediawiki" as format instead of "plain text" in the lower right corner between UTF-8 and Github
- Start writing in Atom and do not forget to save your document on your computer from time to time
- As soon as you finalized parts of your chapter in Atom using the wiki syntax, you can just copy and paste it into your chapter in Wikibooks using the source editor.
Embedding interactive exercises
editYou are welcome to embed links to interactive exercises into your chapter. Among other things, you can create single or multiple choice questions and cloze texts. For this you need to use the H5P framework. How to do this is described below.
To create interactive exercises, you need to follow these steps:
- Click on this [link] and log in with the data shared with you by the editors. For the PIL Team, the login data can be found under this link in [Nextcloud]
- Click on "H5P Content" -> "Add New" in the left sidebar and select an exercise type (e.g. multiple choice, fill in the blanks etc.)
- Fill in the necessary fields for your selected exercise type
- Scroll down to "Labels and captions" (in German: "Bezeichnungen und Beschriftungen") and change the language from German to English
- Click on "Create" in the upper right corner
- Copy the shortcode in the upper right corner
[h5p id="your_number"]
- Double check your exercise
- Search the "exercise page" of your book, which has been created by the editors. For the PIL Team, you will find the exercise pages [here]
- Create a paragraph and a heading for your topic (e.g. "Exercises on state responsibility") on your respective exercise page (History, Theory, and Methods; General International Law; Specialized Fields)
- Copy the short code to the desired location on the exercise page
- Set an anchor: Click on your short code, select "Block" on the right sidebar, and choose a suitable description without spaces at the end under "Advanced" at "HTML anchor".
- Add the template "OpenRewi/Test" to your Wikibooks chapter and enter the link to your exercise page (point 8) of your book supplemented by "#" and the name of your anchor
{{Template:OpenRewi/Test|Link=Link to H5P element#your_anchor}}
- Publish your changes on Wikibooks and check if the link to your exercise works
Note: Sometimes it can take a while until your exercise is displayed. It is best to simply restart the browser, clear the cache or make a test with another device.