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
No edit summary
Tag: Reverted
Undo revision 7523 by Eloise Zomia (talk)
Tag: Undo
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
== Usage ==
== Usage ==
<code><nowiki>{{Reflist}}</nowiki></code>


Place below a section heading to link to the main article for that topic.
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.


=== Single article ===
== 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 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>
{{main|Cannabis Taxonomy}}
== References ==
{{Reflist}}
</pre>
</pre>
Renders: ''Main article: [[Cannabis Taxonomy]]''


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


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


=== Custom display text ===
=== List-defined references ===
 
Use label parameters to override the displayed link text (e.g. for italicised binomials):
<pre>
<pre>
{{main|Cannabis sativa|1label=''Cannabis sativa''}}
== References ==
{{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:
Styled via [[Template:Main/styles.css]] (content model: Sanitised CSS). Uses the <code>.main-article-hatnote</code> class.
* Match the landrace.wiki visual style (green accents)
* 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]]


* [[Template:Botany series]]
<includeonly>
* [[Template:Citation needed]]
[[Category:Citation templates]]
 
[[Category:Formatting templates]]
[[Category:Navigation templates]]
</includeonly>

Revision as of 19:47, 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

{{Reflist}}

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

Parameter Description Default
colwidth Column width in em units. References will flow into multiple columns on wide screens. Use full to force single column. (none - single column)
group Reference group name (for <refgroup="name">) (none)
refs Defined references (for list-defined references) (none)

Examples

Basic usage

== References ==
{{Reflist}}

Multi-column (recommended for 10+ references)

== References ==
{{Reflist|colwidth=30}}

With reference group

== Notes ==
{{Reflist|group=note}}

== References ==
{{Reflist}}

List-defined references

== References ==
{{Reflist|refs=
<ref name="smith2020">Smith, J. (2020). ''Cannabis Genetics''. Publisher.</ref>
<ref name="jones2019">Jones, A. (2019). ''Himalayan Landraces''. Publisher.</ref>
}}

Styling

The template uses lw-reflist CSS classes which:

  • Match the landrace.wiki visual style (green accents)
  • Support dark mode via Citizen skin
  • Collapse to single column on mobile devices
  • Prevent orphaned reference entries when using columns

See also