To request editing rights on the Wiki, click here.

Help:Wiki University Wikitext--Nesting Lists

From FamilySearch Wiki
Jump to navigation Jump to search

Lessons


Intermediate


Advanced


Flexbox


Additional Helps

Nesting Lists[edit | edit source]

Nested List5.png

Many times you need to break down individual items in a list. If you had a list of fruits like this:

  • Apples
  • Pears
  • Cherries
  • Oranges

You might want to include some different varieties for each fruit mentioned. If you wanted to state the kinds of apples, for example: Granny Smith, Golden Delicious and Red Delicious, you would nest a list between apples and pears like so:

  • Apples
    • Granny Smith
    • Golden Delicious
    • Red Delicious
  • Pears
  • Cherries
  • Oranges

NOTICE each variety is on a separate line.
NOTICE each item on the nested lists is indented.

You can even nest lists inside of nested lists by using more asterisks.

Unordered Nested Lists[edit | edit source]

Put two asterisks for items in a nested list.

*Apples
**Granny Smith
**Golden Delicious
**Red Delicious
*Pears


Ordered Nested Lists[edit | edit source]

Put two pound signs for items in a nested list

#Apples
##Granny Smith
##Golden Delicious
##Red Delicious
#Pears

It will look like this:

  1. Apples
    1. Granny Smith
    2. Golden Delicious
    3. Red Delicious
  2. Pears
  3. Cherries
  4. Oranges

NOTICE the nested list is on separate lines.
NOTICE the nested list is indented.
NOTICE that the nested list is numbered instead of letters.

You can nest ordered lists inside of other ordered nested lists, but they will all have numbers instead of letters or roman numerals.

You cannot nest ordered lists inside unordered lists and vice versa.

Try these out[edit | edit source]

Tests.gif
Exercises
  • To practice nesting unordered lists, in your sandbox create a list with the following items: Fruits, Vegetables, Nuts and Grains. In between each item list three varieties.



Quick Quiz
  • If you were nesting a list of states in a list of countries, which list would you use?
A. Ordered List
B. Unordered List
  • If you were nesting a list of states by size in a list of countries by size, which lists would you use?
A. Ordered List
B. Unordered List