Template:Dropdown header: Difference between revisions

no edit summary
(Created page with " __NOEDITSECTION__ {{#if: {{{Page title|}}}|{{Page header|Page title={{{Page title|}}}|}}|<nowiki></nowiki>}} {{#if: {{{Section title|}}}|{{#if: {{{Section title size|}}}|<h{{...")
 
No edit summary
Line 1: Line 1:
  __NOEDITSECTION__
  __NOEDITSECTION__
{{#if: {{{Page title|}}}|{{Page header|Page title={{{Page title|}}}|}}|<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: {{{Page text|}}}|{{#if: {{{Page text size|}}}|<h{{{Page text size}}}>{{{Page text}}}</h{{{Page text size}}}>|<p>{{{Page 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: {{{Page image|}}}|{{{Page image|}}}|<nowiki></nowiki>}}
<!-- 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|}}}
Line 15: Line 9:
<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/>
|<nowiki></nowiki>}}
|<nowiki></nowiki>}}
<noinclude>
<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: {{{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: {{{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>}}
<noinclude>
</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