CATUG wiki:Formatting guide: Difference between revisions

From CATUG wiki
Jump to navigation Jump to search
(cut down to meet our requirements)
(uploading files)
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
= Adding text=
Start typing in the first column; don't leave spaces at the left margin, unless for some reason you want it to look... <br/>
... like this. It looks ugly but can be useful e.g. for commands that have to be re-typed exactly.
Leave an empty line between paragraphs. Without this, the Wiki software will flow your text continuously.
The following table shows how to do other formatting.
<div align="center">
<div align="center">
<!--COMMENT MARKUP. Displays:Edit mode only.-->
<!--COMMENT MARKUP. Displays:Edit mode only.-->
{|align="center" style="width:100%; border:2px #a3b1bf solid; background:#f5faff; text-align:left;"
{|align="center" style="width:100%; border:2px #a3b1bf solid; background:#f5faff; text-align:left;"
|colspan="3" align="center" style="background:#cee0f2; text-align:center;" |
|colspan="3" align="center" style="background:#cee0f2; text-align:center;" |
<h2 style="margin:.5em; margin-top:.1em; margin-bottom:.1em; border-bottom:0; font-weight:bold;">Formatting guide</h2>
<h2 style="margin:.5em; margin-top:.1em; margin-bottom:.1em; border-bottom:0; font-weight:bold;">Wiki markup</h2>
|-<!--COLUMN HEADINGS-->
|-<!--COLUMN HEADINGS-->
| width="25%" style="background:#cee0f2; padding:0.3em; text-align:center;"|'''Description'''
| width="25%" style="background:#cee0f2; padding:0.3em; text-align:center;"|'''Description'''
Line 36: Line 45:
<div style="padding: 0em .5em; font-size:0.9em;">''(within this Wiki)''</div>
<div style="padding: 0em .5em; font-size:0.9em;">''(within this Wiki)''</div>
|
|
<tt><nowiki>[[Name of page]]</nowiki></tt><br />
<tt><nowiki>[[Mac Ministry List]]</nowiki></tt><br />
<tt><nowiki>[[Name of page|Text to display]]</nowiki></tt>
<tt><nowiki>[[Mac Ministry List|our mailing list]]</nowiki></tt>
|
|
[[Name of page]]<br />
[[Mac Ministry List]]<br />
[[Name of page|Text to display]]
[[Mac Ministry List|our mailing list]]
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|colspan="3" style="border-top:1px solid #cee0f2;"|
Line 57: Line 66:
|colspan="3" style="border-top:1px solid #cee0f2;"|
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|-
|Redirect to another page
|Redirect to another page <br/> (This is used on a page by itself to send a reader from one link to another page, e.g. for an abbreviation or synonym)
|
|
<tt><nowiki>#REDIRECT [[Target page]]</nowiki></tt>
<tt><nowiki>#REDIRECT [[Mac Ministry List]]</nowiki></tt>
|
|
|-
[[Image:Redirect arrow without text.png|30px|link=]][[Mac Ministry List]]
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|-
|Section headings<sup>1</sup><br />
|Section headings<sup>1</sup><br />
<div style="padding: 0em .5em; font-size:0.9em;">''A Table of Contents will automatically be generated when four headings are added to an article.''</div>
<div style="padding: 0em .5em; font-size:0.9em;">''A Table of Contents will automatically be generated at the top when four headings are added to an article.''</div>
|
|
''(=Level 1= is used only for a page's title, and is generated automatically.)'' <br/>
<tt><nowiki>= Level 1 =</nowiki></tt><br />
<tt><nowiki>== Level 2 ==</nowiki></tt><br />
<tt><nowiki>== Level 2 ==</nowiki></tt><br />
<tt><nowiki>=== Level 3 ===</nowiki></tt><br />
<tt><nowiki>=== Level 3 ===</nowiki></tt><br />
<tt><nowiki>==== Level 4 ====</nowiki></tt><br />
<tt><nowiki>==== Level 4 ====</nowiki></tt><br />
<tt><nowiki>===== Level 5 =====</nowiki></tt><br />
<tt><nowiki>===== Level 5 =====</nowiki></tt>
<tt><nowiki>====== Level 6 ======</nowiki></tt><br />
|
|
= Level 1 =
== Level 2 ==
== Level 2 ==
=== Level 3 ===
=== Level 3 ===
==== Level 4 ====
==== Level 4 ====
===== Level 5 =====
===== Level 5 =====
====== Level 6 ======
|-
|Simple headings to be omitted from the table of contents<sup>1</sup>
|<tt><nowiki>;Simple heading</nowiki></tt>
|'''Simple heading'''
|-
|Table of Contents
<div style="padding: 0em .5em; font-size:0.9em;">''A Table of Contents will automatically be generated when four headings are added to an article. This code makes it appear at a particular place other than the top of the page.''</div>
|<tt><nowiki>__TOC__</nowiki></tt>
|__TOC__
|-
|No table of contents
<div style="padding: 0em .5em; font-size:0.9em;">''If the contents of a multi-section page are so short that it doesn't need a table of contents, use this to suppress the automatic one.''</div>
|<tt><nowiki>__NOTOC__</nowiki></tt>
|
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|colspan="3" style="border-top:1px solid #cee0f2;"|
Line 101: Line 121:
|-
|-
|Numbered list<sup>1</sup>
|Numbered list<sup>1</sup>
<div style="padding: 0em .5em; font-size:0.9em;">''Empty lines between list items restarts numbering at 1.''</div>
<div style="padding: 0em .5em; font-size:0.9em;">''Empty line between list items restarts numbering at 1.''</div>
|
|
<tt># One</tt><br />
<tt># One</tt><br />
Line 126: Line 146:
::second indent
::second indent
:::third indent
:::third indent
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|Computer code <div style="padding: 0em .5em; font-size:0.9em;">''as an alternative to entering a whole line starting with a space, as shown above''</div>
|<tt><nowiki>Use HTML tags <code>like this</code> within text</nowiki></tt>
|Use HTML tags <code>like this</code> within text
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|-
|Image
|Image
<div style="padding: 0em .5em; font-size:0.9em;">''First upload the image using "Upload file" link in the panel on the left.''</div>
|
|
<tt><nowiki>[[</nowiki>File:Wiki.png|thumb|alt=Alternative&nbsp;text|Caption<nowiki>]]</nowiki></tt>
<tt><nowiki>
[[</nowiki>File:Logo 4.jpg|thumb|75px|alt=Alternative <br />
text in case image does not load|Caption<nowiki>]]</nowiki></tt>
|
|
[[File:Wiki.png|thumb|alt=Alt text|Caption]]
[[File:Logo 4.jpg|thumb|75px|alt=Alternative text in case image does not load|Caption]]
|-
|-


Line 150: Line 179:
</div>
</div>


==See also==
=See also=
* To experiment with editing, use the [[CMUG:Sandbox|sandbox]].
* For our in-house style guide, see [[CATUG wiki:Notes for editors]]
* For more advanced details, see see the Wikipedia page [[Wikipedia:Wikipedia:Cheatsheet |Wikipedia:Cheatsheet]], of which the above is a cut-down version, as this Wiki uses the same software.
* To add links to Bible verses, see [[Template:Bibleverse]]
* To experiment with editing, use the [[CATUG wiki:Sandbox|sandbox]]
* For more advanced details, see see the Wikipedia page [[Wikipedia:Wikipedia:Cheatsheet |Wikipedia:Cheatsheet]], of which the above is a cut-down version, as this Wiki uses the same software


__NOTOC__ __NOEDITSECTION__
[[Category:CATUG wiki|Formatting guide]]

Latest revision as of 20:52, 13 July 2014

Adding text

Start typing in the first column; don't leave spaces at the left margin, unless for some reason you want it to look...

... like this. It looks ugly but can be useful e.g. for commands that have to be re-typed exactly.

Leave an empty line between paragraphs. Without this, the Wiki software will flow your text continuously.

The following table shows how to do other formatting.

Wiki markup

Description You type You get
Italic text

''italic''

italic

Bold text

'''bold'''

bold

Bold and italic

'''''bold & italic'''''

bold & italic

Internal link
(within this Wiki)

[[Mac Ministry List]]
[[Mac Ministry List|our mailing list]]

Mac Ministry List
our mailing list

External link
(to other websites)

[http://www.example.org Text to display]
[http://www.example.org]
http://www.example.org

Text to display
[1]
http://www.example.org

Redirect to another page
(This is used on a page by itself to send a reader from one link to another page, e.g. for an abbreviation or synonym)

#REDIRECT [[Mac Ministry List]]

Redirect arrow without text.pngMac Ministry List

Section headings1
A Table of Contents will automatically be generated at the top when four headings are added to an article.

= Level 1 =
== Level 2 ==
=== Level 3 ===
==== Level 4 ====
===== Level 5 =====

Level 1

Level 2

Level 3

Level 4

Level 5
Simple headings to be omitted from the table of contents1 ;Simple heading Simple heading
Table of Contents
A Table of Contents will automatically be generated when four headings are added to an article. This code makes it appear at a particular place other than the top of the page.
__TOC__
No table of contents
If the contents of a multi-section page are so short that it doesn't need a table of contents, use this to suppress the automatic one.
__NOTOC__
Bulleted list1
Empty lines between list items discouraged (see numbered lists).

* One
* Two
** Two point one
* Three

  • One
  • Two
    • Two point one
  • Three
Numbered list1
Empty line between list items restarts numbering at 1.

# One
# Two
## Two point one
# Three

  1. One
  2. Two
    1. Two point one
  3. Three
Indenting text1

no indent (normal)
:first indent
::second indent
:::third indent

no indent (normal)

first indent
second indent
third indent
Computer code
as an alternative to entering a whole line starting with a space, as shown above
Use HTML tags <code>like this</code> within text Use HTML tags like this within text
Image
First upload the image using "Upload file" link in the panel on the left.

[[File:Logo 4.jpg|thumb|75px|alt=Alternative
text in case image does not load|Caption]]

Alternative text in case image does not load
Caption
For use only on Talk Pages (following discussion about articles and messages for other editors)
Signature

~~~~

Username (talk) 14:49, 21 November 2024 (UTC)

Note 1: Applies only at the very beginning of lines.

See also