User:Permstrump/Tutorials

List and table templates
H:TABLE - H:LIST - H:COL

Category:List formatting and function templates

Glossary templates
Template:Defn/doc

Example: aspirin: A mild analgesic of the non-steroidal anti-inflammatory drug (NSAID) family... heroin: diacetylmorphine: diamorpine: A synthetic narcotic drug of the opiate family... ranitidine: An antacid of the proton pump inhibitor family... Result

Basic usage:

Linking to the term:

automatically creates anchors from the original term (term or 1) or id value, as entered, an all-lower-case version. About 90% of the links to glossary entries are going to be mid-sentence, and will expect to start with a lower-case letter, except for proper names. If your glossary has a case where one entry and another share the same name except for case, the second one must be given a unique id:

Lists
Template:Pagelist

This template is mostly useful from within other templates that accept a variable number of page names as arguments. For example, the page arguments –  can be passed to this template using. Any parameters not specified to the original template will be passed as empty parameters and not listed by the pagelist template.

Examples:

flatlist

This template can be used with or without endflatlist. For navigation boxes using navbox, one can set hlist, and achieve the same styling without using this template. For image captions, list (i.e. asterisk) markup does not work, so consider using hlist instead.

Basic
 * Syntax:

cat

dog

horse

cow

sheep

pig


 * Examples:

cat

dog

horse

cow

sheep

pig

Numbered lists
 * Syntax:


 * 1) first
 * 2) second
 * 3) third
 * 4) fourth
 * 5) fifth
 * 6) sixth


 * Examples:


 * 1) first
 * 2) second
 * 3) third
 * 4) fourth
 * 5) fifth
 * 6) sixth

Template:Hlist

Template:Unbulleted list and Template:Bulleted list


 * Bulleted

• item1

• item2

• ... • item1

• item2

• ...

first item
 * Unbulleted

second item

third item

...

first item
 * Syntax

second item

third item

...

...

Template may be used with  and  to control line-breaking in bulletless lists, to prevent wrapped long entries from being confused with multiple entries. See Template:Wbr/doc for details.
 * Controlling line-breaking


 * Example


 * Tree list


 * Types


 * Tree list
 * Tree list/end
 * Tree list/final branch
 * Tree list/branching
 * Tree list/final branching


 * Syntax - Branches
 * 1st level branch
 * 2nd level branch
 * 3rd level branch
 * Another second level branch
 * The final second level branch

Tree list/branching and Tree list/final branching
 * Unlabeled branches


 * Examples


 * [[Image:Simple gold crown.svg|15px]] (1) Henry VII (1457 - 1509)
 * Arthur, Prince of Wales (1486 - 1502)
 * Margaret, Queen of Scots (1489 - 1541)
 * James, Duke of Rothesay (1507 - 1508)
 * Arthur, Duke of Rothesay (1509 - 1510)
 * [[Image:Simple silver crown.svg|15px]] James V of Scotland (1512 - 1542)
 * [[Image:Simple silver crown.svg|15px]] Mary, Queen of Scots (1542 - 1587)
 * [[Image:Simple silver crown.svg|15px]] [[Image:Simple gold crown.svg|15px]] (7) James VI of Scotland and I of England (1566 - 1625)
 * From whom succeeeding English, Scottish and British monarchs are decended.
 * Alexander Stewart, Duke of Ross (1514 - 1515)
 * Margaret Douglas, Countess of Lennox (1515 - 1578)
 * [[Image:Simple gold crown.svg|15px]] (2) Henry VIII of England (1491 - 1547)
 * Henry, Duke of Cornwall (1511 - 1511)
 * [[Image:Simple gold crown.svg|15px]] (5) Mary I of England (1516 - 1558)
 * [[Image:Simple gold crown.svg|15px]] (6) Elizabeth I of England (1533 - 1603)
 * [[Image:Simple gold crown.svg|15px]] (3) Edward VI of England
 * Elizabeth Tudor (1492 - 1495)
 * Mary, Queen of France (1496 - 1533)
 * Henry Brandon (1516 - 1522)
 * Frances Grey, Duchess of Suffolk (1517 - 1547)
 * [[Image:Simple gold crown.svg|15px]] (4) Lady Jane Grey (1536 - 1553)
 * Catherine Seymour, Countess of Hertford (1540 - 1568)
 * Lady Mary Keyes (1545 - 1578)
 * Elizabeth Stokes (1555 - 1556)
 * Eleanor Clifford, Countess of Cumberland (1519 - 1547)
 * From whom are descended the Earls of Derby
 * Henry Brandon, 1st Earl of Lincoln (1523 - 1534)
 * Edmund Tudor, Duke of Somerset (1499 - 1500)
 * Katherine Tudor (1503 - 1503)


 * [[Image:Simple gold crown.svg|15px]] (1) Henry VII (1457 - 1509)
 * Arthur, Prince of Wales (1486 - 1502)
 * Margaret, Queen of Scots (1489 - 1541)
 * James, Duke of Rothesay (1507 - 1508)
 * Arthur, Duke of Rothesay (1509 - 1510)
 * [[Image:Simple silver crown.svg|15px]] James V of Scotland (1512 - 1542)
 * [[Image:Simple silver crown.svg|15px]] Mary, Queen of Scots (1542 - 1587)
 * [[Image:Simple silver crown.svg|15px]] [[Image:Simple gold crown.svg|15px]] (7) James VI of Scotland and I of England (1566 - 1625)
 * From whom succeeeding English, Scottish and British monarchs are decended.
 * Alexander Stewart, Duke of Ross (1514 - 1515)
 * Margaret Douglas, Countess of Lennox (1515 - 1578)
 * [[Image:Simple gold crown.svg|15px]] (2) Henry VIII of England (1491 - 1547)
 * Henry, Duke of Cornwall (1511 - 1511)
 * [[Image:Simple gold crown.svg|15px]] (5) Mary I of England (1516 - 1558)
 * [[Image:Simple gold crown.svg|15px]] (6) Elizabeth I of England (1533 - 1603)
 * [[Image:Simple gold crown.svg|15px]] (3) Edward VI of England
 * Elizabeth Tudor (1492 - 1495)
 * Mary, Queen of France (1496 - 1533)
 * Henry Brandon (1516 - 1522)
 * Frances Grey, Duchess of Suffolk (1517 - 1547)
 * [[Image:Simple gold crown.svg|15px]] (4) Lady Jane Grey (1536 - 1553)
 * Catherine Seymour, Countess of Hertford (1540 - 1568)
 * Lady Mary Keyes (1545 - 1578)
 * Elizabeth Stokes (1555 - 1556)
 * Eleanor Clifford, Countess of Cumberland (1519 - 1547)
 * From whom are descended the Earls of Derby
 * Henry Brandon, 1st Earl of Lincoln (1523 - 1534)
 * Edmund Tudor, Duke of Somerset (1499 - 1500)
 * Katherine Tudor (1503 - 1503)


 * Tetrapoda
 * De nombreux groupes éteints dont comme les Eucritta
 * Lissamphibia dont les ancêtres des amphibiens actuels
 * De nombreux groupes éteints qui rappellent les amphibiens avec des caractéristiques reptiliennes plus ou moins prononcées comme les Eoherpetontidae, les Embolomeri, Tokosauridae, Chroniosuchidae, Gephyrostegidae, Solenodonsauridae, Seymouriamorpha, Westlothiana, Lepospondyli
 * Cotylosauria
 * Amniota, à l’origine tous « reptiliens »
 * D’autres taxons frères éteint comme les Diadectomorpha ou les Tseajaiidae assez proche des reptiles
 * Amniota, à l’origine tous « reptiliens »
 * D’autres taxons frères éteint comme les Diadectomorpha ou les Tseajaiidae assez proche des reptiles


 * Tetrapoda
 * De nombreux groupes éteints dont comme les Eucritta
 * Lissamphibia dont les ancêtres des amphibiens actuels
 * De nombreux groupes éteints qui rappellent les amphibiens avec des caractéristiques reptiliennes plus ou moins prononcées comme les Eoherpetontidae, les Embolomeri, Tokosauridae, Chroniosuchidae, Gephyrostegidae, Solenodonsauridae, Seymouriamorpha, Westlothiana, Lepospondyli
 * Cotylosauria
 * Amniota, à l’origine tous « reptiliens »
 * D’autres taxons frères éteint comme les Diadectomorpha ou les Tseajaiidae assez proche des reptiles
 * Amniota, à l’origine tous « reptiliens »
 * D’autres taxons frères éteint comme les Diadectomorpha ou les Tseajaiidae assez proche des reptiles

