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
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Documentation subpage}}
<templatestyles src="Documentation/styles.css"/><div class="lw-documentation">
== Usage ==
<div class="lw-documentation-header">
 
'''Documentation'''
Place below a section heading to link to the main article for that topic.
<span class="lw-documentation-links">[{{fullurl:{{FULLPAGENAME}}/doc|action=edit}} edit] · [{{fullurl:{{FULLPAGENAME}}/doc}} view] · [{{fullurl:{{FULLPAGENAME}}|action=purge}} purge]</span>
 
</div>
=== Single article ===
<div class="lw-documentation-body">
<pre>
{{{{FULLPAGENAME}}/doc}}
{{main|Cannabis Taxonomy}}
</div>
</pre>
</div><noinclude>
Renders: ''Main article: [[Cannabis Taxonomy]]''
This template transcludes the <code>/doc</code> subpage of any template that calls it.
 
=== Two articles ===
To document a template, create its <code>/doc</code> subpage (e.g. [[Template:Main/doc]]) and place <code><nowiki>{{Documentation subpage}}</nowiki></code> at the top.
<pre>
{{main|Dioecy|Pollination biology}}
[[Category:Documentation templates]]
</pre>
</noinclude>
Renders: ''Main articles: [[Dioecy]] and [[Pollination biology]]''
 
=== Three articles ===
<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>
{{main|Cannabis sativa|1label=''Cannabis sativa''}}
</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 ==
 
Styled via [[Template:Main/styles.css]] (content model: Sanitised CSS). Uses the <code>.main-article-hatnote</code> class.
 
== See also ==
 
* [[Template:Botany series]]
* [[Template:Citation needed]]
 
[[Category:Navigation templates]]

Latest revision as of 19:49, 2 April 2026

This template transcludes the /doc subpage of any template that calls it.

To document a template, create its /doc subpage (e.g. Template:Main/doc) and place {{Documentation subpage}} at the top.