<span class="latin" style="width:19px;height:19px;">T</span><span class="latin" style="width:19px;height:19px;">e</span><span class="latin" style="width:19px;height:19px;">m</span><span class="latin" style="width:19px;height:19px;">p</span><span class="latin" style="width:19px;height:19px;">l</span><span class="latin" style="width:19px;height:19px;">a</span><span class="latin" style="width:19px;height:19px;">t</span><span class="latin" style="width:19px;height:19px;">e</span><span class="latin" style="width:19px;height:19px;">:</span><span class="latin" style="width:19px;height:19px;">N</span><span class="latin" style="width:19px;height:19px;">a</span><span class="latin" style="width:19px;height:19px;">v</span><span class="latin" style="width:19px;height:19px;">i</span><span class="latin" style="width:19px;height:19px;">g</span><span class="latin" style="width:19px;height:19px;">a</span><span class="latin" style="width:19px;height:19px;">t</span><span class="latin" style="width:19px;height:19px;">i</span><span class="latin" style="width:19px;height:19px;">o</span><span class="latin" style="width:19px;height:19px;">n</span><span class="latin" style="display:block;width:19px;height:19px;"> </span><span class="latin" style="width:19px;height:19px;">m</span><span class="latin" style="width:19px;height:19px;">e</span><span class="latin" style="width:19px;height:19px;">n</span><span class="latin" style="width:19px;height:19px;">u</span><span class="latin" style="display:block;width:19px;height:19px;"> </span><span class="latin" style="width:19px;height:19px;">-</span><span class="latin" style="display:block;width:19px;height:19px;"> </span><span class="latin" style="width:19px;height:19px;">L</span><span class="latin" style="width:19px;height:19px;">i</span><span class="latin" style="width:19px;height:19px;">b</span><span class="latin" style="width:19px;height:19px;">r</span></span><span class="tktr-gyo" style="height:640px;margin:0 0 180px 22px;font-size:19px;_width:19px;/width:19px;"><span class="latin" style="width:19px;height:19px;">e</span><span class="latin" style="width:19px;height:19px;">P</span><span class="latin" style="width:19px;height:19px;">l</span><span class="latin" style="width:19px;height:19px;">a</span><span class="latin" style="width:19px;height:19px;">n</span><span class="latin" style="width:19px;height:19px;">e</span><span class="latin" style="width:19px;height:19px;">t</span>  

Navigation menu




LibrePlanet


About 
About LibrePlanet
Mission Statement
Founding documents
Support this Community
Code of Conduct
Anti-harassment policy
Teams 
Activists
Wiki Helpers
LibrePlanet Artists
FSF Community Team
Local & Student Teams
Conferences 
LibrePlanet Conference
Non-official
Get involved 
Participate
Discussion channels
Events
 


Login
 










Template: Navigation menu

 

From LibrePlanet


Jump to: navigation, search  

This is the Template:Tl meta-template.

It helps other templates detect if they are on a "Template:" page or some "other" type of page.

Contents

Usage

This template usually takes two parameters, like this:

{{template other | Template page text | Other pages text }}

If the template is on a "Template:" page, it will return this:

Template loop detected: Template:Template other

If the template is on any other page, it will return this:

Template loop detected: Template:Template other

A typical usage case could be to make it so that a template only adds a category when not on a template page. Thus not adding the template itself and other templates that are built with it to the category. Like this:

{{template other | | [[Category:Some maintenance category]] }}

Note that in the example above the "template" parameter was left empty.

Demospace

For testing and demonstration purposes this template can take a parameter named demospace.

Like this:

{{template other 
| Template page text 
| Other pages text 
| demospace = template
}}

No matter on what kind of page the code above is used it will return this:

Template loop detected: Template:Template other

You can make it so your template also understands the demospace parameter. That means you can demonstrate the different appearances of your template in the documentation for your template. Then do like this:

{{template other 
| Template page text 
| Other pages text 
| demospace = {{{demospace|}}}
}}

Technical details

This template detects "Template talk:" pages as type other.

This template works like Template:Tl, for more examples and technical details see full documentation there.

See also

Template:Namespace detect see also

50px Template documentation

Documentation

This template is used to create menus like:

These menus are easy to use and to create as well.

Code example

{{Navigation menu
| state    =
| header   =
| contents =
}}

There are 3 parameters:

  1. state: required, copy the header in a new parameter. This parameter can be given the value "uncollapsed" in the page menus, and is set to "collapsed" by default.
  2. header: required, it is the sub-menu header
  3. contents: required, it is the sub-menu contents

Retrieved from "https://libreplanet.org/wiki?title=Template:Navigation_menu&oldid=29698" 

Categories: 
Pages with template loops
Pages with broken file links
Namespace manipulation templates
Template namespace templates
Accessibility templates
Maintenance navigation
Collapse templates



















FSF
The Free Software Foundation (FSF) is a nonprofit with a worldwide mission to promote computer user freedom.

We defend the rights of all software users. (Read more)
 



Campaigns


High Priority Free Software Projects

Free JavaScript

Secure Boot vs Restricted Boot

GNU Operating System

Defective by Design

See all campaigns
 



Get Involved



Contact
 




Send your feedback on our translations and new translations of pages to campaigns@fsf.org.

Copyright © 20132023 Free Software Foundation, Inc.  Privacy Policy, JavaScript license information