Toggle menu
649
119
74
7K
Landrace.Wiki - The Landrace Cannabis Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Documentation: Difference between revisions

Template page
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..."
 
No edit summary
Tag: Reverted
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
== Usage ==
== 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.
Place below a section heading to link to the main article for that topic.


== Parameters ==
=== Single article ===
{| 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 single column. || ''(none - single column)''
|-
| <code>group</code> || Reference group name (for {{tag|ref|params=group="name"}}) || ''(none)''
|-
| <code>refs</code> || Defined references (for list-defined references) || ''(none)''
|}
 
== Examples ==
 
=== Basic usage ===
<pre>
<pre>
== References ==
{{main|Cannabis Taxonomy}}
{{Reflist}}
</pre>
</pre>
Renders: ''Main article: [[Cannabis Taxonomy]]''


=== Multi-column (recommended for 10+ references) ===
=== Two articles ===
<pre>
<pre>
== References ==
{{main|Dioecy|Pollination biology}}
{{Reflist|colwidth=30}}
</pre>
</pre>
Renders: ''Main articles: [[Dioecy]] and [[Pollination biology]]''


=== With reference group ===
=== Three articles ===
<pre>
<pre>
== Notes ==
{{main|Cannabis sativa|Cannabis ruderalis|Cannabaceae}}
{{Reflist|group=note}}
</pre>
Renders: ''Main articles: [[Cannabis sativa]], [[Cannabis ruderalis]] and [[Cannabaceae]]''


== References ==
=== Custom display text ===
{{Reflist}}
</pre>


=== List-defined references ===
Use label parameters to override the displayed link text (e.g. for italicised binomials):
<pre>
<pre>
== References ==
{{main|Cannabis sativa|1label=''Cannabis sativa''}}
{{Reflist|refs=
<ref name="smith2020">Smith, J. (2020). ''Cannabis Genetics''. Publisher.</ref>
<ref name="jones2019">Jones, A. (2019). ''Himalayan Landraces''. Publisher.</ref>
}}
</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 ==
The template uses <code>lw-reflist</code> CSS classes which:
 
* Match the landrace.wiki visual style (green accents)
Styled via [[Template:Main/styles.css]] (content model: Sanitised CSS). Uses the <code>.main-article-hatnote</code> class.
* Support dark mode via Citizen skin
* Collapse to single column on mobile devices
* Prevent orphaned reference entries when using columns


== See also ==
== See also ==
* [[Help:Footnotes]]
* [[Help:Cite]]


<includeonly>
* [[Template:Botany series]]
[[Category:Citation templates]]
* [[Template:Citation needed]]
[[Category:Formatting templates]]
 
</includeonly>
[[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.

See also