Difference between revisions of "Template:FAQd"

From WikiCorporates
Jump to navigation Jump to search
m
m
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<div id="collapsible-div-{{{1}}}" class="mw-collapsible mw-collapsed">
 
<div id="collapsible-div-{{{1}}}" class="mw-collapsible mw-collapsed">
−
<div class="mw-collapsible-toggle" style="float:left; margin:0.2em auto auto; border:1px solid silver; background-color:white; padding:3px; width=50%;">
+
<div class="mw-collapsible-toggle" style="margin-top:0.2em; border:1px solid silver; background-color:white; padding:3px; width:100%;">
−
<div style="background-color:#f0f2f5; padding:0.2em 0.3em; font-weight:bold;">{{{2}}}</div>
+
<div style="background-color:#f0f2f5; padding:0.2em 0.3em; font-weight:bold; text-align:left;">{{{2}}}</div>
 
</div>
 
</div>
−
<div class="mw-collapsible-content" style="margin-bottom:2em;">{{{3}}}
+
<div class="mw-collapsible-content">{{{3}}}
 
<div style="clear:both"></div>
 
<div style="clear:both"></div>
 
</div>
 
</div>
 
</div>
 
</div>
−
<div style="clear:both"></div><noinclude>[[Category:WikiPolitiks templates]]</noinclude>
+
<div style="clear:both"></div><noinclude>{{doc2}}</noinclude>

Latest revision as of 19:01, 16 April 2018

{{{2}}}
{{{3}}}

[edit] Documentation

Ambox important.svg Do Not Use. This template is scheduled to be merged with Template:FAQt.

Usage

This is a collapsible section, based on divs. The show/hide is activated by clicking anywhere on the visible bar, and not on a [Show|Hide] "button". (It's not working very well, needs tinkering with.)

Parameters:

{{{1}}}  - user-set id.
{{{2}}}  - Visible Heading, centred.
{{{3}}}  - The content to be hidden.

Example

{{FAQd
|my-id
|This is a Heading
|This is a great deal of content. Masses of it, in fact. It can even be a whole reference section.
}}
This is a Heading
This is a great deal of content. Masses of it, in fact. It can even be a whole reference section.