Author guidelines: Difference between revisions

From IAMC-Documentation
Jump to navigation Jump to search
No edit summary
 
(68 intermediate revisions by 3 users not shown)
Line 1: Line 1:
__TOC__
__TOC__
==HTML2WIKI Migration==
The ADVANCE wiki has been migrated from the UCL Confluence Wiki to the PBL Semantic Media Wiki. A HTML2WIKI conversion tool has been used to do so. The text, figures, and links are copied but the formatting can look odd, certain links can not work anymore or symbols can not be interpreted and are displayed as a question mark. For that reason all teams should check every page of your model documentation to see if the formatting is correct. In the troubleshooting section, solutions to specific errors that have come up so far can be found.


In addition, the structure of the pages of the model documentation have been changed. Some pages have new names, some have been merged or split and several new pages have been added to the wiki. Therefore it is important to check whether the content placed on the page is still correct for your model.
'''Important note (!) : Do not use Internet Explorer for editing the wiki. Some functions don't work properly. Preferably use Chrome, Firefox etc.'''


There are some new features in the Media Wiki:
==Edit text==
*Creating Tables
*Creating Equations
*Dynamic referencing to Figures, Tables and Equations
*Dynamic referencing to Citations


More information on these topics can be found below.  
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.


Please go through your model documentation pages and update/add these new features where relevant.
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.
 
Our experience is that editing all the citations in your reference page to the correct format is the most cumbersome task, and that starting with this before editing the pages eases the work.
 
''Note:''
''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.''
 
==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. To go back directly to the webpage use the ''Read'' tab.
=== 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 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]


'''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 -->
|
<tt><nowiki>'''bold'''</nowiki></tt>
|
'''bold'''
|-<!-- 3RD ROW -->
|
<tt><nowiki>'''''bold italic'''''</nowiki></tt>
|
'''''bold italic'''''
|-<!-- 4TH ROW -->
|
<tt><nowiki>SO<sub>4</sub><sup>2-</sup></nowiki></tt>
|
SO<sub>4</sub><sup>2-</sup>
|-<!-- 5TH ROW -->
|
<tt><nowiki>Text before
----
Text after</nowiki></tt>
|
Text before
----
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]]
|-<!-- 7TH ROW -->
|
<tt><nowiki>[http://fp7-advance.eu FP7-ADVANCE]</nowiki></tt>
|
[http://fp7-advance.eu FP7-ADVANCE]
|}


==Headers==
text: <code>footnote text</code>
 
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.
 
'''Examples:'''


group: <code>Section footnote</code>
|<ref group="Section footnote" name=":0">footnote text</ref>
|}
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==
To insert a figure to your text there are a few steps to be followed:
{| 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;"|'''Level'''
| style="background:#E6F2FF; padding:0.3em; text-align:center;"|'''Example'''
|-
|-
| 2.
| style="background:#E6F2FF; padding:0.3em; text-align:center;" |'''You click and enter'''
| ==Plants==
| style="background:#E6F2FF; padding:0.3em; text-align:center;" |'''You get'''
|-
|-
| 3.
|<code>Toolbar = >Insert => Media</code>
| ===Plants===
 
|-
tab upload; select and upload a file, here the iamc logo
| 4.
 
| ====Plants====
Give it a name, description and caption.  
 
The advanced tab lets you position and format this figure
|[[File:Iamclogo.png|thumb|IAMC logo]]
|}
|}
==Table of content==
Note that cross reference to a figure only works if the figure has a caption text. See section about cross referencing.


If you insert four or more headers on your page by default a table of content is displayed.
More information on figure formatting can be found [https://www.mediawiki.org/wiki/Help:Images here]
The table of content give a good overview of what can be found on the page. If you want to force display when you have three or less headings use:


<pre>__FORCETOC__</pre>
==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.


More information on the table of content can be found [https://www.mediawiki.org/wiki/Manual:Table_of_contents here].
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.  


==Footnotes==
{| 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 -->


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


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.
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]


More information on footnotes can be found [https://meta.wikimedia.org/wiki/Help:Footnotes#Producing_the_reference_or_footnote_list here]
==Cross Reference==


<references />
A referenced object is an object which has an identifier and a caption.


==Figures==
Several types of referenced objects are supported:
To insert a figure to your text there are a few steps to be followed:
* <code>fig</code>: a figure,
# Upload figure by using the Tools|Upload file link on the left panel of this website.
* <code>tab</code>: a table,
# 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:
* <code>eqn</code>: an equation,
<pre>[[File:uploadname]]</pre>
* <code>def</code>: a definition, and
<ol start="3">
 
<li> The figure can be formatted by extending the placed reference: </li></ol>
Each of these types have a dedicated HTML tag to declare an object instance:
<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>
* <code>&lt;figure id="fig:identifier"&gt; text &lt;/figure&gt;</code>
<pre><figure id="fig:myobject">
* <code>&lt;figtable id="tab:identifier"&gt; text &lt;/figtable&gt;</code>
[[File:uploadname|size|format|<caption>caption text</caption>]]
* <code>&lt;equation id="eqn:identifier"&gt; text &lt;/equation&gt;</code>
</figure></pre>
* <code>&lt;theorem id="def:identifier"&gt; text &lt;/theorem&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.
 
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>.  
 
'''Example 1: Cross referencing figure'''


'''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 161: 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 -->
 
