Author guidelines: Difference between revisions

From IAMC-Documentation
Jump to navigation Jump to search
No edit summary
No edit summary
 
(43 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__TOC__
__TOC__


'''Note: Do not use internet Explorer for editing the wiki. Some functions don't work properly!'''
'''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 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. To see how your edits are displayed save the page. To go back directly to the webpage use 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 ===
=== Visual editor ===
This is a so called what you see is what you get (WYSIWYG) editor. The editor loads the page content and displays generated text such as the 'infobox' and 'not yet published 'warning. '''Don't edit these template texts!'''
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.
An extensive help is available at the [[mediawikiwiki:Help:VisualEditor/User_guide|user guide]] of the Visual editor.
* '''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.  
If the documentation page is new then start editing by ínserting a paragraph below the 'warning' box, just place the cursor below the box.
* '''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.
You can enter text and format the style with the functions in the tool bar at the top of the page.  
 
Text and tables from a word document can be copied and paste directly, style and table definitions will be preserved.


=== Wiki editor ===
=== Wiki editor ===
The Edit source tab contains some build in functions to format text, such as text style or linking to internal or external webpages.
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 help 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]


==Footnotes==
==Footnotes==  


Footnotes can be added to the text by placing the footnote in between the following command:
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'''
|-
|-
|<pre><ref>footnote text</ref></pre>  
|<code>Toolbar => Cite => Basic</code>
|<ref>footnote text</ref>
|}


By default the footnot is displayed at the bottom of the page. If you want to display the footnote at the end of the section - as we have done in this example - type <pre><references /></pre> at the end of your section.
text: <code>footnote text</code>


More information on footnotes can be found [https://meta.wikimedia.org/wiki/Help:Footnotes#Producing_the_reference_or_footnote_list here]
group: <code>Section footnote</code>
 
|<ref group="Section footnote" name=":0">footnote text</ref>
<references />
|}
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" />


==Figures==
==Figures==
To insert a figure to your text there are a few steps to be followed:
To insert a figure to your text there are a few steps to be followed:
# Upload figure by using the Tools|Upload file link on the left panel of this website.
# You can place the figure in the text by linking to the created file page, which typically is named File:uploadname. File pages can be found by navigating to the Tools|Special Pages on the left panel, and then navigate to Media reports and uploads|File list, or directly through [[Special:ListFiles|this link]]. Place the figure in the text as followed:
<pre>[[File:uploadname]]</pre>
<ol start="3">
<li> The figure can be formatted by extending the placed reference: </li></ol>
<pre>[[File:uploadname|size|format|caption text]]</pre>.
<ol start="4"><li> To harmonize figure formatting in this platform we use the thumb format option. In addition figures are numbered by using the cross reference extension. For that purpose every figure must have a figure id, as follows:</li></ol>
<pre><figure id="fig:myobject">
[[File:uploadname|size|format|<caption>caption text</caption>]]
</figure></pre>
Note that the cross reference only works if the the caption text is enclosed by the <code><nowiki><caption></caption></nowiki></code> statement.
'''Example:'''
{| 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 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'''
|-
|-
| <pre><figure id="fig:MESSAGE_1">
|<code>Toolbar = >Insert => Media</code>


