Template:Documentation: Difference between revisions
Template page
More actions
Eloise Zomia (talk | contribs) Created page with "{{Documentation subpage}} == Usage == <code><nowiki>{{Reflist}}</nowiki></code> This template formats the reference list at the bottom of articles. It provides consistent styling and optional multi-column layouts for pages with many references. == Parameters == {| class="wikitable" |- ! Parameter !! Description !! Default |- | <code>colwidth</code> || Column width in em units. References will flow into multiple columns on wide screens. Use <code>full</code> to force si..." |
Eloise Zomia (talk | contribs) No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
== Usage == | == Usage == | ||
Place below a section heading to link to the main article for that topic. | |||
== | === Single article === | ||
<pre> | <pre> | ||
{{main|Cannabis Taxonomy}} | |||
{{ | |||
</pre> | </pre> | ||
Renders: ''Main article: [[Cannabis Taxonomy]]'' | |||
=== | === Two articles === | ||
<pre> | <pre> | ||
{{main|Dioecy|Pollination biology}} | |||
{{ | |||
</pre> | </pre> | ||
Renders: ''Main articles: [[Dioecy]] and [[Pollination biology]]'' | |||
=== | === Three articles === | ||
<pre> | <pre> | ||
{{main|Cannabis sativa|Cannabis ruderalis|Cannabaceae}} | |||
{{ | </pre> | ||
Renders: ''Main articles: [[Cannabis sativa]], [[Cannabis ruderalis]] and [[Cannabaceae]]'' | |||
== | === Custom display text === | ||
Use label parameters to override the displayed link text (e.g. for italicised binomials): | |||
<pre> | <pre> | ||
{{main|Cannabis sativa|1label=''Cannabis sativa''}} | |||
{{ | |||
}} | |||
</pre> | </pre> | ||
Renders: ''Main article: [[Cannabis sativa|''Cannabis sativa'']]'' | |||
== Parameters == | |||
{| class="wikitable" | |||
! Parameter !! Description | |||
|- | |||
| <code>1</code> || First page name (required) | |||
|- | |||
| <code>2</code> || Second page name (optional) | |||
|- | |||
| <code>3</code> || Third page name (optional) | |||
|- | |||
| <code>1label</code> || Display text for first link (optional) | |||
|- | |||
| <code>2label</code> || Display text for second link (optional) | |||
|- | |||
| <code>3label</code> || Display text for third link (optional) | |||
|} | |||
== Styling == | == Styling == | ||
Styled via [[Template:Main/styles.css]] (content model: Sanitised CSS). Uses the <code>.main-article-hatnote</code> class. | |||
== See also == | == See also == | ||
* [[Template:Botany series]] | |||
[[ | * [[Template:Citation needed]] | ||
[[Category: | |||
[[Category:Navigation templates]] | |||
Revision as of 19:44, 2 April 2026
This is a documentation subpage for Documentation. It contains usage information, categories, and other content that is not part of the original template.
Usage
Place below a section heading to link to the main article for that topic.
Single article
{{main|Cannabis Taxonomy}}
Renders: Main article: Cannabis Taxonomy
Two articles
{{main|Dioecy|Pollination biology}}
Renders: Main articles: Dioecy and Pollination biology
Three articles
{{main|Cannabis sativa|Cannabis ruderalis|Cannabaceae}}
Renders: Main articles: Cannabis sativa, Cannabis ruderalis and Cannabaceae
Custom display text
Use label parameters to override the displayed link text (e.g. for italicised binomials):
{{main|Cannabis sativa|1label=''Cannabis sativa''}}
Renders: Main article: Cannabis sativa
Parameters
| Parameter | Description |
|---|---|
1 |
First page name (required) |
2 |
Second page name (optional) |
3 |
Third page name (optional) |
1label |
Display text for first link (optional) |
2label |
Display text for second link (optional) |
3label |
Display text for third link (optional) |
Styling
Styled via Template:Main/styles.css (content model: Sanitised CSS). Uses the .main-article-hatnote class.