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:Main: Difference between revisions

Template page
Created page with "{{#css:Main/styles.css}}<div class="main-article-hatnote" role="navigation">{{#if:{{{3|}}}|Main articles: [[{{{1}}}{{#if:{{{1label|}}}|{{!}}{{{1label}}}}}]], [[{{{2}}}{{#if:{{{2label|}}}|{{!}}{{{2label}}}}}]] and [[{{{3}}}{{#if:{{{3label|}}}|{{!}}{{{3label}}}}}]]|{{#if:{{{2|}}}|Main articles: [[{{{1}}}{{#if:{{{1label|}}}|{{!}}{{{1label}}}}}]] and [[{{{2}}}{{#if:{{{2label|}}}|{{!}}{{{2label}}}}}]]|Main article: [[{{{1}}}{{#if:{{{1label|}}}|{{!}}{{{1label}}}}}]]}}}}</div><..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#css:Main/styles.css}}<div class="main-article-hatnote" role="navigation">{{#if:{{{3|}}}|Main articles: [[{{{1}}}{{#if:{{{1label|}}}|{{!}}{{{1label}}}}}]], [[{{{2}}}{{#if:{{{2label|}}}|{{!}}{{{2label}}}}}]] and [[{{{3}}}{{#if:{{{3label|}}}|{{!}}{{{3label}}}}}]]|{{#if:{{{2|}}}|Main articles: [[{{{1}}}{{#if:{{{1label|}}}|{{!}}{{{1label}}}}}]] and [[{{{2}}}{{#if:{{{2label|}}}|{{!}}{{{2label}}}}}]]|Main article: [[{{{1}}}{{#if:{{{1label|}}}|{{!}}{{{1label}}}}}]]}}}}</div><noinclude>
<templatestyles src="Main/styles.css"/><div class="main-article-hatnote" role="navigation">{{#if:{{{3|}}}|Main articles: [[{{{1}}}{{#if:{{{1label|}}}|{{!}}{{{1label}}}}}]], [[{{{2}}}{{#if:{{{2label|}}}|{{!}}{{{2label}}}}}]] and [[{{{3}}}{{#if:{{{3label|}}}|{{!}}{{{3label}}}}}]]|{{#if:{{{2|}}}|Main articles: [[{{{1}}}{{#if:{{{1label|}}}|{{!}}{{{1label}}}}}]] and [[{{{2}}}{{#if:{{{2label|}}}|{{!}}{{{2label}}}}}]]|Main article: [[{{{1}}}{{#if:{{{1label|}}}|{{!}}{{{1label}}}}}]]}}}}</div><noinclude>
{{Documentation}}
{{Documentation}}
[[Category:Navigation templates]]
[[Category:Navigation templates]]
</noinclude>
</noinclude>

Latest revision as of 19:42, 2 April 2026

This is a documentation subpage for Main. 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