Manifold Atlas:Wiki syntax

From Manifold Atlas
(Difference between revisions)
Jump to: navigation, search
m (Reverted edits by Diarmuid Crowley (talk) to last revision by Daniel Müllner)
m
Line 1: Line 1:
This page collects some simple but useful tips about the Wiki syntax. The [[metawikipedia:Help:Contents|MediaWiki Handbook]] is a good reference for the wiki software: see especially the section [[metawikipedia:Help:Contents#For_editors|for editors]].
+
<nonumbers/>This page collects some simple but useful tips about the Wiki syntax. The [[metawikipedia:Help:Contents|MediaWiki Handbook]] is a good reference for the wiki software: see especially the section [[metawikipedia:Help:Contents#For_editors|for editors]].
== Links ==
+
== Hyperlinks ==
You create internal hyperlinks by writing <tt><nowiki>[[page name|link text]]</nowiki></tt>. For example
+
You create hyperlinks inside the Manifold Atlas by writing <tt><nowiki>[[page name|link text]]</nowiki></tt>. For example
<pre>
<pre>
[[Surface|2-dimensional manifold]]
+
[[Surfaces|2-dimensional manifold]]
</pre>
</pre>
produces the link [[Surface|2-dimensional manifold]]. If you wish to link to a Wikipedia page, use a prefix to the page name: <tt>Wikipedia:page name</tt>.
+
produces the link [[Surfaces|2-dimensional manifold]].
=== Links to subsections ===
+
If you wish to link to a Wikipedia page, use the above format with the page name: <tt>Wikipedia:page_name</tt>. For example
You can refine your hyperlinks to sections of web-pages. For example
+
<pre>
<pre>
[[Complete intersections#Invariants|Chern classes]]
+
[[Wikipedia:Differentiable_manifold|smooth manifold]]
</pre>
</pre>
produces the link [[Complete intersections#Invariants|Chern classes]] to the Invariants section of the Complete intersection page.
+
produces the link [[Wikipedia:Differentiable_manifold|smooth manifold]].
+
+
=== Links to sections and subsections ===
+
You can refine your hyperlinks to sections and even subsections of web-pages. For example
+
<pre>
+
[[5-manifolds: 1-connected#Invariants|linking form]]
+
</pre>
+
produces the link [[5-manifolds: 1-connected#Invariants|linking form]], which goes directly to the invariants section of the page on simply-connected 5-manifolds.
=== External links ===
=== External links ===
For a general web address, insert the entire URL in the address field. For example
+
For a general web address, insert the entire URL in the address field and seperate the link text simply with a space. For example
<pre>
<pre>
[http://www.him.uni-bonn.de/kreck homepage]
[http://www.him.uni-bonn.de/kreck homepage]
</pre>
</pre>
produces the link [http://www.him.uni-bonn.de/kreck homepage].
produces the link [http://www.him.uni-bonn.de/kreck homepage].
+
+
* See also the conventions for the [[Manifold_Atlas:References#External_links_section|external links section]].
+
+
=== Open and broken links ===
+
If the address part of a link is empty or incorrect you will produce an '''open''' or '''broken hyper link'''
+
* e.g. [[a link to nowhere right now]].
+
Writing open links can be helpful.
+
* It can speeding up writing (come back and fill address later).
+
* It can indicate pages you would like to see created in the future in the Atlas:
+
** if you click an open link the Wiki system creates the edit-page for page named by the address in the open link.
== Comments ==
== Comments ==
Line 27: Line 43:
</pre>
</pre>
== Bold face ==
+
== Bold face and emphasis ==
To obtain bold face, place text or links inside three single quotation marks: <tt><nowiki>''' ... '''</nowiki></tt>. For example
To obtain bold face, place text or links inside three single quotation marks: <tt><nowiki>''' ... '''</nowiki></tt>. For example
<pre>
<pre>
'''bold text''' and a '''[[Complete intersections|bold link]]'''
+
'''bold text''' and a [[Hirzebruch surfaces|'''bold link''']]
</pre>
</pre>
produces '''bold text''' and a '''[[Complete intersections|bold link]]'''.
+
produces '''bold text''' and a [[Hirzebruch surfaces|'''bold link''']].
== Sections and subsections ==
+
You can also emphasise text in a similar way by placing it with in two single quotation marks.
Sections and subsections are produced using <tt><nowiki>== ... ==</nowiki></tt> and <tt><nowiki>=== ... ===</nowiki></tt>. For example
+
+
== Sections, subsections, etc ==
+
* Sections, subsections and subsubsections etc are produced using <tt><nowiki>== ... ==</nowiki></tt>, <tt><nowiki>=== ... ===</nowiki></tt> and <tt><nowiki>==== ... ====</nowiki></tt> etc.
+
+
* Make sure that text between section headers is enclosed with the tags <tt><nowiki> <wikitex> ... </wikitex></nowiki></tt>.
+
+
* For example:
<pre>
<pre>
== Invariants ==
== Invariants ==
+
<wikitex>;
+
TEXT
+
</wikitex>
+
=== Seiberg-Witten invariants ===
=== Seiberg-Witten invariants ===
+
<wikitex>;
+
MORE TEXT
+
</wikitex>
</pre>
</pre>
produces an Invariants section with a Seiberg-Witten invariants subsection.
+
+
== Line breaks ==
+
<wikitex>;
+
The Wiki syntax is very sensitive to spare line-breaks in contrast to LaTeX which many authors may be used to. You may find that new sections and subsections appear with large spaces either at their beginning or end: if so you will need to hunt down the spare lines causing them and delete them.
+
</wikitex>

Latest revision as of 16:21, 25 November 2010

This page collects some simple but useful tips about the Wiki syntax. The MediaWiki Handbook is a good reference for the wiki software: see especially the section for editors.

Contents

Hyperlinks

You create hyperlinks inside the Manifold Atlas by writing [[page name|link text]]. For example

[[Surfaces|2-dimensional manifold]]

produces the link 2-dimensional manifold.

If you wish to link to a Wikipedia page, use the above format with the page name: Wikipedia:page_name. For example

[[Wikipedia:Differentiable_manifold|smooth manifold]]

produces the link smooth manifold.

Links to sections and subsections

You can refine your hyperlinks to sections and even subsections of web-pages. For example

[[5-manifolds: 1-connected#Invariants|linking form]]

produces the link linking form, which goes directly to the invariants section of the page on simply-connected 5-manifolds.

External links

For a general web address, insert the entire URL in the address field and seperate the link text simply with a space. For example

[http://www.him.uni-bonn.de/kreck homepage]

produces the link homepage.

Open and broken links

If the address part of a link is empty or incorrect you will produce an open or broken hyper link

Writing open links can be helpful.

  • It can speeding up writing (come back and fill address later).
  • It can indicate pages you would like to see created in the future in the Atlas:
    • if you click an open link the Wiki system creates the edit-page for page named by the address in the open link.

Comments

You can comment out text simply by placing it within <!-- ... -->. For example:

<!-- This text would not appear on the page. -->

Bold face and emphasis

To obtain bold face, place text or links inside three single quotation marks: ''' ... '''. For example

'''bold text''' and a [[Hirzebruch surfaces|'''bold link''']]

produces bold text and a bold link.

You can also emphasise text in a similar way by placing it with in two single quotation marks.

Sections, subsections, etc

  • Sections, subsections and subsubsections etc are produced using == ... ==, === ... === and ==== ... ==== etc.
  • Make sure that text between section headers is enclosed with the tags <wikitex> ... </wikitex>.
  • For example:
==<sectioncount/> Invariants ==
<wikitex>; 
TEXT
</wikitex>

===<subsectioncount/> Seiberg-Witten invariants ===
<wikitex>;
MORE TEXT
</wikitex>

Line breaks

The Wiki syntax is very sensitive to spare line-breaks in contrast to LaTeX which many authors may be used to. You may find that new sections and subsections appear with large spaces either at their beginning or end: if so you will need to hunt down the spare lines causing them and delete them.

Personal tools
Variants
Actions
Navigation
Interaction
Toolbox