Difference between revisions of "Help:Editing pages"

From WikiROMS
Jump to navigationJump to search
 
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{H:h|editor toc}}
<div class="title">Editing Help</div>
This Editing Overview has a lot of '''[[w:wikitext|wikitext]]''' examples. You may want to keep this page open in a separate browser window for reference while you edit.
<!--{{H:h|editor toc}}-->
Each of the topics covered here is covered somewhere else in more detail. See box at right for that
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 ==
;Start editing
:To start editing a [[w:MediaWiki|MediaWiki]] page, click the '''Edit this page''' (or just '''edit''') link at one of its edges. This brings you to the '''edit page''': a page with a text box containing the ''[[w:wikitext|wikitext]]'': the editable source code from which the server produces the webpage. ''If you just want to experiment, please do so in the [[{{ns:4}}:Sandbox|sandbox]], not here''.


;Type your changes
== Editing basics ==
:You can just type your text. However, also using basic wiki markup (described in the next section) to make links and do simple formatting adds to the value of your contribution.
<!--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!-->


;Summarize your changes
===Review policy and conventions===
:Write a short [[Help:Edit summary|edit summary]] in the small field below the edit-box. You may use shorthand to describe your changes, as described in the [[{{ns:4}}:Edit summary legend|legend]].
: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.


;Preview before saving
===Start editing===
:When you have finished, click '''[[Help:Show preview|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.
: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.


{{:Help:Wikitext quick reference}} <!-- Edit this at [[Help:Wikitext quick reference]] -->
===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="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.


== Minor edits ==
===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.


A [[Help:Logging in|logged-in]] user can mark an edit as "minor". [[Help:Minor edit|Minor edit]]s are generally spelling corrections, formatting, and minor rearrangement of text. Users may choose to ''hide'' minor edits when viewing [[Help:Recent changes|Recent Changes]].
===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.


Marking a significant change as a minor edit is considered bad Wikiquette. If you have accidentally marked an edit as minor, make a [[Help:Dummy edit|dummy edit]], verify that the "<small>'''[&nbsp;] This is a minor edit'''</small>" check-box is unchecked, and explain in the edit summary that the previous edit was not minor.
===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.


==See also==
==WikiROMS special editing Guidelines==
*[[Help:Editing FAQ]]
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.
*[[Help:Automatic conversion of wikitext]]
 
*[[Help:Calculation]]
===TeX Equations===
*[[Help:Editing toolbar]]
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:
*[[Help:HTML in wikitext]]
 
*[[Help:Administration#Page protection|Protecting pages]]
<!--#'''\mbox{}''' does not seem to work in most situations, try '''\text{}''' instead-->
*[[Wikipedia:Cheatsheet]]&mdash;a listing of the basic editing commands.
#Inserting a literal "_" is tricky. ''I.e.'' to place '''MIX_GEO''' in an equation enter: '''\text{MIX}{\_}\text{GEO}'''
*[[Help:Starting a new page]]
#New lines in an equation are achieved with '''\\''' instead of '''\cr'''
*[[Help:Variable]]
#'''\eqalign{}''' is not supported. Instead use '''\begin{align}<nowiki><equations></nowiki>\end{align}'''
*[[w:HTML element|HTML elements]].
#place a '''\,''' before commas at the end of equation lines to provide some spacing.
*[[Wikipedia:Manual of Style]]
#To change colors within an equation use '''<nowiki>\color{<color>}{<elements to color>}</nowiki>'''
{{h:f|enname=Editing}}
 
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===
:All [[Options | 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
 
::'''<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 syntax:
 
::'''<nowiki>{{#lst:Options|UV_ADV}}</nowiki>'''
 
:that allows you to reference this option from any wiki page using the regular double-bracket syntax,  '''<nowiki>[[UV_ADV]]</nowiki>'''. 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 [[Variables | 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
 
::'''<nowiki>[[Variables#zeta | zeta]]</nowiki>'''
 
:will link to a variable named [[Variables#zeta | 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,
::'''<nowiki>&lt;span id="SverdrupHU_1947a"&gt;&lt;/span&gt;</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 cite from any wikipage use:
 
::'''<nowiki>[[Bibliography#SverdrupHU_1947a | Sverdrup (1947)]]</nowiki>'''
 
===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:
::<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>
 
: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:
:# This is list item one.
:<div class="box">code in the box<br />and more</div>
:# 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 <nowiki>{{note}}</nowiki> or <nowiki>{{warning}}</nowiki>. For example:
:<div class="box"><nowiki>{{note}} '''Notice:'''</nowiki> This is an important thing to note.</div>
:produces:
:<div class="box">{{note}} '''Notice:''' This is an important thing to note.</div>
:and
:<div class="box"><nowiki>{{warning}} '''Caution:'''</nowiki> Be aware that this can be dangerous.</div>
:produces:
:<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

Editing Help

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:

  1. Inserting a literal "_" is tricky. I.e. to place MIX_GEO in an equation enter: \text{MIX}{\_}\text{GEO}
  2. New lines in an equation are achieved with \\ instead of \cr
  3. \eqalign{} is not supported. Instead use \begin{align}<equations>\end{align}
  4. place a \, before commas at the end of equation lines to provide some spacing.
  5. 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: button numbered.png, button block math.png, and button math.png. The 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 (button block math.png). The 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 button numbered.png button. The following code will entered in the editing box:

{| class="eqno" |Insert eq. to # here |(Enter eq. # here) |}

The Insert eq. to # here text will be highlighted so you can then click the 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 button math.png 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:
  1. This is list item one.
    code in the box
    and more
  2. 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:
# This is list item one.
<div class="box">code in the box
and more</div>
# This is item two.
will produce:
  1. This is list item one.
code in the box
and more
  1. 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:
Note Notice: This is an important thing to note.
and
{{warning}} '''Caution:''' Be aware that this can be dangerous.
produces:
Warning Caution: Be aware that this can be dangerous.

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.