{| 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"/>  
|}
 


More information on figure formatting can be found [https://www.mediawiki.org/wiki/Help:Images here]
'''Example 2: Cross referencing table'''  
 
==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.


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'''
|-
|-
| style="padding: 5px;"|
| style="background:#E6F2FF; padding:0.3em; text-align:center;" |'''You type'''
<pre>
| style="background:#E6F2FF; padding:0.3em; text-align:center;" |'''You get'''
{| class="wikitable"
!Fruit
!Price
|-
|-
|Orange
| style="padding: 5px;" |
|$1
|<syntaxhighlight lang="html">
|-
|Apple
|$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.
 
{| 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;"|
<pre>
<figtable id="tab:example">
<figtable id="tab:example">
{| class="wikitable"
{| class="wikitable"
Line 235: Line 175:
|}
|}
</figtable>
</figtable>
</pre>
</syntaxhighlight>
| style="padding: 5px;"|
| style="padding: 5px;" |
<figtable id="tab:example">
<figtable id="tab:example">
{| class="wikitable"
{| class="wikitable"
Line 251: 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"/>
|}
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>
|}
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 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"/>
|}
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 [[ADVANCE_wiki|ADVANCE 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 329: 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 349: 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>
<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>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 your model documentation text where you would like to add the reference by using:  
<li>Insert the key in your model documentation text where you would like to add the reference by using:  
<pre>[[CiteRef::Referencekey]]</pre>.</li>
<pre>[[CiteRef::Referencekey]]</pre>.
</li>
</ol>
</ol>
The reference is indicated by a footnote, for example:
The reference is indicated by a footnote, for example:
Line 360: Line 239:
{| 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>Van Vuuren et al. [[CiteRef::van vuuren2013a]] conclude...</pre>
|<pre>Van Vuuren et al. [[CiteRef::van vuuren2013a]] conclude...</pre>
Line 371: 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 pages==
==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. Pages that are left empty should be marked as such. For doing so, enter the page that will be left empty, click on "Edit with form" and check the tick-box after the text: "Check if page is empty". By marking a page as empty its title will turn cursive in the table of contents in the right-hand side text box so that it can easily be distinguished from pages which do include information. Deleting sections is limited to the administrators of this Wiki, and therefore other users will not be able to delete the pages. Once the model documentation has been completed, empty pages will either be hidden or deleted by the administrators.
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==
==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===
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===
===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]]

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..