Help:Editing pages: Difference between revisions
No edit summary (change visibility) |
|||
(9 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
== Editing basics == | == Editing basics == | ||
<!--It is intended to be brief, or as an overview. Otherwise why we separate the materials into different pages? Thus it's best NOT to add new materials or expand here. Add more examples or expand in other areas like Wikitext examples. Thanks!--> | <!--It is intended to be brief, or as an overview. Otherwise why we separate the materials into different pages? Thus it's best NOT to add new materials or expand here. Add more examples or expand in other areas like Wikitext examples. Thanks!--> | ||
===Review policy and conventions=== | ===Review policy and conventions=== | ||
:Make sure that what you want to write belongs where you want to put it. The operator of the site likely has specific plans for the site, and your content might be deleted or unappreciated. You can always use the | :Make sure that what you want to write belongs where you want to put it. The operator of the site likely has specific plans for the site, and your content might be deleted or unappreciated. You can always use the discussion pages to ask questions or check to see if your idea will be accepted. | ||
===Start editing=== | ===Start editing=== | ||
:To start editing a | :To start editing a page, click the '''edit''' tab at the top edge of the page. This brings you to the '''edit page''' with a text box containing the wikitext: the editable source code from which the server produces the webpage. | ||
===Enter the page title=== | ===Enter the page title=== | ||
:In order to facilitate our special needs when it comes to page titles, we have disabled the automatic display of page titles. At the top of the document enter the following: <nowiki><div class="title">[ARTICLE TITLE]</div> where [ARTICLE TITLE]</nowiki> is the text you would like displayed as the page's title. | :In order to facilitate our special needs when it comes to page titles, we have disabled the automatic display of page titles. At the top of the document enter the following: | ||
::<div class="box"><nowiki><div class="title">[ARTICLE TITLE]</div></nowiki></div> | |||
:where <nowiki>[ARTICLE TITLE]</nowiki> is the text you would like displayed as the page's title. | |||
===Type your changes=== | ===Type your changes=== | ||
Line 25: | Line 28: | ||
==WikiROMS special editing Guidelines== | ==WikiROMS special editing Guidelines== | ||
As described in the "Enter the page title" section above, WikiROMS has specific needs that require non-standard formatting. Below are descriptions and examples of other special cases. | As described in the "Enter the page title" section above, WikiROMS has specific needs that require non-standard formatting. Below are descriptions and examples of other special cases. | ||
===TeX Equations=== | |||
The MediaWiki [https://meta.wikimedia.org/wiki/Help:Displaying_a_formula Math extension] is installed, which allows most LaTex syntax. Some notable exceptions noticed so far are: | |||
<!--#'''\mbox{}''' does not seem to work in most situations, try '''\text{}''' instead--> | |||
#Inserting a literal "_" is tricky. ''I.e.'' to place '''MIX_GEO''' in an equation enter: '''\text{MIX}{\_}\text{GEO}''' | |||
#New lines in an equation are achieved with '''\\''' instead of '''\cr''' | |||
#'''\eqalign{}''' is not supported. Instead use '''\begin{align}<nowiki><equations></nowiki>\end{align}''' | |||
#place a '''\,''' before commas at the end of equation lines to provide some spacing. | |||
#To change colors within an equation use '''<nowiki>\color{<color>}{<elements to color>}</nowiki>''' | |||
Be sure you are not including any custom macros in you equations. | |||
There are three buttons relating to math entry: [[File:button_numbered.png]], [[File:button_block_math.png]], and [[File:button_math.png]]. The [[File:button_numbered.png]] button will help you enter a numbered equation by inserting the necessary table code for numbering alignment. It is designed to work in conjunction with the block equation button ([[File:button_block_math.png]]). The [[File:button_numbered.png]] button does not insert the necessary math tags so it can be used to number equations that were not previously numbered. '''The numbering is not automatic''' so it is suggested that you enter all equations before you begin numbering. | |||
To enter a numbered equation click the [[File:button_numbered.png]] button. The following code will entered in the editing box: | |||
<div class="box"><nowiki>{| class="eqno" | |||
|Insert eq. to # here | |||
|(Enter eq. # here) | |||
|}</nowiki></div> | |||
The '''Insert eq. to # here''' text will be highlighted so you can then click the [[File:button_block_math.png]] button and start entering your equation(s). Don't forget to enter the equation number(s) where it says "Enter eq. # here" before you save the page. | |||
The [[File:button_math.png]] button is for entering inline equations. | |||
===ROMS CPP Options=== | ===ROMS CPP Options=== | ||
Line 31: | Line 58: | ||
::'''<nowiki>[[Options#UV_ADV | UV_ADV]]</nowiki>''' | ::'''<nowiki>[[Options#UV_ADV | UV_ADV]]</nowiki>''' | ||
:will link to [[Options#UV_ADV | UV_ADV]] on the CPP options single page. Notice that a single page for each option is built using the following transclusion | :will link to [[Options#UV_ADV | UV_ADV]] on the CPP options single page. Notice that a single page for each option is built using the following transclusion syntax: | ||
::'''<nowiki>{{#lst:Options|UV_ADV}}</nowiki>''' | ::'''<nowiki>{{#lst:Options|UV_ADV}}</nowiki>''' | ||
Line 49: | Line 76: | ||
::'''<nowiki><span id="SverdrupHU_1947a"></span></nowiki>''' Sverdrup, H. U., 1947: Wind-driven currents in a baroclinic ocean, with application to the equatorial currents of the eastern Pacific, ''Proc. Natl. Acad. Sci. U. S. A.'', '''33''' (11), 318-326. | ::'''<nowiki><span id="SverdrupHU_1947a"></span></nowiki>''' Sverdrup, H. U., 1947: Wind-driven currents in a baroclinic ocean, with application to the equatorial currents of the eastern Pacific, ''Proc. Natl. Acad. Sci. U. S. A.'', '''33''' (11), 318-326. | ||
:The lowercase letter is used to distinguish between different publications from the same author in a year. To | :The lowercase letter is used to distinguish between different publications from the same author in a year. To cite from any wikipage use: | ||
::'''<nowiki>[[Bibliography#SverdrupHU_1947a | Sverdrup (1947)]]</nowiki>''' | ::'''<nowiki>[[Bibliography#SverdrupHU_1947a | Sverdrup (1947)]]</nowiki>''' | ||
Line 55: | Line 82: | ||
===Code in Lists=== | ===Code in Lists=== | ||
:If you wish to have code segments in side list you will need to use a special markup we have designed for this purpose: | :If you wish to have code segments in side list you will need to use a special markup we have designed for this purpose: | ||
:< | ::<div class="box"># This is list item one.<nowiki><div class="box"></nowiki>code in the box<nowiki><br /></nowiki>and more<nowiki></div></nowiki><br /># This is item two.</div> | ||
# This is item two.</ | |||
:will produce: | |||
:# This is list item one.<div class="box">code in the box<br />and more</div> | |||
:# This is item two. | |||
:{{warning}} '''Caution:''' It is imperative that you avoid new lines because they will restart the numbering and throw off the alignment. | |||
:For Example: | |||
::<div class="box"># This is list item one.<br /><nowiki><div class="box"></nowiki>code in the box<br />and more<nowiki></div></nowiki><br /># This is item two.</div> | |||
:will produce: | :will produce: | ||
# This is list item one.<div class="box"> | :# This is list item one. | ||
# This is item two. | :<div class="box">code in the box<br />and more</div> | ||
:# This is item two. | |||
===Special Icons=== | ===Special Icons=== | ||
:If you wish to draw attention to a special note or warn readers of a particular caveat, precede the statement with <nowiki>{{note}}</nowiki> or <nowiki>{{warning}}</nowiki>. For example: | :If you wish to draw attention to a special note or warn readers of a particular caveat, precede the statement with <nowiki>{{note}}</nowiki> or <nowiki>{{warning}}</nowiki>. For example: | ||
:<div class="box"><nowiki>{{note}} ''' | :<div class="box"><nowiki>{{note}} '''Notice:'''</nowiki> This is an important thing to note.</div> | ||
:produces: | :produces: | ||
:<div class="box">{{note}} ''' | :<div class="box">{{note}} '''Notice:''' This is an important thing to note.</div> | ||
:and | :and | ||
:<div class="box"><nowiki>{{warning}} ''' | :<div class="box"><nowiki>{{warning}} '''Caution:'''</nowiki> Be aware that this can be dangerous.</div> | ||
:produces: | :produces: | ||
:<div class="box">{{warning}} ''' | :<div class="box">{{warning}} '''Caution:''' Be aware that this can be dangerous.</div> | ||
== | ===Font Colors=== | ||
:In order to make font colors easier we have created several classes. | |||
::<div class="box"><nowiki><span class="darkTurquoise">This is darkTurquoise</span></nowiki></div> | |||
:produces: | |||
== | ::<div class="box"><span class="darkTurquoise">This is darkTurquoise</span></div> | ||
:Other available colors are: <span class="forestGreen">forestGreen</span>, <span class="limeGreen">limeGreen</span>, <span class="darkGoldenrod">darkGoldenrod</span>, <span class="peru">peru</span>, <span class="sandyBrown">sandyBrown</span>, <span class="salmon">salmon</span>, <span class="hotPink">hotPink</span>, <span class="mediumOrchid">mediumOrchid</span>, <span class="red">red</span>, <span class="orange">orange</span>, <span class="brown">brown</span>, <span class="green">green</span>, <span class="olive">olive</span>, <span class="cyan">cyan</span>, <span class="blue">blue</span>, <span class="twilightBlue">twilightBlue</span>, <span class="purple">purple</span>, <span class="violet">violet</span>, and <span class="black">black</span>. | |||
==General wiki markup help== | |||
General commonly used wiki formatting help can be found on the MediaWiki website [https://www.mediawiki.org/wiki/Help:Formatting here]. |
Latest revision as of 20:42, 12 August 2015
On a wiki, it is customary to allow readers to edit content and structure. Changes are tracked, and are revertible. You will need to log on to edit pages.
Editing basics
Review policy and conventions
- Make sure that what you want to write belongs where you want to put it. The operator of the site likely has specific plans for the site, and your content might be deleted or unappreciated. You can always use the discussion pages to ask questions or check to see if your idea will be accepted.
Start editing
- To start editing a page, click the edit tab at the top edge of the page. This brings you to the edit page with a text box containing the wikitext: the editable source code from which the server produces the webpage.
Enter the page title
- In order to facilitate our special needs when it comes to page titles, we have disabled the automatic display of page titles. At the top of the document enter the following:
- <div class="title">[ARTICLE TITLE]</div>
- where [ARTICLE TITLE] is the text you would like displayed as the page's title.
Type your changes
- You can just type your text. However, also using basic wiki markup (described in a later section) to make links and do simple formatting adds to the value of your contribution.
Summarize your changes (optional)
- Write a short edit summary in the small field below the edit-box. You may use shorthand to describe your changes.
Preview before saving
- When you have finished, click Show preview to see how your changes will look -- before you make them permanent. Repeat the edit/preview process until you are satisfied, then click Save page and your changes will be immediately applied to the article.
WikiROMS special editing Guidelines
As described in the "Enter the page title" section above, WikiROMS has specific needs that require non-standard formatting. Below are descriptions and examples of other special cases.
TeX Equations
The MediaWiki Math extension is installed, which allows most LaTex syntax. Some notable exceptions noticed so far are:
- Inserting a literal "_" is tricky. I.e. to place MIX_GEO in an equation enter: \text{MIX}{\_}\text{GEO}
- New lines in an equation are achieved with \\ instead of \cr
- \eqalign{} is not supported. Instead use \begin{align}<equations>\end{align}
- place a \, before commas at the end of equation lines to provide some spacing.
- To change colors within an equation use \color{<color>}{<elements to color>}
Be sure you are not including any custom macros in you equations.
There are three buttons relating to math entry: ,
, and
. The
button will help you enter a numbered equation by inserting the necessary table code for numbering alignment. It is designed to work in conjunction with the block equation button (
). The
button does not insert the necessary math tags so it can be used to number equations that were not previously numbered. The numbering is not automatic so it is suggested that you enter all equations before you begin numbering.
To enter a numbered equation click the button. The following code will entered in the editing box:
The Insert eq. to # here text will be highlighted so you can then click the button and start entering your equation(s). Don't forget to enter the equation number(s) where it says "Enter eq. # here" before you save the page.
The button is for entering inline equations.
ROMS CPP Options
- All ROMS cpp options technical description can be found in a single large page to facilitate printing. This page is organized in alphabetic order. Each option has an anchor tag to enable linking within any wiki page. For example, a link of the form
- [[Options#UV_ADV | UV_ADV]]
- will link to UV_ADV on the CPP options single page. Notice that a single page for each option is built using the following transclusion syntax:
- {{#lst:Options|UV_ADV}}
- that allows you to reference this option from any wiki page using the regular double-bracket syntax, [[UV_ADV]]. The grouping of options for specific physical processes, numerical algorithms, configuration strategies, idealized and realistic applications, and various model drivers is documented on the cppdefs.h page.
ROMS Variables
- All ROMS variables can be found in a single large page to facilitate printing. This page is organized in alphabetic order sub-sections. Each ROMS variable has an anchor tag to enable linking from any wikipage. For example, links in the form
- [[Variables#zeta | zeta]]
- will link to a variable named zeta in this page.
Scientific References
- All the scientific references are entered in the Bibliography page to facilitate printing. This page is organized in alphabetic order sub-sections. Notice that each reference has a unique anchor tag to facilitate citation from any wikipage. The anchor tag has the author lastname, firstname initial(s), underscore, publication year, and a lowercase letter enclosed with the span tag. For example,
- <span id="SverdrupHU_1947a"></span> Sverdrup, H. U., 1947: Wind-driven currents in a baroclinic ocean, with application to the equatorial currents of the eastern Pacific, Proc. Natl. Acad. Sci. U. S. A., 33 (11), 318-326.
- The lowercase letter is used to distinguish between different publications from the same author in a year. To cite from any wikipage use:
- [[Bibliography#SverdrupHU_1947a | Sverdrup (1947)]]
Code in Lists
- If you wish to have code segments in side list you will need to use a special markup we have designed for this purpose:
- # This is list item one.<div class="box">code in the box<br />and more</div>
# This is item two.
- will produce:
- This is list item one.code in the box
and more - This is item two.
- This is list item one.
Caution: It is imperative that you avoid new lines because they will restart the numbering and throw off the alignment.
- For Example:
- # This is list item one.
<div class="box">code in the box
and more</div>
# This is item two.
- will produce:
- This is list item one.
- code in the box
and more- This is item two.
Special Icons
- If you wish to draw attention to a special note or warn readers of a particular caveat, precede the statement with {{note}} or {{warning}}. For example:
- {{note}} '''Notice:''' This is an important thing to note.
- produces:
- and
- {{warning}} '''Caution:''' Be aware that this can be dangerous.
- produces:
Font Colors
- In order to make font colors easier we have created several classes.
- <span class="darkTurquoise">This is darkTurquoise</span>
- produces:
- This is darkTurquoise
- Other available colors are: forestGreen, limeGreen, darkGoldenrod, peru, sandyBrown, salmon, hotPink, mediumOrchid, red, orange, brown, green, olive, cyan, blue, twilightBlue, purple, violet, and black.
General wiki markup help
General commonly used wiki formatting help can be found on the MediaWiki website here.