Author guidelines: Difference between revisions

From IAMC-Documentation
Jump to navigation Jump to search
No edit summary
No edit summary
 
(149 intermediate revisions by 5 users not shown)
Line 1: Line 1:
__TOC__
'''Important note (!) : Do not use Internet Explorer for editing the wiki. Some functions don't work properly. Preferably use Chrome, Firefox etc.'''
==Edit text==
==Edit text==


To insert or edit text use the ''Edit'' or ''Edit with form'' tabs on the top of the page. To see how your edits are displayed save the page and navigate back the ''Read'' tab.
To insert or edit text use the ''Edit'' or ''Edit source'' tabs on the top of the page. ''Edit'' launches the Visual Editor, ''edit source'' the Wiki editor. The Visual Editor is the most user friendly editor, but sometimes the Wiki editor is needed. The most easy way to get the documentation into the wiki pages is via copy/paste from a Word document. Save the page to store the text and to see how your edits are displayed. Use the ''Read'' tab to go back directly to the webpage.
 
Some actions are more complicated: uploading and displaying figures; cross referencing figures, equations and tables; drafting equations; using citations and footnotes. Some of these actions are included in the visual editor, some of them need to be done in the wiki editor. These actions will be treated separately in the guidelines.
 
=== Visual editor ===
This is a so called ''what you see is what you get'' (WYSIWYG) editor. After clicking the ''edit'' tab on top of the page the editor loads the page content and displays your text in final format as well as generated text. Generated text consists of the  ' ''infobox'' ' template and if applicable the' ''not yet published'' ' warning template on top of the page.  '''Don't edit these template texts!'''
* '''First edit'': '''''If the documentation page is new then start editing by moving the mouse alongside the l''<nowiki/>''eft margin from the title down. The mouse cursor will change into a hand and the text '<nowiki/>''+ insert paragraph''<nowiki/>' will appear on the first and the third line. Left mouse click on the third line - the cursor should change into a blinking pipe - then start typing.  The new paragraph should be '''below''' the ''<nowiki/>'not yet published'' ' warning box on top of the page.
* '''Help''': An extensive help function is available at the [[mediawikiwiki:Help:VisualEditor/User_guide|user guide]] of the Visual editor.
* '''Styling and edit functions''': You can enter text and format the style with the functions in the toolbar at the top of the page.
* '''Word copy''': Text and tables from a Word document can be copied and paste directly, style and table definitions will be preserved.
'''You always need to save your changes!''' Use the ''Save changes'' button in the toolbar.


The Edit tab contains some build in functions to format text, such as text style or linking to internal or external webpages.
=== Wiki editor ===
The ''Edit source'' tab contains some built-in functions to format text, such as text style or linking to internal or external webpages.


