Editing
Template:Drop down list
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
<includeonly><div class="metadata" style="z-index: 100;" id="Drop-down-list"> <div class="mw-customtoggle-{{{id|desks}}}"> {{{Name|Text}}} [[File:MediaWiki Vector skin action arrow.png|link=]] </div> <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{{id|desks}}}" style="padding:0px; border:0px;"> <div class="mw-collapsible-content" style="text-align:left;"> {{{Value1|Lorem}}}<br> {{{Value2|}}}<br> {{{Value3|}}}<br> {{{Value4|}}}<br> {{{Value5|}}}<br> {{{Value6|}}}<br> {{{Value7|}}}<br> {{{Value8|}}}<br> </div></div> </div></includeonly> <noinclude>{{documentation|content= {{Template:Collapse Templates}} ==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 <code> <nowiki>{{Drop down list|Name=Name}} </nowiki> </code> which will render as <br>{{Drop down list|Name=Name|id=name}}<br> Examples:<br> <code> <nowiki>{{Drop down list|Name=TW}} </nowiki> </code> renders as <br> <br>{{Drop down list|Name=TW|id=TW}}<br> <code> <nowiki>{{Drop down list|Name=[[WP:TW|TW]]}} </nowiki> </code> renders as <br> <br>{{Drop down list|Name=[[WP:TW|TW]]|id=Twinkle}} ===Values=== The list can hold up to 8 values i.e the text within the list. To add the values type <code> <nowiki>{{Drop down list|Name=Name|Value1=Hello|Value2=Wikipedia|Value3=Blah!}} </nowiki> </code> and so on until <code> <nowiki>Value8</nowiki> </code>. <br> The values support both Wikilinks and external links i.e you can also type <source lang="moin" inline>{{Drop down list|Name=Name|Value1=[[Hello]]|Value2=[[Wikipedia|'pedia]]|Value3=[https://www.google.co.in/ Google]}} </source> which will render as <br><br>{{Drop down list|Name=Name|Value1=[[Hello]]|Value2=[[Wikipedia|'pedia]]|Value3=[https://www.google.co.in/ Google]|Value4=|Value5=|Value6=|Value7=|Value8=|id=Example}} ===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 <code> <nowiki>{{Drop down list|id=Your Id name}}</nowiki> </code> <source lang="html"> <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> </source>. }}</noinclude> [[Category:Layout templates]]
Summary:
Please note that all contributions to Quantum Protocol Zoo may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Quantum Protocol Zoo:Copyrights
for details).
Do not submit copyrighted work without permission!
To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
News
Protocol Library
Certification Library
Nodal Subroutines
Codes Repository
Knowledge Graphs
Submissions
Categories
Supplementary Information
Recent Changes
Contact us
Help
Tools
What links here
Related changes
Special pages
Page information