• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.55
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Drop down list

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here


Template documentation[view] [edit] [history] [purge]
Collapsible templates
Help:Collapsing
Guideline:Hidden content
Article namespace
  • {{collapse}}
  • {{collapsible list}}
    • {{collapse top}}
    • {{collapse bottom}}
  • {{hidden}}
    • {{hidden begin}}
    • {{hidden end}}
Infoboxes
  • {{collapsed infobox section begin}}
  • {{collapsed infobox section end}}
Navigation templates
  • {{sidebar with collapsible lists}}
  • {{navbox with collapsible groups}}
Talk namespace
  • {{hidden archive top}}
  • {{hidden archive bottom}}
  • v
  • t
  • e

Contents

  • 1 Usage
  • 2 Parameters
    • 2.1 Name
    • 2.2 Values
    • 2.3 Id

Usage

This template can be transcluded to display a Drop down list. This template had 3 parameters (described below). The Id parameter is very important if you are using 2 drop down lists on the same page.

Parameters

This template contains 9 parameters for different purposes:

Name

This is the name parameter that shall display the name of the list, defaults to 'Text'. To set the name parameter type {{Drop down list|Name=Name}} which will render as

Name   MediaWiki Vector skin action arrow.png

Lorem
borem
Lorem
Lorem
Lorem
Lorem
Lorem
Lorem


Examples:

{{Drop down list|Name=TW}} renders as

TW   MediaWiki Vector skin action arrow.png

Lorem
borem
Lorem
Lorem
Lorem
Lorem
Lorem
Lorem


{{Drop down list|Name=[[WP:TW|TW]]}} renders as

TW   MediaWiki Vector skin action arrow.png

Lorem
borem
Lorem
Lorem
Lorem
Lorem
Lorem
Lorem


Values

The list can hold up to 8 values i.e the text within the list. To add the values type {{Drop down list|Name=Name|Value1=Hello|Value2=Wikipedia|Value3=Blah!}} and so on until

Value8 .
The values support both Wikilinks and external links i.e you can also type {{Drop down list|Name=Name|Value1=[[Hello]]|Value2=[[Wikipedia|'pedia]]|Value3=[https://www.google.co.in/ Google]}} which will render as

Name   MediaWiki Vector skin action arrow.png

Hello
'pedia
Google






Id

If you are using more than one drop down list on the same page this parameter is very important. The Id parameter for each list should be different and unique (if using more than one on the same page). To set the ID type {{Drop down list|id=Your Id name}}

<div class="dropdown">
  <button class="dropbtn">Dropdown</button>
  <div class="dropdown-content">
    <a href="#">Link 1</a>
    <a href="#">Link 2</a>
    <a href="#">Link 3</a>
  </div>
</div>
.
The above documentation is transcluded from Template:Drop down list/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Drop_down_list&oldid=14846"
Category:
  • Layout templates
Last edited on 26 February 2020, at 16:35

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 26 February 2020, at 16:35.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop