Help:Formatting: Difference between revisions

From wikilawschool.net. Wiki Law School does not provide legal advice. For educational purposes only.
mNo edit summary
m (Added more detail for formatting marks and a few new ones, including block quotes)
Line 6: Line 6:


<div align="center">
<div align="center">
{| style="border:1px solid #A3B1BF; text-align:left; background:#f5faff"
{| class="wikitable"  
|-<!--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 81: Line 81:
|-
|-
|
|
Sign your posts <br />
Sign and timestamp your posts <br />
on talk pages
on talk pages
|
|
Line 87: Line 87:
|
|
[[User:Username|Username]] {{CURRENTTIME}}, <br />
[[User:Username|Username]] {{CURRENTTIME}}, <br />
{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} (UTC)  
{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} (UTC)
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|
Sign your posts <br />
(no timestamp
|
<nowiki>~~~</nowiki>
|
[[User:Username|Username]]
|-<!--2ND HEADING-->
|-<!--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
| 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<br />
|{{Anchor|formatheadings}}Headings<br />
of different sizes
of different sizes<br /><br />Headings need to be on their own line
|
|
<samp><nowiki>==level 1==</nowiki></samp><br />
<samp><nowiki>==level 2==</nowiki></samp><br />
<samp><nowiki>===level 2===</nowiki></samp><br />
<samp><nowiki>===level 3===</nowiki></samp><br />
<samp><nowiki>====level 3====</nowiki></samp><br />
<samp><nowiki>====level 4====</nowiki></samp><br />
<samp><nowiki>=====level 4=====</nowiki></samp>
<samp><nowiki>=====level 5=====</nowiki></samp><br />
<samp><nowiki>======Level 6======</nowiki></samp>
{| width="60%" bgcolor="white" align="center" style="border:2px dashed lightblue"
|Do not use level 1 headings; they are equivalent to the page title
|}
|
|
==Level 1==
==Level 2==
===Level 2===
===Level 3===
====Level 3====
====Level 4====
=====Level 4=====
=====Level 5=====
======Level 6======
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|colspan="3" style="border-top:1px solid #cee0f2;"|
Line 108: Line 123:
|Bullet list
|Bullet list
|
|
<samp>&#42; one</samp><br />
<pre>
<samp>&#42; two</samp><br />
* Start each line
<samp>&#42;&#42; two point one</samp><br />
* with an asterisk (*).
<samp>&#42; three</samp>
** More asterisks give deeper
*** and deeper levels.
* Line breaks <br />don't break levels.
*** But jumping levels creates empty space.
Any other start to the line ends the list.
 
* combine bullet list
** with definition
::- definition
** creates empty space
 
* combine bullet list
** with definition
*:- definition
** without empty spaces
 
*bullet list
:- definition
:* sublist that doesn't create empty
:* spaces after definition
</pre>
|
|
* one
* Start each line
* two
* with an asterisk (*).
** two point one
** More asterisks give deeper
* three
*** and deeper levels.
* Line breaks <br />don't break levels.
*** But jumping levels creates empty space.
Any other start to the line ends the list.
 
* combine bullet list
** with definition
::- definition
** creates empty space
 
* combine bullet list
** with definition
*:- definition
** without empty spaces
 
*bullet list
:- definition
:* sublist that doesn't create empty
:* spaces after definition
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|colspan="3" style="border-top:1px solid #cee0f2;"|
Line 122: Line 175:
|Numbered list
|Numbered list
|
|
<samp>&#35; one</samp><br />
<pre>
<samp>&#35; two</samp><br />
# Start each line
<samp>&#35;&#35; two point one</samp><br />
# with a number sign (#).
<samp>&#35; three</samp>
## More number signs give deeper
### and deeper
### levels.
# Line breaks <br />don't break levels.
### But jumping levels creates empty space.
# Blank lines
 
# end the list and start another.
Any other start also
ends the list.
 
&lt;nowiki&gt;#&lt;/nowiki&gt; use "nowiki" tags to display a literal (#) at the beginning of a line without interpreting it as a numbered list.
</pre>
|
|
# one
# Start each line
# two
# with a number sign (#).
## two point one
## More number signs give deeper
# three
### and deeper
### levels.
# Line breaks <br />don't break levels.
### But jumping levels creates empty space.
# Blank lines
 
# end the list and start another.
Any other start also
ends the list.
 
<nowiki>#</nowiki> use "nowiki" tags to display a literal (#) at the beginning of a line without interpreting it as a numbered list.
|-
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|colspan="3" style="border-top:1px solid #cee0f2;"|
Line 150: Line 225:
| Definition list
| Definition list
|
|
<samp>&#59;Definition</samp><br />
<pre>;Definition 1
<samp>&#58;item 1</samp><br />
:item 1-1
<samp>&#58;item 2</samp>
:item 1-2
;Definition 2
: item 2-1
: item 2-2</pre>
|
;Definition 1
:item 1-1
:item 1-2
;Definition 2
: item 2-1
: item 2-2
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
| Mixture of different types of list
|
|
;Definition
<pre>
:item 1
# one
:item 2
# two
#* two point one
#* two point two
# three
#; three item one
#: three def one
# four
#: four def one
#: this looks like a continuation
#: and is often used
#: instead <br /> of <nowiki><br /></nowiki>
# five
## five sub 1
### five sub 1 sub 1
## five sub 2
</pre>
|
# one
# two
#* two point one
#* two point two
# three
#; three item one
#: three def one
# four
#: four def one
#: this looks like a continuation
#: and is often used
#: instead <br /> of <nowiki><br /></nowiki>
# five
## five sub 1
### five sub 1 sub 1
## five sub 2
|}
|}
</div>
</div>
Line 163: Line 284:


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>.   
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>.   
== Blockquotes ==
Blockquotes are done through the template [[Template:Quote]].
* Don't forget to put closing double brackets <code>}}</code> at the end of the quote.
* When using this template, you'll need to manually create two blank lines between paragraphs or they'll get smooshed together.
'''Typing this:'''
<pre>{{Quote|Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vel turpis nunc eget lorem dolor sed viverra ipsum. Mauris in aliquam sem fringilla ut morbi. Varius sit amet mattis vulputate. Sem viverra aliquet eget sit amet tellus cras adipiscing. Arcu non sodales neque sodales. Leo integer malesuada nunc vel risus commodo. Sollicitudin aliquam ultrices sagittis orci a scelerisque purus semper. Euismod in pellentesque massa placerat duis ultricies lacus sed. Fames ac turpis egestas maecenas pharetra convallis posuere morbi. Pellentesque diam volutpat commodo sed egestas egestas fringilla phasellus faucibus. Nunc pulvinar sapien et ligula ullamcorper malesuada proin. Lorem donec massa sapien faucibus et. Eu turpis egestas pretium aenean.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vel turpis nunc eget lorem dolor sed viverra ipsum. Mauris in aliquam sem fringilla ut morbi. Varius sit amet mattis vulputate. Sem viverra aliquet eget sit amet tellus cras adipiscing.}}</pre>
'''Results in:'''
{{Quote|Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vel turpis nunc eget lorem dolor sed viverra ipsum. Mauris in aliquam sem fringilla ut morbi. Varius sit amet mattis vulputate. Sem viverra aliquet eget sit amet tellus cras adipiscing. Arcu non sodales neque sodales. Leo integer malesuada nunc vel risus commodo. Sollicitudin aliquam ultrices sagittis orci a scelerisque purus semper. Euismod in pellentesque massa placerat duis ultricies lacus sed. Fames ac turpis egestas maecenas pharetra convallis posuere morbi. Pellentesque diam volutpat commodo sed egestas egestas fringilla phasellus faucibus. Nunc pulvinar sapien et ligula ullamcorper malesuada proin. Lorem donec massa sapien faucibus et. Eu turpis egestas pretium aenean.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vel turpis nunc eget lorem dolor sed viverra ipsum. Mauris in aliquam sem fringilla ut morbi. Varius sit amet mattis vulputate. Sem viverra aliquet eget sit amet tellus cras adipiscing.}}


== HTML ==
== HTML ==

Revision as of 03:49, February 24, 2022

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 and timestamp your posts
on talk pages

~~~~

Username 07:24,
29 April 2024 (UTC)

Sign your posts
(no timestamp

~~~

Username

Applies only at the beginning of the line
Headings

of different sizes

Headings need to be on their own line

==level 2==
===level 3===
====level 4====
=====level 5=====
======Level 6======

Do not use level 1 headings; they are equivalent to the page title

Level 2

Level 3

Level 4

Level 5
Level 6
Bullet list
* Start each line
* with an asterisk (*).
** More asterisks give deeper
*** and deeper levels.
* Line breaks <br />don't break levels.
*** But jumping levels creates empty space.
Any other start to the line ends the list.

* combine bullet list
** with definition 
::- definition
** creates empty space

* combine bullet list
** with definition 
*:- definition
** without empty spaces

*bullet list
:- definition
:* sublist that doesn't create empty
:* spaces after definition
  • Start each line
  • with an asterisk (*).
    • More asterisks give deeper
      • and deeper levels.
  • Line breaks
    don't break levels.
      • But jumping levels creates empty space.

Any other start to the line ends the list.

  • combine bullet list
    • with definition
- definition
    • creates empty space
  • combine bullet list
    • with definition
    - definition
    • without empty spaces
  • bullet list
- definition
  • sublist that doesn't create empty
  • spaces after definition
Numbered list
# Start each line
# with a number sign (#).
## More number signs give deeper
### and deeper
### levels.
# Line breaks <br />don't break levels.
### But jumping levels creates empty space.
# Blank lines

# end the list and start another.
Any other start also
ends the list.

<nowiki>#</nowiki> use "nowiki" tags to display a literal (#) at the beginning of a line without interpreting it as a numbered list.
  1. Start each line
  2. with a number sign (#).
    1. More number signs give deeper
      1. and deeper
      2. levels.
  3. Line breaks
    don't break levels.
      1. But jumping levels creates empty space.
  4. Blank lines
  1. end the list and start another.

Any other start also ends the list.

# use "nowiki" tags to display a literal (#) at the beginning of a line without interpreting it as a numbered list.

Indented Text

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

no indents

one indent
two indents
three indents
Definition list
;Definition 1
:item 1-1
:item 1-2
;Definition 2
: item 2-1
: item 2-2
Definition 1
item 1-1
item 1-2
Definition 2
item 2-1
item 2-2
Mixture of different types of list
# one
# two
#* two point one
#* two point two
# three
#; three item one
#: three def one
# four
#: four def one
#: this looks like a continuation
#: and is often used
#: instead <br /> of <br />
# five
## five sub 1
### five sub 1 sub 1
## five sub 2
  1. one
  2. two
    • two point one
    • two point two
  3. three
    three item one
    three def one
  4. four
    four def one
    this looks like a continuation
    and is often used
    instead
    of <br />
  5. five
    1. five sub 1
      1. five sub 1 sub 1
    2. five sub 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 />.

Blockquotes

Blockquotes are done through the template Template:Quote.

  • Don't forget to put closing double brackets }} at the end of the quote.
  • When using this template, you'll need to manually create two blank lines between paragraphs or they'll get smooshed together.

Typing this:

{{Quote|Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vel turpis nunc eget lorem dolor sed viverra ipsum. Mauris in aliquam sem fringilla ut morbi. Varius sit amet mattis vulputate. Sem viverra aliquet eget sit amet tellus cras adipiscing. Arcu non sodales neque sodales. Leo integer malesuada nunc vel risus commodo. Sollicitudin aliquam ultrices sagittis orci a scelerisque purus semper. Euismod in pellentesque massa placerat duis ultricies lacus sed. Fames ac turpis egestas maecenas pharetra convallis posuere morbi. Pellentesque diam volutpat commodo sed egestas egestas fringilla phasellus faucibus. Nunc pulvinar sapien et ligula ullamcorper malesuada proin. Lorem donec massa sapien faucibus et. Eu turpis egestas pretium aenean.


Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vel turpis nunc eget lorem dolor sed viverra ipsum. Mauris in aliquam sem fringilla ut morbi. Varius sit amet mattis vulputate. Sem viverra aliquet eget sit amet tellus cras adipiscing.}}

Results in:

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vel turpis nunc eget lorem dolor sed viverra ipsum. Mauris in aliquam sem fringilla ut morbi. Varius sit amet mattis vulputate. Sem viverra aliquet eget sit amet tellus cras adipiscing. Arcu non sodales neque sodales. Leo integer malesuada nunc vel risus commodo. Sollicitudin aliquam ultrices sagittis orci a scelerisque purus semper. Euismod in pellentesque massa placerat duis ultricies lacus sed. Fames ac turpis egestas maecenas pharetra convallis posuere morbi. Pellentesque diam volutpat commodo sed egestas egestas fringilla phasellus faucibus. Nunc pulvinar sapien et ligula ullamcorper malesuada proin. Lorem donec massa sapien faucibus et. Eu turpis egestas pretium aenean.


Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vel turpis nunc eget lorem dolor sed viverra ipsum. Mauris in aliquam sem fringilla ut morbi. Varius sit amet mattis vulputate. Sem viverra aliquet eget sit amet tellus cras adipiscing.

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