Help:Editing

From Mass Spec Terms
Revision as of 00:37, 14 January 2005 by Kkmurray (talk | contribs)

Two Minute Markup Tutorial

To edit a page, click on the Edit tab. Put the text shown in the dotted box below into the edit box. After you hit the Save Page button the corresponding text shown below will be rendered.


'''Bold text using three apostrophes'''

results in

Bold text using three apostrophes


''Italic text using two apostrophes''

results in

Italic text using two apostrophes


== Level 2 Header ==

results in

Level 2 Header

=== Level 3 Header ===

results in

Level 3 Header

----

results in a "horizontal rule"



[http://www.cnn.com/ The CNN Website]

Results in an link to the outside

The CNN Website


[[Internal Link]]

Results in a link to a page on this Wiki (if the page isn't there, clicking will take you to the edit page)

Internal Link


Templates Specific to the MS Terms Wiki

If you want the same stuff on different pages, you can use a template. The templates are special Wiki pages and can be edited in the same way. They will also take arguments like subroutines. Here are some templates for this Wiki:

Stub Template

{{stub}}
The Editing page currently does not have any content, please see

All terms | IUPAC 2013 | Gold Book terms | Orange Book terms | Acronyms | Deprecated terms | Obsolete terms | Draft definitions | Stub pages


Suggested Definition Template

{{Sugdef|Term goes here|Definition goes here}}

This template is no longer used.


Draft Definition Template

{{Def|Term goes here|Definition goes here}}
DRAFT DEFINITION
Editing
Related Term(s):
Reference(s):
This is an unofficial draft definition presented for information and comment.

Recommended terms | Full list of terms

 


Draft Definition Template (Term is Page Name )

{{DefName|Definition goes here}}
DRAFT DEFINITION
Editing
Related Term(s):
Reference(s):
This is an unofficial draft definition presented for information and comment.

Recommended terms | Full list of terms

 


Wiki Variables

The Wiki used by this site has some special variables that depend on the page. This is a list of variables that can be used in the wikitext. The way they are rendered depends on the time, on the project, or on the page in which it occurs.

On the left is the variable, on the right how it is rendered at this time, in this project, on this page.

Constant, only depending on the project and parameters

{{ns:-2}} or {{ns:Media}} Media
{{ns:-1}} or {{ns:Special}} Special
{{ns:1}} or {{ns:Talk}} Talk
{{ns:2}} or {{ns:User}} User
{{ns:3}} or {{ns:User_talk}} User talk
{{ns:4}} or {{ns:Project}} MS Terms
{{ns:5}} or {{ns:Project_talk}} MS Terms talk
{{ns:6}} or {{ns:Image}} File
{{ns:7}} or {{ns:Image_talk}} File talk
{{ns:8}} or {{ns:MediaWiki}} MediaWiki
{{ns:9}} or {{ns:MediaWiki_talk}} MediaWiki talk
{{ns:10}} or {{ns:Template}} Template
{{ns:11}} or {{ns:Template_talk}} Template talk
{{ns:12}} or {{ns:Help}} Help
{{ns:13}} or {{ns:Help_talk}} Help talk
{{ns:14}} or {{ns:Category}} Category
{{ns:15}} or {{ns:Category_talk}} Category talk
{{ns:100}}
... (depending on custom namespaces)
{{ns:121}}
{{SITENAME}} Mass Spec Terms
{{SERVER}} https://msterms.org
{{localurl:pagename}} /wiki/index.php/Pagename
{{localurl:pagename|query string}} /wiki/index.php?title=Pagename&query string

Varying with time

{{CURRENTMONTH}} 09
{{CURRENTMONTHNAME}} September
{{CURRENTMONTHNAMEGEN}} September
{{CURRENTDAY}} 10
{{CURRENTDAYNAME}} Wednesday
{{CURRENTYEAR}} 2025
{{CURRENTTIME}} 11:29
{{NUMBEROFARTICLES}} 2,240

NUMBEROFARTICLES: number of pages in the main namespace which contain a link and are not a redirect, i.e. number of articles, stubs containing a link, and disambiguation pages.

This depends on system variable $wgUseCommaCount If true, article count will only include those with commas (","). If false, will only count those with links ("[["). The default set in DefaultSettings.php is false, this can be changed in LocalSettings.php.

Depending on page

{{NAMESPACE}} Help
{{PAGENAME}} Editing
{{PAGENAMEE}} Editing

PAGENAMEE displays the page title in the form that is used in URLs, i.e. with underscores for spaces, and escape codes for special characters, and is therefore used for constructing URLs. For example, on a page called "Another test", PAGENAMEE would produce "Another_test" rather than "Another test". See also Variables {{PAGENAME}} and {{PAGENAMEE}}

When used in a template, these three variables refer to the page in which the template is included, not to the template page.

Examples of combinations

{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAMEE}}|action=edit}} https://msterms.org/wiki/index.php?title=Help:Editing&action=edit
{{SERVER}}{{localurl:Special:Whatlinkshere|target={{NAMESPACE}}:{{PAGENAMEE}}}}https://msterms.org/wiki/index.php?title=Special:Whatlinkshere&target=Help:Editing
[[{{NAMESPACE}}:{{PAGENAMEE}}_1]] Help:Editing_1
{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAMEE}}_1}} https://msterms.org/wiki/index.php/Help:Editing_1

Here on Meta, due to Template:UTC, {{UTC}} produces: {{UTC}}

In a template, for a link to a page which depends on a template parameter, the external link style is used even for internal links, to avoid that the system links to the edit page even if the page exists. To construct the external link, variables can also be useful.


External Links

Wikipedia:How_to_edit_a_page
Creating Tables
Mozilla Mediawiki FAQ