Template:Dropdown header: Difference between revisions

From FamilySearch Wiki
No edit summary
No edit summary
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 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>
<noinclude>[[Category:Templates|Guided Research]][[Category:Guided Research]]</noinclude>
<noinclude>[[Category:Templates|Guided Research]][[Category:Guided Research]]</noinclude>

Revision as of 14:11, 28 May 2019

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-->