Help:Formatting: Difference between revisions

From wikilawschool.net. Wiki Law School does not provide legal advice. For educational purposes only.
wikilaw>Ealex292
(added mixed lists)
 
mNo edit summary
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{PD Help Page}}
You can format your text using wiki markup. This consists of normal characters like asterisks, single quotes or equation marks which have a special function in the wiki, sometimes depending on their position. For example, to format a word in ''italic'', you include it in two single quotes like <samp><nowiki>''this''</nowiki></samp>
You can format your text using wiki markup. This consists of normal characters like asterisks, single quotes or equation marks which have a special function in the wiki, sometimes depending on their position. For example, to format a word in ''italic'', you include it in two single quotes like <tt><nowiki>''this''</nowiki></tt>


== Text formatting markup ==
== Text formatting markup ==


{| align="center" {{Prettytable}}
<!--COMMENT MARKUP. Displays:Edit mode only-->
 
<div align="center">
{| style="border:1px solid #A3B1BF; text-align:left; background:#f5faff"
|-<!--COLUMN HEADINGS-->
| width="25%" style="background: #cee0f2; padding: 0.3em; text-align:center;"|'''Description'''
| style="background: #cee0f2; padding: 0.3em; text-align:center;"|'''You type'''
| width="25%" style="background: #cee0f2; padding: 0.3em; text-align:center;"|'''You get'''
|-<!--1ST HEADING-->
| colspan="3" style="background: #cee0f2; padding: 0.2em; font-family: sans-serif; font-size: 0.9em; text-align:center;" | Applies anywhere
|-<!--1ST ROW 1ST COLUMN-->
|Italicise text
|<!--2ND COLUMN-->
<samp><nowiki>''italic''</nowiki></samp>
|<!--3RD COLUMN-->
''italic''
|-<!--HORIZONTAL LINE-->
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-<!--2ND ROW 1ST COLUMN-->
|Bold text
|
<samp><nowiki>'''bold'''</nowiki></samp>
|
'''bold'''
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|Bold and italic
|
<samp><nowiki>'''''bold & italic'''''</nowiki></samp>
|
'''''bold & italic'''''
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|Internal link<br />
(within Wiki Law School)
|
<samp><nowiki>[[Civil Procedure]]</nowiki></samp><br />
<samp><nowiki>[[Torts|really fun class]]</nowiki></samp><br />
|
[[Civil Procedure]]<br />
[[Torts|really fun class]]<br />
|-
|-
|{{Hl3}}|'''Description'''
|colspan="3" style="border-top:1px solid #cee0f2;"|
|{{Hl3}}|'''You type'''
|{{Hl3}}|'''You get'''
|-
|-
| colspan="3" align="center" | ''applies anywhere''
|Redirect to another page
|
<samp><nowiki>#redirect [[Antitrust]]</nowiki></samp>
|
(redirect to) [[Antitrust]]
|-
|-
|Italic text
|colspan="3" style="border-top:1px solid #cee0f2;"|
|<tt><nowiki>''italic''</nowiki></tt>
|''italic''
|-
|-
| Bold text
|External link<br />
|<tt><nowiki>'''bold'''</nowiki></tt>
(to other websites)
|'''bold'''
|
<samp><nowiki>[http://www.example.com]</nowiki></samp><br />
<samp><nowiki>[http://www.example.com display text]</nowiki></samp><br />
<samp><nowiki>http://www.example.com</nowiki></samp>
|
[http://www.example.com]<br />
[http://www.example.com display text]<br />
http://www.example.com
|-
|-
| Bold and italic
|colspan="3" style="border-top:1px solid #cee0f2;"|
|<tt><nowiki>'''''bold & italic'''''</nowiki></tt>
|'''''bold & italic'''''
|-
|-
|Escape wiki markup
|Escape wiki markup
|<tt><nowiki><nowiki>no ''markup''</nowiki></nowiki></tt>
|
|<nowiki>no ''markup''</nowiki>
<samp><nowiki>with ''markup''</nowiki></samp><br />
<samp><nowiki><nowiki>without ''markup''</nowiki></nowiki></samp>
|
with ''markup''<br />
<nowiki>without ''markup''</nowiki>
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|-
| colspan="3" align="center" | ''only at the beginning of the line''
|
Sign your posts <br />
on talk pages
|
<nowiki>~~~~</nowiki>
|
[[User:Username|Username]] {{CURRENTTIME}}, <br />
{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} (UTC)
|-<!--2ND HEADING-->
| colspan="3" style="background: #cee0f2; padding: 0.2em; font-family: sans-serif; font-size: 0.9em; text-align:center;" | Applies only at the beginning of the line
|-
|-
|Headings of<br />
|Headings<br />
different sizes
of different sizes
|
|
<tt><nowiki>==level 1==</nowiki></tt><br />
<samp><nowiki>==level 1==</nowiki></samp><br />
<tt><nowiki>===level 2===</nowiki></tt><br />
<samp><nowiki>===level 2===</nowiki></samp><br />
<tt><nowiki>====level 3====</nowiki></tt><br />
<samp><nowiki>====level 3====</nowiki></samp><br />
<tt><nowiki>=====level 4=====</nowiki></tt>
<samp><nowiki>=====level 4=====</nowiki></samp>
|
|
==Level 1==
==Level 1==
Line 43: Line 104:
=====Level 4=====
=====Level 4=====
|-
|-
|Horizontal rule
|colspan="3" style="border-top:1px solid #cee0f2;"|
|
<tt><nowiki>----</nowiki></tt>
|
----
|-
|-
|Bullet list
|Bullet list
|
|
&#42; one<br>
<samp>&#42; one</samp><br />
&#42; two<br>
<samp>&#42; two</samp><br />
&#42; three<br>
<samp>&#42;&#42; two point one</samp><br />
&#42;&#42; three and one-third<br>
<samp>&#42; three</samp>
&#42;&#42; three and two-thirds<br>
|
|
* one
* one
* two
* two
** two point one
* three
* three
** three and one-third
|-
** three and two-thirds
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|-
|Numbered list
|Numbered list
|
|
&#35; one<br />
<samp>&#35; one</samp><br />
&#35; two<br />
<samp>&#35; two</samp><br />
&#35; three<br />
<samp>&#35;&#35; two point one</samp><br />
&#35;&#35; three point one<br />
<samp>&#35; three</samp>
&#35;&#35; three point two<br />
|
|
# one
# one
# two
# two
## two point one
# three
# three
## three point one
## three point two
|-
|-
| Mixture of bulleted<br /> and numbered lists
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
| Indented Text
|
|
&#35; one<br />
<samp><nowiki>no indents</nowiki></samp><br />
&#35; two<br />
<samp><nowiki>:one indent</nowiki></samp><br />
&#35;&#42; two point one<br />
<samp><nowiki>::two indents</nowiki></samp><br />
&#35;&#42; two point two<br />
<samp><nowiki>:::three indents</nowiki></samp>
|
|
# one
no indents
# two
:one indent
#* two point one
::two indents
#* two point two
:::three indents
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|-
|Definition list
| Definition list
|
|
&#59;Definition<br />
<samp>&#59;Definition</samp><br />
&#58;item 1<br />
<samp>&#58;item 1</samp><br />
&#58;item 2<br />
<samp>&#58;item 2</samp>
|
|
;Definition
;Definition
:item 1
:item 1
:item 2
:item 2
|-
|Preformatted text
|
&nbsp;&nbsp;preformatted text is done with<br />
&nbsp;&nbsp;a space at the<br />
&nbsp;&nbsp;beginning of the line<br />
|
preformatted text is done with
a space at the
beginning of the line
|}
|}
 
</div>


== Paragraphs ==
== Paragraphs ==


Mediawiki ignores normal line breaks. To start a new paragraph, leave an empty line. You can also start a newline with the HTML tag <tt><nowiki><br&nbsp;/></nowiki></tt>.   
Wiki Law School ignores normal line breaks. To start a new paragraph, leave an empty line. You can also start a new line with the HTML tag <samp><nowiki><br&nbsp;/></nowiki></samp>.   


== HTML ==
== HTML ==


Some HTML-Tags are allowed in MediaWiki, for example <tt><nowiki><code></nowiki></tt>, <tt><nowiki><div></nowiki></tt>, <tt><nowiki><span></nowiki></tt> and <tt><nowiki><font></nowiki></tt>.
Some HTML-Tags are allowed in Wiki Law School, for example <samp><nowiki><code></nowiki></samp>, <samp><nowiki><div></nowiki></samp>, <samp><nowiki><span></nowiki></samp> and <samp><nowiki><font></nowiki></samp>.
 
{{Admin tip|tip=If you trust your users you can allow full HTML by setting <code>$wgRawHtml = true;</code> in LocalSettings.php. Switch off HTML completely with <code>$wgUserHtml = false;</code>}}
 


== More advanced formatting ==
== More advanced formatting ==
Line 128: Line 174:
*[[Help:Tables|Tables]]
*[[Help:Tables|Tables]]


== External Links ==
== Style Guide ==
{{meta|Help:Editing}}


{{Languages|Help:Formatting}}
See the [[Wiki Law School:Manual of Style]] for a general guideline for the creation, editing, and formatting of uniform Wiki Law School outlines.


== External Links ==
http://meta.wikimedia.org/wiki/Help:Editing
__NOTOC__
__NOTOC__
__NOEDITSECTION__
__NOEDITSECTION__


[[Category:Help|Formatting]]
[[Category:Help|Formatting]]

Revision as of 16:38, September 12, 2017

You can format your text using wiki markup. This consists of normal characters like asterisks, single quotes or equation marks which have a special function in the wiki, sometimes depending on their position. For example, to format a word in italic, you include it in two single quotes like ''this''

Text formatting markup

Description You type You get
Applies anywhere
Italicise text

''italic''

italic

Bold text

'''bold'''

bold

Bold and italic

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

bold & italic

Internal link

(within Wiki Law School)

[[Civil Procedure]]
[[Torts|really fun class]]

Civil Procedure
really fun class

Redirect to another page

#redirect [[Antitrust]]

(redirect to) Antitrust

External link

(to other websites)

[http://www.example.com]
[http://www.example.com display text]
http://www.example.com

[1]
display text
http://www.example.com

Escape wiki markup

with ''markup''
<nowiki>without ''markup''</nowiki>

with markup
without ''markup''

Sign your posts
on talk pages

~~~~

Username 07:26,
29 March 2024 (UTC)

Applies only at the beginning of the line
Headings

of different sizes

==level 1==
===level 2===
====level 3====
=====level 4=====

Level 1

Level 2

Level 3

Level 4
Bullet list

* one
* two
** two point one
* three

  • one
  • two
    • two point one
  • three
Numbered list

# one
# two
## two point one
# three

  1. one
  2. two
    1. two point one
  3. three
Indented Text

no indents
:one indent
::two indents
:::three indents

no indents

one indent
two indents
three indents
Definition list

;Definition
:item 1
:item 2

Definition
item 1
item 2

Paragraphs

Wiki Law School ignores normal line breaks. To start a new paragraph, leave an empty line. You can also start a new line with the HTML tag <br />.

HTML

Some HTML-Tags are allowed in Wiki Law School, for example <code>, <div>, <span> and <font>.

More advanced formatting

Beyond the basic text formatting markup shown above, there are some more advanced formatting tricks:

Style Guide

See the Wiki Law School:Manual of Style for a general guideline for the creation, editing, and formatting of uniform Wiki Law School outlines.

External Links

http://meta.wikimedia.org/wiki/Help:Editing