Collapsible templates
cot

Syntax:

Template:Collapsible list

Syntax 

Parameters

Example (no fill, no border): ETOH --  [show] >>

Alcohol

Alcohol (beverage)

Alcoholism

Alcohol abuse

Alcohol dependence

Alcohol intoxication

Help:Collapsing

To make any table collapsible, add a special class

For example, the following table is defined with :

Initial state
 * autocollapse: table will be collapsed if there are more than 2 collapsible tables on the page,
 * collapsed: table will be initially collapsed.

Example:

Table width

Sortable collapsible table

Sortable table inside a collapsible table:

Syntax: {| style="width:40em" ! width=50% | initially expanded !! initially collapsed {| class="collapsible" !numbers
 * class="collapsible"||class="collapsible collapsed"
 * class="collapsible"||class="collapsible collapsed"

{|class="collapsible collapsed" !numbers
 * }


 * }
 * }

Table templates
WP:USEPROSE

Syntax:

Example:

Syntax: Example:

H:COL

Two columns
 * Syntax:


 * Produces:

Multiple columns
 * Syntax:


 * Produces:

br list

Usage:

Parameters:

{ "description": "Creates a delimited collection of items. Primarily for use in infoboxes, it only adds the tags where needed. ", "params": { "1": {   "label": "First item", "description": "First item, may be null", "type": "string", "required": false }, "2": {    "label": "Second item", "description": "Second item, many more items can be added", "type": "string", "required": false } }}

Help:Collapsing

To make any table collapsible, add a special class

For example, the following table is defined with :

Initial state
 * autocollapse: table will be collapsed if there are more than 2 collapsible tables on the page,
 * collapsed: table will be initially collapsed.

Example:

Table width

Sortable collapsible table

Sortable table inside a collapsible table:

Syntax: {| style="width:40em" ! width=50% | initially expanded !! initially collapsed {| class="collapsible" !numbers
 * class="collapsible"||class="collapsible collapsed"
 * class="collapsible"||class="collapsible collapsed"

{|class="collapsible collapsed" !numbers
 * }


 * }
 * }

Talkpage templates
WP:Signatures

Lists

 * WP:List of discussion templates
 * WP:Talk page templates
 * WP:Template messages
 * WP:Template messages
 * WP:Template messages
 * WP:Template namespace
 * WP:Citation templates
 * WP:Template messages
 * Category:Image with comment templates

Lists of lists
Category:Wikipedia templates
 * Category:Wikipedia templates by style
 * Category:List templates
 * Category:Wikipedia templates by task
 * Category:Wikipedia templates by topic