helialprofile.png
Welcome to IOPWiki, Commander. You can contribute to this wiki without an account. Learn how to contribute and join our Discord server.

Difference between revisions of "Template:Spoiler"

Welcome to IOP Wiki. This website is maintained by the Girls' Frontline community and is free to edit by anyone.
Jump to navigation Jump to search
(Added some design hardcoded. ToDo: Transfer to proper CSS)
(Bypassing unwanted line feeds)
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly>{{WikiMessageBox
<div class="spoilerbox" style="height: 75px; border: thin solid gray; background:rgba(50,50,50,0.5);">
+
|image=helialprofile.png
[[File:helialprofile.png|75px||left|]]
+
|quote=This is classified information!
''"This is classified information!"''
+
|text=This article contains spoilers. You have been warned. {{#if:{{{target|}}}|Click [[#{{{target|}}}|here]] to skip this part.|}}
 
+
}}</includeonly><noinclude>
This article contains spoilers. You have been warned. {{#if:{{{target|}}}|Click [[#{{{target|}}}|here]] to skip this part.|}}
+
{{Documentation}}
</div>
 
</includeonly>
 
 
 
<noinclude>
 
{{Spoiler}}
 
 
 
{{Spoiler|target=name_of_anchor}}
 
 
</noinclude>
 
</noinclude>

Revision as of 14:30, 5 December 2020

Documentation icon Template documentation[view] [edit] [history] [purge]

Creates a box spreading the width of the page warning the user of possible spoilers in the following text.

Parameters

Parameter name Required? Default value Description
target No (n/a) Optional HTML anchor which will be linked for the user to skip a text passage

Usage

See the template's testcases:

No parameter
Wiki code {{Spoiler}}
Main version
helialprofile.png

"This is classified information!"

This article contains spoilers. You have been warned.


Sandbox version Template:Spoiler/sandbox
Parameter: target
Wiki code {{Spoiler|target=name_of_anchor}}
Main version
helialprofile.png

"This is classified information!"

This article contains spoilers. You have been warned. Click here to skip this part.


Sandbox version Template:Spoiler/sandbox

See also