Template:IRL header library: Difference between revisions

From Indian River Lagoon Project
(Created page with "<!-- This page is transcluded to other library pages. Changes here will effect those pages. --> <onlyinclude> <big>''The {{SITENAME}} is your source for useful educational inf...")
 
mNo edit summary
 
(36 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- This page is transcluded to other library pages. Changes here will effect those pages. -->
<onlyinclude><div class="irlheader noprint">
<onlyinclude>
{{#switch: {{NAMESPACE}}
<big>''The {{SITENAME}} is your source for useful educational information available online.''</big>
| Glossary = {{#switch: {{{abb}}}
[[Image:Book_shelf_1r.jpg|480px|thumb|right|{{SITENAME}} {{PAGENAME}}|link= ]]
    | yes = <div class="irlheaderright"><div class="irlheaderformbutton">[[Form:Abbreviation|Add ABB]]</div><br /><div class="irlheaderimageright">[[File:IRLN_Dictionary_logo.png|64px|alt=Indian River Lagoon Abbreviations|Abbreviations|link=Abbreviations]]</div></div>
{{W3toc}}
    | #default = <div class="irlheaderright"><div class="irlheaderformbutton">[[Form:Definition|Add Term]]</div><br /><div class="irlheaderimageright">[[File:IRLN_Glossary_logo.png|64px|alt=Indian River Lagoon Glossary|IRL Glossary|link=Glossary]]</div></div>
</onlyinclude>
  }}
| #default = {{#switch: {{{cat}}}
    | Dictionary = <div class="irlheaderright"><div class="irlheaderimageright">[[File:IRLN_Dictionary_logo.png|64px|alt=Indian River Lagoon Dictionary|IRL Dictionary|link=:Category:Dictionary]]</div></div>
    | #default = <div class="irlheaderright"><div class="irlheaderimageright"> [[File:IRLN_Library_logo.png|64px|alt=Indian River Lagoon Library|IRL Library|link=:Category:Library]]</div></div>
  }}
}}
<div class="irlheadertitle">[[Main Page|Indian River Lagoon]] - [[:Category: {{{cat|Library|}}}|{{{cat|Library|}}}]]{{#ifeq:{{NAMESPACE}}||{{Template:Meta_Tag_Link}} }}</div>
<div class="irlheadertext">{{#categorytree:{{{cat|Library}}}|mode=pages|depth={{{depth|0}}}|namespaces=Category Main {{NAMESPACE}} }}</div>
{{#ifeq:{{{toc|}}}|no|__NOTOC__|{{W3toc}}}}</div></onlyinclude>
<noinclude>
This is the Library header template.
 
Call it like this:
 
<nowiki>{{IRL header_library| cat=Library | toc=yes | depth=0 }}</nowiki>
 
It has several named variables to customize its display.
* cat=Categoryname > Sets the category for the menu and the icon image link. There are preset images and Form Link buttons for Dictionary, Abbreviation, and Glossary categories. Omit/empty will default to the Library category.
* toc=no > Table of Contents switch. Omit for yes.
* depth=1 > Expand Depth of the category tree menu. Omit for 0 (collapsed).
* abb=yes > Used in the Abbreviation Template to set Abbreviation header options.
</noinclude>

Latest revision as of 08:26, February 1, 2022

Indian River Lagoon Library
Table of Contents

This is the Library header template.

Call it like this:

{{IRL header_library| cat=Library | toc=yes | depth=0 }}

It has several named variables to customize its display.

  • cat=Categoryname > Sets the category for the menu and the icon image link. There are preset images and Form Link buttons for Dictionary, Abbreviation, and Glossary categories. Omit/empty will default to the Library category.
  • toc=no > Table of Contents switch. Omit for yes.
  • depth=1 > Expand Depth of the category tree menu. Omit for 0 (collapsed).
  • abb=yes > Used in the Abbreviation Template to set Abbreviation header options.