Difference between revisions of "Template:Spoilerheader"

From Wurmpedia
Jump to navigation Jump to search
m
 
(2 intermediate revisions by one other user not shown)
Line 2: Line 2:
 
<div class="toccolours mw-collapsible mw-collapsed " style="width:relative;  overflow: hidden;">
 
<div class="toccolours mw-collapsible mw-collapsed " style="width:relative;  overflow: hidden;">
 
{{{1}}}
 
{{{1}}}
</div>
+
<div class="mw-collapsible-content">{{{2}}}
 +
</div></div>
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
[[Main Page]] / [[:Category:Template|Templates]] / {{PAGENAME}}
 
[[Main Page]] / [[:Category:Template|Templates]] / {{PAGENAME}}
  
A spoiler with no header
+
A spoiler with a header
  
 
'''Usage''':
 
'''Usage''':
 
+
<span style="background:#E6FFE6;"><nowiki>{{Spoilerheader|Visible header|collapsible hidden text}}</nowiki></span> produces a {{Spoilerheader|Visible header|collapsible hidden text}}
<span style="background:#E6FFE6;"><nowiki>{{Spoiler|hidden text}}</nowiki></span> produces a {{Spoiler|collapsible hidden text}}
 
  
 
[[Category:Template]]
 
[[Category:Template]]
 
</noinclude>
 
</noinclude>

Latest revision as of 19:32, 1 April 2021

Main Page / Templates / Spoilerheader

A spoiler with a header

Usage: {{Spoilerheader|Visible header|collapsible hidden text}} produces a

Visible header

collapsible hidden text