More tips and tricks on text editing can be found through the following Wiki help pages:
More tips and tricks on text editing can be found through the following Wiki help pages:
* [https://en.wikipedia.org/wiki/Help:Wiki_markup Wiki markup page to format text]
* [https://en.wikipedia.org/wiki/Help:Wiki_markup Wiki markup help page to format text]
* [https://www.mediawiki.org/wiki/Help:Lists Creating lists through bulletpoints or headings]
* [https://www.mediawiki.org/wiki/Help:Lists Creating lists through bullet points or headings]
* [https://en.wikipedia.org/wiki/Help:Cheatsheet Cheatsheet containing some basic commands]
* [https://en.wikipedia.org/wiki/Help:Cheatsheet Cheat sheet containing some basic commands]
* [https://www.mediawiki.org/wiki/Help:Links Overview of different types of way to place a link]
* [https://www.mediawiki.org/wiki/Help:Links Overview of different types of way to place a link]


'''To get you started, some basic examples:'''
==Footnotes==
 
Footnotes can be added to the text in the Visual editor (''edit'' -> ''cite'' tab). Type the footnote text in the text field or reuse an existing footnote. In this example a group is used. 


{| style="border:none; text-align:left; padding:0.3em;"
{| style="border:none; text-align:left; padding:0.3em;"
|-<!-- COLUMN HEADINGS -->
|-<!-- COLUMN HEADINGS -->
| style="background:#E6F2FF; padding:0.3em; text-align:center;"|'''You type'''
| style="background:#E6F2FF; padding:0.3em; text-align:center;" |Y'''ou click and enter'''
| style="background:#E6F2FF; padding:0.3em; text-align:center;"|'''You get'''
| style="background:#E6F2FF; padding:0.3em; text-align:center;" |'''You get'''
|-<!-- 1ST ROW -->
|-
|<tt><nowiki>''italic''</nowiki></tt>
|<code>Toolbar => Cite => Basic</code>
|''italic''
 
|-<!-- 2ND ROW -->
text: <code>footnote text</code>
|
 
<tt><nowiki>'''bold'''</nowiki></tt>
group: <code>Section footnote</code>
|
|<ref group="Section footnote" name=":0">footnote text</ref>
'''bold'''
|}
|-<!-- 3RD ROW -->
Use <code>Toolbar => Insert => References list</code> and select a group to display the references list at the desired position. See the footnote<ref group="Section footnote" name=":0" /> (reuse of footnote) at the end of this section.<references group="Section footnote" />
|
 
<tt><nowiki>'''''bold italic'''''</nowiki></tt>
==Figures==
|
To insert a figure to your text there are a few steps to be followed:
'''''bold italic'''''
{| style="border:none; text-align:left; padding:0.3em;"
|-<!-- 4TH ROW -->
|-
|
| style="background:#E6F2FF; padding:0.3em; text-align:center;" |'''You click and enter'''
<tt><nowiki>SO<sub>4</sub><sup>2-</sup></nowiki></tt>
| style="background:#E6F2FF; padding:0.3em; text-align:center;" |'''You get'''
|
|-
SO<sub>4</sub><sup>2-</sup>
|<code>Toolbar = >Insert => Media</code>
|-<!-- 5TH ROW -->
 
|
tab upload; select and upload a file, here the iamc logo
<tt><nowiki>Text before
 
----
Give it a name, description and caption.
Text after</nowiki></tt>
 
|
The advanced tab lets you position and format this figure
Text before
|[[File:Iamclogo.png|thumb|IAMC logo]]
----
Text after
|-<!-- 6TH ROW -->
|
<tt><nowiki>*bullet</nowiki></tt>
|
*bullet
|-<!-- 6TH ROW -->
|
<tt><nowiki>[[Model_Documentation_-_IMAGE|Model_Documentation of IMAGE]]</nowiki></tt>
|
[[Model_Documentation_-_IMAGE|Model_Documentation of IMAGE]]
|}
|}
Note that cross reference to a figure only works if the figure has a caption text. See section about cross referencing.
More information on figure formatting can be found [https://www.mediawiki.org/wiki/Help:Images here]


==Headers==
==Tables==
Tables may be created by using copy/paste from Word or by using the Toolbar => Insert => Table function. A pasted table does not copy the styling, except bold and italic. You can adapt a table by clicking on a cell. An arrow sign will appear. Click this sign and column /row edit functions will popup. Double click on a cell to edit the content.


Headings are created using sequences of "=" characters, placed before the heading title and after the heading title, on the same line. The level of headings is determined by the number of "=" characters.
Clicking on a cell also gives access to the Table => Properties dialog, where you can give your table a caption; give it the wikitable style; make it sortable and/or make it collapsible. On this platform we use the wikitable styling. The table below has all the mentioned properties set.  


'''Examples:'''
{| class="wikitable sortable mw-collapsible"
|+Caption
|'''a'''
|'''b'''
|'''c'''
|'''d'''
|-
|AAAAAAAAAA
|BBBBBBBBBBBBBBB
|CCCCCCCCCCCCCCCCC
|DDDDDDDDDDDDDDD
|-
|one
|two
|three
|four
|}
For tables we also use cross references to number the tables on the page, and to link to the table in text. In order to do so, the tables must have a table id and a caption - similar to the figure cross references. <!-- COLUMN HEADINGS -->


Note that the cross reference only works if the table has a caption. To refer in the text to the table you can place a link to the tables id. Here it is important that the id is unique. See the section about cross referencing.<!-- COLUMN HEADINGS -->
==Equations==


We use a latex style equation writer. You can insert an equation with <code>Toolbar => Insert => Math formula</code> dialog. Equations can be inserted in the text as followed:
{| style="border:none; text-align:left; padding:0.3em;"
{| style="border:none; text-align:left; padding:0.3em;"
|-<!-- COLUMN HEADINGS -->
|-<!-- COLUMN HEADINGS -->
| style="background:#E6F2FF; padding:0.3em; text-align:center;"|'''Level'''
| style="background:#E6F2FF; padding:0.3em; text-align:center;" |'''You click and enter'''
| style="background:#E6F2FF; padding:0.3em; text-align:center;"|'''Example'''
| style="background:#E6F2FF; padding:0.3em; text-align:center;" |'''You get'''
|-
|-
| 2.
|Click: <code>Toolbar => Insert => Math formula</code>
| ==Plants==
 
|-
Enter: <code>\dfrac{k}{k-1} = 0.5</code>
| 3.
|
| ===Plants===
<math style="font-size: 1.5em;" id="formula 1">
|-
\dfrac{k}{k-1} = 0.5</math>
| 4.
| ====Plants====
|}
|}


The equation text must in latex language.
More information on formatting equations can be found [https://meta.wikimedia.org/wiki/Help:Displaying_a_formula here]
Check if your equation text works can be done through [https://www.codecogs.com/latex/eqneditor.php this link]
==Cross Reference==
A referenced object is an object which has an identifier and a caption.
Several types of referenced objects are supported:
* <code>fig</code>: a figure,
* <code>tab</code>: a table,
* <code>eqn</code>: an equation,
* <code>def</code>: a definition, and
Each of these types have a dedicated HTML tag to declare an object instance:


==Figures==
* <code>&lt;figure id="fig:identifier"&gt; text &lt;/figure&gt;</code>
To insert a figure to your text there are a few steps to be followed:
* <code>&lt;figtable id="tab:identifier"&gt; text &lt;/figtable&gt;</code>
# Upload figure by using the Tools|Upload file link on the left panel of this website.
* <code>&lt;equation id="eqn:identifier"&gt; text &lt;/equation&gt;</code>
# You can place the figure in the text by linking to the File page. File pages can be found in the Tools|Special Pages. Refer to the figure as followed:
* <code>&lt;theorem id="def:identifier"&gt; text &lt;/theorem&gt;</code>
<pre>[[filepage]]</pre>
 
# The figure can be formatted by extending this reference:
It is important that your object identifier (id) is unique. Therefore start the id with the type of object and follow with your model name (see example), e.g. <pre>fig:MESSAGE</pre>.
<pre>[[filepage|size|format|caption]]</pre>.
 
# To harmonize figure formatting in this platform we use the thumb format option to display the figures. In addition we use of figure numbering the cross reference extension. For that purpose every figure must have a figure id, as follows:
'''Example 1: Cross referencing figure'''
<pre><figure id="fig:myobject">
[[filepage|size|format|<caption>caption</caption>]]
</figure></pre>


'''Example:'''
Use the Wiki editor (''Edit source'' tab)  and surround the figure (<code><nowiki>[[File:file name ....]]</nowiki></code>)  statement with the <code>&lt;figure id="identifier"&gt; ... &lt;/figure&gt;</code> tags
{| style="border:none; text-align:left; padding:0.3em;"
{| style="border:none; text-align:left; padding:0.3em;"
|-<!-- COLUMN HEADINGS -->
|-<!-- COLUMN HEADINGS -->
| style="background:#E6F2FF; padding:0.3em; text-align:center;"|'''You type'''
| style="background:#E6F2FF; padding:0.3em; text-align:center;" |'''You type'''
| style="background:#E6F2FF; padding:0.3em; text-align:center;"|'''You get'''
| style="background:#E6F2FF; padding:0.3em; text-align:center;" |'''You get'''
|-
|-
| <pre><figure id="fig:MESSAGE_1">
|<syntaxhighlight lang="html">
<figure id="fig:MESSAGE_1">


[[File:54067461.png|600px|thumb|<caption>MESSAGE Area projection</caption>]]
[[File:54067461.png|600px|thumb|<caption>MESSAGE Area projection</caption>]]


</figure></pre>
</figure>
</syntaxhighlight>
| <figure id="fig:MESSAGE_1">
| <figure id="fig:MESSAGE_1">
[[File:54067461.png|600px|thumb|<caption>MESSAGE Area projection</caption>]]
[[File:54067461.png|600px|thumb|<caption>MESSAGE Area projection</caption>]]
Line 107: Line 150:
|}
|}


If you want to reference to the figure in the text:
And a reference to the <xr id="fig:MESSAGE_1">figure</xr> with <code><nowiki><xr id="fig:MESSAGE_1"></xr></nowiki></code> .<!-- COLUMN HEADINGS -->
 
'''Example 2: Cross referencing table'''


Use the Wiki editor (''Edit source'' tab)  and surround the table statement with the <code>&lt;figtable id="identifier"&gt; ... &lt;/figtable&gt;</code> tags
{| style="border:none; text-align:left; padding:0.3em;"
{| style="border:none; text-align:left; padding:0.3em;"
|-<!-- COLUMN HEADINGS -->
| style="background:#E6F2FF; padding:0.3em; text-align:center;"|'''You type'''
| style="background:#E6F2FF; padding:0.3em; text-align:center;"|'''You get'''
|-
|-
|<nowiki><xr id="fig:MESSAGE_1"/></nowiki>
| style="background:#E6F2FF; padding:0.3em; text-align:center;" |'''You type'''
|<xr id="fig:MESSAGE_1"/>
| style="background:#E6F2FF; padding:0.3em; text-align:center;" |'''You get'''
|}
 
 
More information on figure formatting can be found [https://www.mediawiki.org/wiki/Help:Images here]
 
==Tables==
In this platform we use the standard "wikitable" format to display tables.
 
'''Examples:'''
The following table lacks borders and good spacing but shows the simplest wiki markup table structure.
 
{| style="border:none; text-align:left; padding:0.3em;"
|-<!-- COLUMN HEADINGS -->
| style="background:#E6F2FF; padding:0.3em; text-align:center;"|'''You type'''
| style="background:#E6F2FF; padding:0.3em; text-align:center;"|'''You get'''
|-
|-
| style="padding: 5px;"|
| style="padding: 5px;" |
<pre>
|<syntaxhighlight lang="html">
<figtable id="tab:example">
{| class="wikitable"
{| class="wikitable"
|+<caption>Fruit price</caption>
!Fruit
!Fruit
!Price
!Price
Line 144: Line 174:
|$0.50
|$0.50
|}
|}
</pre>
</figtable>
| style="padding: 5px;"|
</syntaxhighlight>
| style="padding: 5px;" |
<figtable id="tab:example">
{| class="wikitable"
{| class="wikitable"
|+<caption>Fruit price</caption>
!Fruit
!Fruit
!Price
!Price
Line 156: Line 189:
|$0.50
|$0.50
|}
|}
</figtable>
|}
|}
And a reference to the table <xr id="tab:example"></xr> with <code>&lt;xr id="tab:example"&gt;&lt;/xr&gt; </code>.


For Tables we also use cross referencing in order to number the Tables on the page, and link to the Table in text.
More information on cross referencing can be found [https://www.mediawiki.org/w/index.php?title=Extension:CrossReference&action=edit here].


More information on Table formatting can be found [https://www.mediawiki.org/wiki/Help:Tables here]
==Input reference card==
Or look at the Table generator [http://www.tablesgenerator.com/mediawiki_tables here]
 
==Equations==
 
We use a latex style equation writer. Equations can be inserted in the text as followed:
 
<nowiki><math style="font-size: 1.5em;">
\dfrac{k}{k-1} = 0.5</math></nowiki>
 
<math style="font-size: 1.5em;">
\dfrac{k}{k-1} = 0.5</math>
 
More information on formatting equations can be found [https://meta.wikimedia.org/wiki/Help:Displaying_a_formula here]
 
 
==Cross Reference==
 
A referenced object is an object which has an identifier, and may have a caption.
 
Several types of referenced objects are supported:
* <code>fig</code>: a figure,
* <code>tab</code>: a table,
* <code>eqn</code>: an equation,
* <code>the</code>: a theorem,
* <code>def</code>: a definition, and
* <code>bib</code>: a bibliographical reference.
 
Each of these types have a dedicated HTML tag to declare an object instance, except for the bibliography which is not supported by this extension:
* <code>&lt;figure id="identifier"&gt; text &lt;/figure&gt;</code>
* <code>&lt;figtable id="identifier"&gt; text &lt;/figtable&gt;</code>
* <code>&lt;equation id="identifier"&gt; text &lt;/equation&gt;</code>
* <code>&lt;theorem id="identifier"&gt; text &lt;/theorem&gt;</code>
* <code>&lt;definition id="identifier"&gt; text &lt;/definition&gt;</code>
 
In the text describing the referenced object, the tag &lt;caption/&gt; may enclose the caption of the object. This caption will be rendered near the referencing object and will appear in all the references in the text.
 
 
==Insert Model Information==
 
Model information can be filled in through the following [[Form:ModelForm|form]].


The reference card can be filled- in through the following [[Reference_card_input|link]], The result of this action are the reference card - <model> pages displayed on the left panel. Each field in the reference card has a specific id and to compare models input data you can use the [[Model comparison]] tool. A selection of the reference card information is displayed on your model documentation pages in the right panel and in the table on the [[IAMC_wiki|IAMC Wiki]] introduction page.


==Citation Management==
==Citation Management==


To add a reference to journal paper, book or other literature to your text the following steps need do be performed:
To place a reference to journal paper, book or other literature in your text the following steps need do be performed in the '''wiki-editor''' (''edit source'').


# Look up references in format that can be recognized by the Semantic Cit extention that we use in this platform. More information about semantic cite can be found [https://www.semantic-mediawiki.org/wiki/Extension:Semantic_Cite here]. There are two easy options:
# Look up references in a format that can be recognized by the semantic cite extention that we use in this platform. More information about semantic cite can be found [https://www.semantic-mediawiki.org/wiki/Extension:Semantic_Cite here]. There are two easy options:
#* Use the [[Special:FindCitableMetadata|Citation Websearch]] function in the left panel.
#* Use the [[Special:FindCitableMetadata|Citation web search]] function in the left panel.
#* Collect reference information in bibtext format
#* Collect reference information in bibtext format.


Here is an example of how this could look like:
Here is an example of what this could look like:
<pre>
<pre>
{{#scite:
{{#scite:
Line 231: Line 227:


<ol start="2">
<ol start="2">
<li>The first line, folowing |references=, indicates the key of the reference, to which you can refer to in your text. It is important you specify a key that is unique. For example by starting the key with your model name</li>
<li>The first line, following <code>|references=</code> indicates the key (or id) of the reference, to which you can refer to in your text. It is important you specify a key that is unique. For example by starting the key with your model name.</li>
<li>The second line, following |type=, indicates the type of reference. In this wiki we have specified 5 reference types, namely journal, book, report, bookchapter and website. If your reference does not fall under one of these categroziation you can specify yourself how the reference is displayed, by adding an extra line with |citation text= </li>
<li>The second line, following <code>|type=</code> indicates the type of reference. In this wiki we have specified 5 reference types, namely journal, book, report, book chapter and website. If your reference does not fall under one of these categorization you can specify yourself how the reference is displayed, by adding an extra line with <code>|citation text=</code>. Several examples of the 5 supported reference types in this platform -their required and optional fields can be found on the [[CitationResourcesExamples| Citation Resources example page]]. '''To avoid incorrect citation display or other errors it is important to follow these instructions carefully.''' </li>
<li>Add the collected reference description to the reference page of your model, for example [[References_-_IMAGE|the reference of IMAGE]]</li>
<li>Add the collected reference description to the Reference page of your model,see for example [[References_-_IMAGE|the Reference page of IMAGE]]</li>
<li>Add the reference key to the top row of the page after |references=. This will display your reference on the References page.</li>
<li>Add the reference key to the top row of the page after <code>|references=</code>. This will display your reference on the References page. The list <code>|references=<ref1;ref2;…;refn></code> must end with  <code>|+sep=;</code>. This tells the system that we use the ‘;’ as list separator.</li>
<li>Insert the key in text of the model documentation page where you insert the reference by using <nowiki>[[CiteRef::Referencekey]]</nowiki>.</li>
<li>Insert the key in your model documentation text where you would like to add the reference by using:
<pre>[[CiteRef::Referencekey]]</pre>.
</li>
</ol>
</ol>
The reference is indicated by a footnote, for example typing <nowiki>[[CiteRef::van vuuren2013a]]</nowiki> is displayed as [[CiteRef::van vuuren2013a]].
The reference is indicated by a footnote, for example:
 
{| style="border:none; text-align:left; padding:0.3em;"
|-<!-- COLUMN HEADINGS -->
| style="background:#E6F2FF; padding:0.3em; text-align:center;" |'''You type'''
| style="background:#E6F2FF; padding:0.3em; text-align:center;" |'''You get'''
|-
|<pre>Van Vuuren et al. [[CiteRef::van vuuren2013a]] conclude...</pre>
|Van Vuuren et al. [[CiteRef::van vuuren2013a]] conclude...
|}
 
Note that the reference is automatically displayed at the bottom of the page, and when you render with your mouse over the citation reference it shows you the full reference details.


More information of the Citation Manager can be found [https://github.com/SemanticMediaWiki/SemanticCite/tree/master/docs here]
More information of the Citation Manager can be found [https://github.com/SemanticMediaWiki/SemanticCite/tree/master/docs here]


''Note:''
==Empty documentation pages, deletion and re-creation==
''Wikitext contains all the features required to follow Wikipedia's formatting conventions. However, its formatting capabilities are limited. If you want to have more control of the formatting, such as using colors, text and paragraph styles, and page layout you can use HTML. HTML is the language used to format web pages in the Internet. It is more powerful than wikitext, but it's also more complex and harder to use.''
 
In order to facilitate model comparability, the sections and sub-sections are standardized for all models, and therefore all models need to be documented within a similar set of sections (the sections are presented in the table of contents in the text box on the right-hand side of each model page). Not all models have the same scope, and therefore not all pages will be filled by all models.
 
You may delete empty pages under the following conditions:
# The page is not in the main branch of the documentation tree (Model scope and methods;Socio-economic drivers; Macro-economy; Energy; Land-use; Emissions; Climate; Non-climate sustainability dimension; Appendices; References)
# The page is a leaf in the documentation tree and not a node.
The menu option More=>Delete will delete the page after confirmation.
 
You can recreate a page via Editor tools=>[[Model setup |Model pages setup]]. '''Do not use Internet explorer for this action!'''.
* Open the setup page of your model. All pages of the model documentation are listed here. If a page does not exist it is displayed as a red link, preceded with Create: .
<div class="toc">
Example:
* Macro-economy - IMAGE: exists
** Production system and representation of economic sectors - IMAGE: exists
** Capital and labour markets - IMAGE: <span style="color:red">Create: Capital and labour markets - IMAGE</span>
</div>
* Clicking the red link will create the page for your model and take care of the documentation tree.
* You should see a message like this one: <span style="color:green"> Capital and labour markets - IMAGE: Successfully modified Capital and labour markets - IMAGE using form ModelDocumentationForm.</span>
* Navigate via the 'Model documentation' to your recreated page and refresh the page with top-menu option: more=>refresh
 
==Troubleshooting==
If you have come across issues during the editing process that you have solved, please describe your solutions here. If you are not able to solve your problem, then contact us via an email to [mailto://iamc@pbl.nl iamc@pbl.nl]
 
===Overlap of figure and Model documentation box===
To force the placement of a figure beneath the Model Documentation box add the following line in your text:
 
<code><nowiki><div style="clear:both"> </div></nowiki></code>
 
===Citation not displayed correctly===
The 5 citation templates used here are sensitive to the required field. Check whether you have filled in all the required fields and have named the fields correctly. For example certain bibtext exports include citation types that are not supported by this template, or use pubdate instead of year to indicate the publication date.
 
===Red links===
If you see a red link in your text the page to which a link is made cannot be found. edit the link in the Visual editor and refer to the correct webpage.
 
===Forced spacings===
 
In some model documentation pages originally the paragraphs were forced by using the tags
 
<code><nowiki><br></nowiki><nowiki></br></nowiki></code>
 
visible in the wiki-editor. These are recognized by the current Media Wiki, however results in sometimes strange display of the text. Please remove these statements and if you want to seperate paragraphs just use the enter key.
 
===Copying of Tables===
The tables from the original Confluence Wiki have been copied but rows or columns can be slightly mixed up. Also the formatting might need to be edited to fit the current Wiki. Some models, such as TIAM-UCL on the [[Energy conversion - TIAM-UCL|Energy conversion]] page, have used tables to display lists of input values. Using list formatting might give a better overview. More information on how to insert tables can be found under the [[#Tables]] header on this page..
 
[[Category:Editor Tool]]

Latest revision as of 16:21, 17 November 2021

Important note (!) : Do not use Internet Explorer for editing the wiki. Some functions don't work properly. Preferably use Chrome, Firefox etc.

Edit text

To insert or edit text use the Edit or Edit source tabs on the top of the page. Edit launches the Visual Editor, edit source the Wiki editor. The Visual Editor is the most user friendly editor, but sometimes the Wiki editor is needed. The most easy way to get the documentation into the wiki pages is via copy/paste from a Word document. Save the page to store the text and to see how your edits are displayed. Use the Read tab to go back directly to the webpage.

Some actions are more complicated: uploading and displaying figures; cross referencing figures, equations and tables; drafting equations; using citations and footnotes. Some of these actions are included in the visual editor, some of them need to be done in the wiki editor. These actions will be treated separately in the guidelines.

Visual editor

This is a so called what you see is what you get (WYSIWYG) editor. After clicking the edit tab on top of the page the editor loads the page content and displays your text in final format as well as generated text. Generated text consists of the ' infobox ' template and if applicable the' not yet published ' warning template on top of the page. Don't edit these template texts!

  • First edit: If the documentation page is new then start editing by moving the mouse alongside the left margin from the title down. The mouse cursor will change into a hand and the text '+ insert paragraph' will appear on the first and the third line. Left mouse click on the third line - the cursor should change into a blinking pipe - then start typing. The new paragraph should be below the 'not yet published ' warning box on top of the page.
  • Help: An extensive help function is available at the user guide of the Visual editor.
  • Styling and edit functions: You can enter text and format the style with the functions in the toolbar at the top of the page.
  • Word copy: Text and tables from a Word document can be copied and paste directly, style and table definitions will be preserved.

You always need to save your changes! Use the Save changes button in the toolbar.

Wiki editor

The Edit source tab contains some built-in functions to format text, such as text style or linking to internal or external webpages.

More tips and tricks on text editing can be found through the following Wiki help pages:

Footnotes

Footnotes can be added to the text in the Visual editor (edit -> cite tab). Type the footnote text in the text field or reuse an existing footnote. In this example a group is used.

You click and enter You get
Toolbar => Cite => Basic

text: footnote text

group: Section footnote

[Section footnote 1]

Use Toolbar => Insert => References list and select a group to display the references list at the desired position. See the footnote[Section footnote 1] (reuse of footnote) at the end of this section.

  1. 1.0 1.1 footnote text

Figures

To insert a figure to your text there are a few steps to be followed:

You click and enter You get
Toolbar = >Insert => Media

tab upload; select and upload a file, here the iamc logo

Give it a name, description and caption.

The advanced tab lets you position and format this figure

IAMC logo

Note that cross reference to a figure only works if the figure has a caption text. See section about cross referencing.

More information on figure formatting can be found here

Tables

Tables may be created by using copy/paste from Word or by using the Toolbar => Insert => Table function. A pasted table does not copy the styling, except bold and italic. You can adapt a table by clicking on a cell. An arrow sign will appear. Click this sign and column /row edit functions will popup. Double click on a cell to edit the content.

Clicking on a cell also gives access to the Table => Properties dialog, where you can give your table a caption; give it the wikitable style; make it sortable and/or make it collapsible. On this platform we use the wikitable styling. The table below has all the mentioned properties set.

Caption
a b c d
AAAAAAAAAA BBBBBBBBBBBBBBB CCCCCCCCCCCCCCCCC DDDDDDDDDDDDDDD
one two three four

For tables we also use cross references to number the tables on the page, and to link to the table in text. In order to do so, the tables must have a table id and a caption - similar to the figure cross references.

Note that the cross reference only works if the table has a caption. To refer in the text to the table you can place a link to the tables id. Here it is important that the id is unique. See the section about cross referencing.

Equations

We use a latex style equation writer. You can insert an equation with Toolbar => Insert => Math formula dialog. Equations can be inserted in the text as followed:

You click and enter You get
Click: Toolbar => Insert => Math formula

Enter: \dfrac{k}{k-1} = 0.5

The equation text must in latex language.

More information on formatting equations can be found here

Check if your equation text works can be done through this link

Cross Reference

A referenced object is an object which has an identifier and a caption.

Several types of referenced objects are supported:

  • fig: a figure,
  • tab: a table,
  • eqn: an equation,
  • def: a definition, and

Each of these types have a dedicated HTML tag to declare an object instance:

  • <figure id="fig:identifier"> text </figure>
  • <figtable id="tab:identifier"> text </figtable>
  • <equation id="eqn:identifier"> text </equation>
  • <theorem id="def:identifier"> text </theorem>

It is important that your object identifier (id) is unique. Therefore start the id with the type of object and follow with your model name (see example), e.g.

fig:MESSAGE

.

Example 1: Cross referencing figure

Use the Wiki editor (Edit source tab) and surround the figure ([[File:file name ....]]) statement with the <figure id="identifier"> ... </figure> tags

</figure> </syntaxhighlight>

</figure>

You type You get
<syntaxhighlight lang="html">

<figure id="fig:MESSAGE_1">

MESSAGE Area projection
<figure id="fig:MESSAGE_1">
MESSAGE Area projection

And a reference to the <xr id="fig:MESSAGE_1">figure</xr> with <xr id="fig:MESSAGE_1"></xr> .

Example 2: Cross referencing table

Use the Wiki editor (Edit source tab) and surround the table statement with the <figtable id="identifier"> ... </figtable> tags

You type You get
<syntaxhighlight lang="html">

<figtable id="tab:example">

Fruit price
Fruit Price
Orange $1
Apple $0.50

</figtable> </syntaxhighlight>

<figtable id="tab:example">

Fruit price
Fruit Price
Orange $1
Apple $0.50

</figtable>

And a reference to the table <xr id="tab:example"></xr> with <xr id="tab:example"></xr> .

More information on cross referencing can be found here.

Input reference card

The reference card can be filled- in through the following link, The result of this action are the reference card - <model> pages displayed on the left panel. Each field in the reference card has a specific id and to compare models input data you can use the Model comparison tool. A selection of the reference card information is displayed on your model documentation pages in the right panel and in the table on the IAMC Wiki introduction page.

Citation Management

To place a reference to journal paper, book or other literature in your text the following steps need do be performed in the wiki-editor (edit source).

  1. Look up references in a format that can be recognized by the semantic cite extention that we use in this platform. More information about semantic cite can be found here. There are two easy options:
    • Use the Citation web search function in the left panel.
    • Collect reference information in bibtext format.

Here is an example of what this could look like:

{{#scite:
 |reference=van vuuren2013a 
 |type=journal-article
 |title=A new scenario framework for Climate Change Research: scenario matrix architecture
 |author=Detlef P. van Vuuren;Elmar Kriegler;Brian C. O’Neill;Kristie L. Ebi;Keywan Riahi;Timothy R. Carter;Jae Edmonds;Stephane Hallegatte;Tom Kram;Ritu Mathur;Harald Winkler|+sep=;
 |journal=Climatic Change
 |publisher=Springer Science + Business Media
 |year=2013
 |volume=122
 |issue=3
 |pages=373-386
 |doi=10.1007/s10584-013-0906-1
 |subject=Atmospheric Science;Global and Planetary Change|+sep=;
 |issn=0165-0009;1573-1480|+sep=;
}}
  1. The first line, following |references= indicates the key (or id) of the reference, to which you can refer to in your text. It is important you specify a key that is unique. For example by starting the key with your model name.
  2. The second line, following |type= indicates the type of reference. In this wiki we have specified 5 reference types, namely journal, book, report, book chapter and website. If your reference does not fall under one of these categorization you can specify yourself how the reference is displayed, by adding an extra line with |citation text=. Several examples of the 5 supported reference types in this platform -their required and optional fields can be found on the Citation Resources example page. To avoid incorrect citation display or other errors it is important to follow these instructions carefully.
  3. Add the collected reference description to the Reference page of your model,see for example the Reference page of IMAGE
  4. Add the reference key to the top row of the page after |references=. This will display your reference on the References page. The list |references=<ref1;ref2;…;refn> must end with |+sep=;. This tells the system that we use the ‘;’ as list separator.
  5. Insert the key in your model documentation text where you would like to add the reference by using:
    [[CiteRef::Referencekey]]
    .

The reference is indicated by a footnote, for example:

You type You get
Van Vuuren et al. [[CiteRef::van vuuren2013a]] conclude...
Van Vuuren et al. van vuuren2013a conclude...

Note that the reference is automatically displayed at the bottom of the page, and when you render with your mouse over the citation reference it shows you the full reference details.

More information of the Citation Manager can be found here

Empty documentation pages, deletion and re-creation

In order to facilitate model comparability, the sections and sub-sections are standardized for all models, and therefore all models need to be documented within a similar set of sections (the sections are presented in the table of contents in the text box on the right-hand side of each model page). Not all models have the same scope, and therefore not all pages will be filled by all models.

You may delete empty pages under the following conditions:

  1. The page is not in the main branch of the documentation tree (Model scope and methods;Socio-economic drivers; Macro-economy; Energy; Land-use; Emissions; Climate; Non-climate sustainability dimension; Appendices; References)
  2. The page is a leaf in the documentation tree and not a node.

The menu option More=>Delete will delete the page after confirmation.

You can recreate a page via Editor tools=>Model pages setup. Do not use Internet explorer for this action!.

  • Open the setup page of your model. All pages of the model documentation are listed here. If a page does not exist it is displayed as a red link, preceded with Create: .

Example:

  • Macro-economy - IMAGE: exists
    • Production system and representation of economic sectors - IMAGE: exists
    • Capital and labour markets - IMAGE: Create: Capital and labour markets - IMAGE
  • Clicking the red link will create the page for your model and take care of the documentation tree.
  • You should see a message like this one: Capital and labour markets - IMAGE: Successfully modified Capital and labour markets - IMAGE using form ModelDocumentationForm.
  • Navigate via the 'Model documentation' to your recreated page and refresh the page with top-menu option: more=>refresh

Troubleshooting

If you have come across issues during the editing process that you have solved, please describe your solutions here. If you are not able to solve your problem, then contact us via an email to iamc@pbl.nl

Overlap of figure and Model documentation box

To force the placement of a figure beneath the Model Documentation box add the following line in your text:

<div style="clear:both"> </div>

Citation not displayed correctly

The 5 citation templates used here are sensitive to the required field. Check whether you have filled in all the required fields and have named the fields correctly. For example certain bibtext exports include citation types that are not supported by this template, or use pubdate instead of year to indicate the publication date.

Red links

If you see a red link in your text the page to which a link is made cannot be found. edit the link in the Visual editor and refer to the correct webpage.

Forced spacings

In some model documentation pages originally the paragraphs were forced by using the tags

<br></br>

visible in the wiki-editor. These are recognized by the current Media Wiki, however results in sometimes strange display of the text. Please remove these statements and if you want to seperate paragraphs just use the enter key.

Copying of Tables

The tables from the original Confluence Wiki have been copied but rows or columns can be slightly mixed up. Also the formatting might need to be edited to fit the current Wiki. Some models, such as TIAM-UCL on the Energy conversion page, have used tables to display lists of input values. Using list formatting might give a better overview. More information on how to insert tables can be found under the #Tables header on this page..