Template:Collapsed infobox section begin: Difference between revisions

m
No edit summary
 
(44 intermediate revisions by 11 users not shown)
Line 1:
<includeonly>{{#if:{{{div|}}}|</div>|}}{{#if:{{{td|}}}|<td>|}}</td></tr>
<tr><td colspan=2><table class="mw-collapsible {{#ifeq:yes|{{yesno|def=|{{{expanded|}}}}}||mw-collapsed}}" style="width:100%;{{#ifeq:yes|{{yesno|def=|{{{cont|}}}}}|margin-top:-3px;|}}{{#ifeq:yes|{{yesno|def=|{{{last|}}}}}|margin-bottom:-5px;|}}{{{style|}}}">
<tr><th colspan=2 style="text-align:center;line-height:normal;padding:0.2em 0.2em;{{{titlestyle|}}}"><div style="margin:0 3.5em">{{{1|Further information}}}</div></th>
</tr>{{#if:{{{div|}}}|<div>|}}</includeonly><noinclude>
{{documentation|content=}}
<!-- Add categories to the /doc subpage, interwikis to Wikidata, not here -->
This template may be used with {{tl|collapsed infobox section end}} to create a collapsed section in an {{tl|infobox}}.
}}</noinclude>
== Usage ==
Place {{tld|collapsed infobox section begin}} before the first line of the collapsed section (typically in the caption, for an infobox with an image), and place {{tld|collapsed infobox section end}} after the last line of the collapsed section (typically just after the website or footnotes).
 
== Parameters ==
The template has one optional parameter, and that is the title use for the collapsed section.
: {{tld|collapsed infobox section begin|Heading}}
If omitted, the template will use the default heading, "<code>Further information</code>".
 
== Warning ==
If either the begin or end templates are not properly transcluded, disaster may strike, causing the infobox to either swallow the article (missing the end template), or terminate unexpectedly (missing the begin template).
 
== See also ==
* {{tl|hidden}}, {{tl|hidden begin}}, and {{tl|hidden end}}
* {{tl|infobox}}
 
}}</noinclude>