Template:Spoiler: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Created page with "<div class="spoiler-container"> <div class="button">{{{button-text}}}</div> <div class="text">{{{message}}}</div> </div> </div>")
 
m (Added default messages when parameters are not specified, documentation)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<div class="spoiler-container">
<div class="spoiler-container">
<div class="button">{{{button-text}}}</div>
<div class="button">{{{button-text|No button text provided}}}</div>
<div class="text">{{{message}}}</div>
<div class="text hidden">{{{message|No spoiler text provided}}}</div>
</div>
</div>
</div>
<noinclude>{{Documentation}}</noinclude>

Latest revision as of 22:36, 6 September 2016

No button text provided

[View] [Edit] [Page history]

Documentation

This is a template to be used to hide spoilers.

Syntax

{{Spoiler|button-text=Click me|message=spoiler here}}

The above generates:
Click me


Parameters

  • button-text
The text to be displayed on the button.
  • message
The actual spoiler itself.
List of all templates