Difference between revisions of "Help:Editing pages"

From WikiROMS
Jump to navigationJump to search
 
(7 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 [[help:Talk page|talk pages]] to ask questions or check to see if your idea will be accepted.
: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 [[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.
: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 synthax:
: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>&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.
::'''<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 citate from any wikipage use:
: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></div></nowiki><br /># This is item two.</div>
::<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:
:will produce:
:# This is list item one.<div class="box">code in the box</div>
:# This is list item one.<div class="box">code in the box<br />and more</div>
:# This is item two.
:# This is item two.


:It is imperative that you use <nowiki><br/></nowiki> instead of new lines because new lines will restart the numbering and throw off the alignment.
:{{warning}} '''Caution:''' It is imperative that you avoid new lines because they will restart the numbering and throw off the alignment.


:For Example:
:For Example:
::<div class="box"># This is list item one.<br /><nowiki><div class="box"></nowiki>code in the box<nowiki></div></nowiki><br /># This is item two.</div>
::<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.
:# This is list item one.
:<div class="box">code in the box</div>
:<div class="box">code in the box<br />and more</div>
:# This is item two.</div>
:# This is item two.


===Special Icons===
===Special Icons===
Line 90: Line 117:
::<div class="box"><span class="darkTurquoise">This is darkTurquoise</span></div>
::<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="darkGolderod">darkGolderod</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>.
: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>.
 
==Most frequent wiki markup explained==
<!--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!-->
Here are the 6 most frequently used wiki markups. If you need more help see:
*[[Help:Wikitext examples]]
*[[Help:Reference card]]
*[[Help:HTML in wikitext]]
*[[w:HTML element|HTML elements]]
 
{| border="1" cellpadding="2"
!width="1000" style="background:#FFFF99"|What it looks like
!width="500" style="background:#FFFF99"|What you type
|-
|
You can ''italicize text'' by putting 2
apostrophes on each side.
 
3 apostrophes will bold '''the text'''.
 
5 apostrophes will bold and italicize
'''''the text'''''.
 
(4 apostrophes don't do anything special -- there's just ''''one left over''''.)
|<pre>
You can ''italicize text'' by putting 2
apostrophes on each side.
 
3 apostrophes will bold '''the text'''.
 
5 apostrophes will bold and italicize
'''''the text'''''.
 
(4 apostrophes don't do anything
special -- there's just ''''one left
over''''.)
</pre>
|-
|
You should "sign" your comments on talk pages: <br>
- Three tildes give your user name: romsuser<br>
- Four tildes give your user name plus date/time: romsuser 07:46, 27 November 2005 (UTC) <br>
- Five tildes give the date/time alone: 07:46, 27 November 2005 (UTC) <br>
|<pre>
You should "sign" your comments
on talk pages: <br>
- Three tildes give your user
name: ~~~ <br>
- Four tildes give your user
name plus date/time: ~~~~ <br>
- Five tildes give the
date/time alone: ~~~~~ <br>
</pre>
|-
|
<div style="font-size:150%;border-bottom:1px solid #000000;">Section headings</div>
 
''Headings'' organize your writing into sections.
The Wiki software can automatically generate
a [[Help:table of contents|table of contents]] from them.
 
<div style="font-size:132%;font-weight:bold;">Subsection</div>
Using more equals signs creates a subsection.
 
<div style="font-size:116%;font-weight:bold;">A smaller subsection</div>
 
Don't skip levels, like from two to four equals signs.
 
Start with 2 equals signs not 1 because 1 creates H1 tags which should be reserved for page title.
|<pre>
== Section headings ==
 
''Headings'' organize your writing into sections.
The Wiki software can automatically generate
a table of contents from them.
 
=== Subsection ===
 
Using more equals signs creates a subsection.
 
==== A smaller subsection ====
 
Don't skip levels,
like from two to four equals signs.
 
Start with 2 equals signs not 1
because 1 creates H1 tags
which should be reserved for page title.
</pre>
|- id="lists"
|
* ''Unordered [[Help:List|list]]s'' are easy to do:
** Start every line with a star.
*** More stars indicate a deeper level.
*: Previous item continues.
** A newline
* in a list 
marks the end of the list.
*Of course you can start again.
|<pre>
* ''Unordered lists'' are easy to do:
** Start every line with a star.
*** More stars indicate a deeper level.
*: Previous item continues.
** A new line
* in a list 
marks the end of the list.
* Of course you can start again.
</pre>
|-
|
# ''Numbered lists'' are:
## Very organized
## Easy to follow
A new line marks the end of the list.
# New numbering starts with 1.
 
|<pre>
# ''Numbered lists'' are:
## Very organized
## Easy to follow
A new line marks the end of the list.
# New numbering starts with 1.
</pre>
|-
|
Here's a link to a page named [[Official position]].
You can even say [[official position]]s
and the link will show up correctly.
|<pre>
Here's a link to a page named
[[Official position]].
You can even say
[[official position]]s
and the link will show up
correctly.
</pre>
|-
|
[[The weather in Moscow]] is a page that doesn't exist
yet. You could create it by clicking on the link.
|<pre>
[[The weather in Moscow]] is
a page that doesn't exist
yet. You could create it by
clicking on the link.
</pre>
|-
|
You can link to a page section by its title:
 
*[[List of cities by country#Morocco]].
 
If multiple sections have the same title, add
a number. [[#Example section 3]] goes to the
third section named "Example section".
|<pre>
 
You can link to a page section by its title:
 
*[[List of cities by country#Morocco]].
 
If multiple sections have the same title, add
a number. [[#Example section 3]] goes to the
third section named "Example section".
</pre>
|}
 
==Further reading==
<!--More relevant links are welcome-->
 
===Editing help===
*[[Help:Editing FAQ]]
*[[Help:Editing toolbar]]
*[[Help:Editing tips and tricks]]
*[[Help:Minor_edit]]
 
===Wiki markups and codes===
{{Meta}}
*[[Help:Wikitext examples]]
*[[Help:Wikitext reference]]
*[[Help:Reference card]] - a one-page summary of important commands, to be printed out and used next to the computer
*[[Help:HTML in wikitext]]
*[[w:HTML element|HTML elements]] - introduction to HTML
 
===Page management===
*[[Help:Starting a new page]]
*[[Wikipedia:Merging_and_moving_pages|Merging and moving pages]]
*[[Help:Administration#Page_protection| Protecting pages]]
*[[Meta:Deletion_policy|Deletion policy]]
**[[Wikipedia:Wikipedia:Pure_wiki_deletion_system|Pure wiki deletion system]]
* For others, look at the table ("tools" part) on your right hand side
 
===Others===
 


{{h:f|enname=Editing}}
==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.