[[File:54067461.png|600px|thumb|<caption>MESSAGE Area projection</caption>]]
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
|[[File:Iamclogo.png|thumb|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 [https://www.mediawiki.org/wiki/Help:Images 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.


</figure></pre>
{| class="wikitable sortable mw-collapsible"
| <figure id="fig:MESSAGE_1">
|+Caption
[[File:54067461.png|600px|thumb|<caption>MESSAGE Area projection</caption>]]
|'''a'''
</figure>
|'''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 -->


If you want to reference to the figure in the text:
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;" |'''You type'''
| style="background:#E6F2FF; padding:0.3em; text-align:center;" |'''You 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'''
|-
|-
|<pre><xr id="fig:MESSAGE_1"/></pre>  
|Click: <code>Toolbar => Insert => Math formula</code>
|<xr id="fig:MESSAGE_1"></xr>  
 
|}  
Enter: <code>\dfrac{k}{k-1} = 0.5</code>
|
<math style="font-size: 1.5em;" id="formula 1">
\dfrac{k}{k-1} = 0.5</math>
|}
 
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


More information on figure formatting can be found [https://www.mediawiki.org/wiki/Help:Images here]
Each of these types have a dedicated HTML tag to declare an object instance:


==Tables==
* <code>&lt;figure id="fig:identifier"&gt; text &lt;/figure&gt;</code>
In this platform we use the standard "wikitable" format to display tables.
* <code>&lt;figtable id="tab:identifier"&gt; text &lt;/figtable&gt;</code>
* <code>&lt;equation id="eqn:identifier"&gt; text &lt;/equation&gt;</code>
* <code>&lt;theorem id="def:identifier"&gt; text &lt;/theorem&gt;</code>


'''Examples:'''
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>.


The following table lacks borders and good spacing but shows the simplest wiki markup table structure.
'''Example 1: Cross referencing figure'''


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 -->
Line 101: Line 138:
| style="background:#E6F2FF; padding:0.3em; text-align:center;" |'''You get'''
| style="background:#E6F2FF; padding:0.3em; text-align:center;" |'''You get'''
|-
|-
| style="padding: 5px;" |
|<syntaxhighlight lang="html">
<pre>
<figure id="fig:MESSAGE_1">
{| class="wikitable"
 
!Fruit
[[File:54067461.png|600px|thumb|<caption>MESSAGE Area projection</caption>]]
!Price
 
|-
</figure>
|Orange
</syntaxhighlight>
|$1
| <figure id="fig:MESSAGE_1">
|-
[[File:54067461.png|600px|thumb|<caption>MESSAGE Area projection</caption>]]
|Apple
</figure>
|$0.50
|}
</pre>
| style="padding: 5px;" |
{| class="wikitable"
!Fruit
!Price
|-
|Orange
|$1
|-
|Apple
|$0.50
|}
|}
|}


For tables we also use cross references to number the tables on the page, and 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.
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 type'''
| style="background:#E6F2FF; padding:0.3em; text-align:center;" |'''You get'''
| 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">
<figtable id="tab:example">
{| class="wikitable"
{| class="wikitable"
Line 149: Line 175:
|}
|}
</figtable>
</figtable>
</pre>
</syntaxhighlight>
| style="padding: 5px;" |
| style="padding: 5px;" |
<figtable id="tab:example">
<figtable id="tab:example">
Line 165: Line 191:
</figtable>
</figtable>
|}
|}
And a reference to the table <xr id="tab:example"></xr> with <code>&lt;xr id="tab:example"&gt;&lt;/xr&gt; </code>.


Note that the cross reference only works if the the caption text is enclosed by the <code><nowiki><caption></caption></nowiki></code> statement.
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.
{| 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><xr id="tab:example"/></pre>
|<xr id="tab:example"></xr>
|}
More information on table formatting can be found [https://www.mediawiki.org/wiki/Help:Tables here]
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:
{| 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><math style="font-size: 1.5em;">
\dfrac{k}{k-1} = 0.5</math></pre>
|
<math style="font-size: 1.5em;">
\dfrac{k}{k-1} = 0.5</math>
|}
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. In the figures and in the tables section it has been explained how this can be used for figure and table numbering and referencing.
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:
* <code>&lt;figure id="fig:identifier"&gt; text &lt;/figure&gt;</code>
* <code>&lt;figtable id="tab:identifier"&gt; text &lt;/figtable&gt;</code>
* <code>&lt;equation id=":eqn:identifier"&gt; text &lt;/equation&gt;</code>
* <code>&lt;theorem id="def:identifier"&gt; text &lt;/theorem&gt;</code>
In the text describing the referenced object, the tag &lt;caption/&gt; may enclose the caption of the object.
You can cross reference to the object by using the following command:
{| 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>|<xr id="fig:MESSAGE_1"/></pre>
|<xr id="fig:MESSAGE_1"></xr>
|}
It is important that your object id is unique. Therefore start the id with the type of object and follow with your model name, e.g. <pre>fig:MESSAGE</pre>
More information on cross referencing can be found [https://www.mediawiki.org/w/index.php?title=Extension:CrossReference&action=edit here].
More information on cross referencing can be found [https://www.mediawiki.org/w/index.php?title=Extension:CrossReference&action=edit here].


==Input reference card==
==Input reference card==


The reference card can be filled in through the following [[Reference_card_input|link]], also 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 [[Special:RunQuery/Models-AttributesForm|Models - attribute]] 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.
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 place a reference to journal paper, book or other literature in 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 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:
# 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:
Line 244: Line 207:
#* 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 264: Line 227:


<ol start="2">
<ol start="2">
<li>The first line, folowing <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 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 <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>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,see for example [[References_-_IMAGE|the Reference page 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>
Line 287: Line 250:
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]


==Empty documentation pages, deletion and recreation==
==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.
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.
Line 294: Line 257:
# 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 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 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!'''.  
You can recreate a page via Editor tools=>[[Model setup |Model pages setup]]. '''Do not use Internet explorer for this action!'''.  
Line 308: Line 272:


==Troubleshooting==
==Troubleshooting==
If you have come across issues during the HTML2WIKI editing process that you have solved, please describe your solutions here.
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===
===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:
To force the placement of a figure beneath the Model Documentation box add the following line in your text:
<pre><div style="clear:both"> </div></pre>
 
<code><nowiki><div style="clear:both"> </div></nowiki></code>


===Citation not displayed correctly===
===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.
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.


===Questionmarks in the text===
===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.


Questionmarks in the text indicate that a symbol that you used in the Confluence Wiki is not recognized. Best is to check the original text in the Confluence Wiki and insert the intended symbol manually.
===Forced spacings===


===Red links===
In some model documentation pages originally the paragraphs were forced by using the tags
Links have been automatically copied but in some cases do not work anymore. If you see a red link in your text the page to which a link is made cannot be found. Check the link and refer to the correct webpage. More infomation on how to insert links can be found under the [[#Edit text]] header on this page.


===Forced spacings===
<code><nowiki><br></nowiki><nowiki></br></nowiki></code>


In some model documentation pages originally the paragraphs were forced by using the <pre><br></br></pre> commands. These are recognized by the current Media Wiki, however results in sometimes strange display of the text. Please remove the these statements and if you want to seperate paragraphs just use the enter key.
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===
===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 and how to display list under the [[#Edit text]] header.
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]]
[[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..