This site is supported by donations to The OEIS Foundation.

Template:Section title

From OeisWiki
Jump to: navigation, search

The {{section title}} template is used to numerically set the level of a section or subsection, level 0 being the page title and level 7 being normal text.

Level Code Result HTML Wikitext
0 {{section title||0}} <title> ... </title> Look at page title
1 {{section title||1}}

Level 1 section title

<h1> ... </h1> = ... =
2 {{section title||2}}

Level 2 section title

<h2> ... </h2> == ... ==
3 {{section title||3}}

Level 3 section title

<h3> ... </h3> === ... ===
4 {{section title||4}}

Level 4 section title

<h4> ... </h4> ==== ... ====
5 {{section title||5}}
Level 5 section title
<h5> ... </h5> ===== ... =====
6 {{section title||6}}
Level 6 section title
<h6> ... </h6> ====== ... ======
7 {{section title||7}}

Normal text (level 7) title

<p> ... </p> Normal text
Level Code Result HTML Wikitext
0 {{section title|section title/doc|0}} Page name in italic lowercase first. <title> ... </title> Look at page title
1 {{section title||1}}

One

<h1> ... </h1> = ... =
2 {{section title||2}}

Two

<h2> ... </h2> == ... ==
3 {{section title||3}}

Three

<h3> ... </h3> === ... ===
4 {{section title||4}}

Four

<h4> ... </h4> ==== ... ====
5 {{section title||5}}
Five
<h5> ... </h5> ===== ... =====
6 {{section title||6}}
Six
<h6> ... </h6> ====== ... ======
7 {{section title||7}}

Seven

<p> ... </p> Normal text

Main sections

The above via {{section title|Main sections|1}}.

Usage

{{Section title|Title|level}}

where

  • Title: section title (with 0 as level, Title must be equivalent to actual page title: see Template:Display title/doc#Usage);
  • level: section level (0 to 7, where level 0 is page title, levels 1 to 6 are section and subsections, and level 7 is normal text)

See also