Template:Dropdown header: Difference between revisions

No edit summary
No edit summary
 
(8 intermediate revisions by 2 users not shown)
Line 7: Line 7:
|<span class="mw-customtoggle-{{#replace:{{{Dropdown title|}}}| |_}}" style="font-size:20px !important; color:#0B0BEC !important; text-decoration:underline !important; display:inline-blue; font-weight:bold;">{{{Dropdown title|}}}</span>
|<span class="mw-customtoggle-{{#replace:{{{Dropdown title|}}}| |_}}" 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/>-->
|<nowiki></nowiki>}}
|<nowiki></nowiki>}}
<noinclude>
<noinclude>
<!--{{#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>}}
Line 17: Line 16:
{{#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>}}
-->
-->
== Purpose ==
== Usage ==
This template is used to create a hidden dropdown area that becomes visible after the user selects a keyword on the page.  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.  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>.
  <nowiki>
  <nowiki>
Line 27: Line 26:


{{Dropdown end}}  <!-- call {{Dropdown end}} in order to close the dropdown area-->
{{Dropdown end}}  <!-- call {{Dropdown end}} in order to close the dropdown area-->
</nowiki>
</nowiki></noinclude>
 
<noinclude>[[Category:Templates|Guided Research]][[Category:Guided Research]][[Category:Guided Research Templates]]</noinclude>
[[Category:templates|{{PAGENAME}}]]
</noinclude>

Latest revision as of 18:45, 24 November 2020

Usage

This template is used to create a hidden dropdown area that becomes visible after the user selects a keyword on the page. 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 {{Dropdown end}}.

{{Dropdown|
  Dropdown title=Birth|
  Dropdown text style=|}}

<!-- add code here that will be 'hidden' in the dropdown area -->

{{Dropdown end}}  <!-- call {{Dropdown end}} in order to close the dropdown area-->