Template:Dropdown header: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1: Line 1:
  __NOEDITSECTION__
  __NOEDITSECTION__
<!-- The following code is designed to eliminate duplicate naming of dropdown headings, since duplicate headings means that when one heading is clicked, all dropdown headings with the same title will open.  An example would be having a title like '1800-1900' under a dropdown of Birth, Marriage and Death.  When '1800-1900' is selected, all three areas will open up, even though they may still be hidden in the different dropdown areas.  In order to fix this, the 'Previous dropdown title', such as 'Birth', 'Marriage', or 'Death', should be added to the Dropdown call of each '1800-1900' section in order to avoid this issue. -->
<!-- The following code is designed to eliminate duplicate naming of dropdown headings, since duplicate headings means that when one heading is clicked, all dropdown headings with the same title will open.  An example would be having a title like '1800-1900' under a dropdown of Birth, Marriage and Death.  When '1800-1900' is selected, all three areas will open up, even though they may still be hidden in the different dropdown areas.  In order to fix this, the 'Previous dropdown title', such as 'Birth', 'Marriage', or 'Death', should be added to the Dropdown call of each '1800-1900' section in order to avoid this issue. -->
{{#if: {{{Dropdown title|}}}|{{#if:{{{Previous dropdown title|}}}
{{#if: {{{Dropdown title|}}}|{{#if:{{{Previous dropdown title|}}}
|<span class="mw-customtoggle-{{#replace:{{{Previous dropdown title|}}}| |_}}_{{#replace:{{{Dropdown title|}}}| |_}}" style="{{{Dropdown text style|}}}">{{{Dropdown title|}}}</span>
|<span class="mw-customtoggle-{{#replace:{{{Previous dropdown title|}}}| |_}}_{{#replace:{{{Dropdown title|}}}| |_}}" {{#if: {{{Dropdown text style|}}}|style="{{{Dropdown text style|}}}"|style="font-size:20px !important; color:#0B0BEC !important; text-decoration:underline !important; display:inline-blue; font-weight:bold;"|}}}>{{{Dropdown title|}}}</span>
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{#replace:{{{Previous dropdown title|}}}| |_}}_{{#replace:{{{Dropdown title|}}}| |_}}" style="height:auto; width=50%;">
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{#replace:{{{Previous dropdown title|}}}| |_}}_{{#replace:{{{Dropdown title|}}}| |_}}" style="height:auto; width=50%;">
<span class="mw-customtoggle-{{#replace:{{{Previous dropdown title|}}}| |_}}_{{#replace:{{{Dropdown title|}}}| |_}}" style="color:#0B0BEC  !important;font-size:small !important;float:left !important;">[hide]</span>
<span class="mw-customtoggle-{{#replace:{{{Previous dropdown title|}}}| |_}}_{{#replace:{{{Dropdown title|}}}| |_}}" style="color:#0B0BEC  !important;font-size:small !important;float:left !important;">[hide]</span>
|<span class="mw-customtoggle-{{#replace:{{{Dropdown title|}}}| |_}}" style="{{{Dropdown text style|}}}">{{{Dropdown title|}}}</span>
|<span class="mw-customtoggle-{{#replace:{{{Dropdown title|}}}| |_}}" {{#if: {{{Dropdown text style|}}}|style="{{{Dropdown text style|}}}"|style="font-size:20px !important; color:#0B0BEC !important; text-decoration:underline !important; display:inline-blue; font-weight:bold;"|}}}>{{{Dropdown title|}}}</span>
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{#replace:{{{Dropdown title|}}}| |_}}" style="height:auto;">
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{#replace:{{{Dropdown title|}}}| |_}}" style="height:auto;">
<p><span class="mw-customtoggle-{{#replace:{{{Dropdown title|}}}| |_}}" style="color:#0B0BEC  !important;font-size:small  !important;float:left;">[hide]</span></p>|}}<br/>
<p><span class="mw-customtoggle-{{#replace:{{{Dropdown title|}}}| |_}}" style="color:#0B0BEC  !important;font-size:small  !important;float:left;">[hide]</span></p>|}}<br/>
Line 12: Line 15:
<noinclude>
<noinclude>
<nowiki>
<nowiki>
{{#if: {{{Section title|}}}|{{#if: {{{Section title size|}}}|<h{{{Section title size}}}>{{{Section title}}}</h{{{Section title size}}}>|<p>{{{Section title}}}</p>}}|<nowiki></nowiki>}}
<!--{{#if: {{{Section title|}}}|{{#if: {{{Section title size|}}}|<h{{{Section title size}}}>{{{Section title}}}</h{{{Section title size}}}>|<p>{{{Section title}}}</p>}}|<nowiki></nowiki>}}
{{#if: {{{Section text|}}}|{{#if: {{{Section text size|}}}|<h{{{Section text size}}}>{{{Section text}}}</h{{{Section text size}}}>|<p>{{{Section text|}}}</p>}}|<nowiki></nowiki>}}
{{#if: {{{Section text|}}}|{{#if: {{{Section text size|}}}|<h{{{Section text size}}}>{{{Section text}}}</h{{{Section text size}}}>|<p>{{{Section text|}}}</p>}}|<nowiki></nowiki>}}
<!--{{#if: {{{Begin text|}}}|{{#if: {{{Begin text size|}}}|<h{{{Begin text size}}}>{{{Begin text}}}</h{{{Begin text size}}}>|<p>{{{Begin text|}}}</p>}}|<nowiki></nowiki>}}-->
{{#if: {{{Begin text|}}}|{{#if: {{{Begin text size|}}}|<h{{{Begin text size}}}>{{{Begin text}}}</h{{{Begin text size}}}>|<p>{{{Begin text|}}}</p>}}|<nowiki></nowiki>}}
{{#if: {{{Page image|}}}|{{{Page image|}}}|<nowiki></nowiki>}}
{{#if: {{{Page image|}}}|{{{Page image|}}}|<nowiki></nowiki>}}
{{#if: {{{Begin text|}}}|{{#if: {{{Begin text size|}}}|<h{{{Begin text size}}}>{{{Begin text}}}</h{{{Begin text size}}}>|<p>{{{Begin text|}}}</p>}}|<nowiki></nowiki>}}
{{#if: {{{Begin text|}}}|{{#if: {{{Begin text size|}}}|<h{{{Begin text size}}}>{{{Begin text}}}</h{{{Begin text size}}}>|<p>{{{Begin text|}}}</p>}}|<nowiki></nowiki>}}
</nowiki>
-->
== Purpose ==
== Purpose ==
This template is used to create a hidden dropdown area that becomes visible after the user selects a keyword on the page.  There are many different parameters that can be passed into this template, see the Usage section below for details.  It is important to understand the structure of dropdown menus in order to get this template to work properly.  The most important thing to remember is that every time this template is used, make sure to also close the dropdown area by adding a call to <nowiki>{{Dropdown end}}</nowiki>.
This template is used to create a hidden dropdown area that becomes visible after the user selects a keyword on the page.  There are many different parameters that can be passed into this template, see the Usage section below for details.  It is important to understand the structure of dropdown menus in order to get this template to work properly.  The most important thing to remember is that every time this template is used, make sure to also close the dropdown area by adding a call to <nowiki>{{Dropdown end}}</nowiki>.
2,664

edits