Difference between revisions of "User:Tsutomu25/sandbox/Cover3"

From Detective Conan Wiki
(Examples)
(Examples)
Line 100: Line 100:
 
== Examples==
 
== Examples==
 
Result: {{User:Tsutomu25/sandbox/Cover3|weapon|The weapon is Knife}}
 
Result: {{User:Tsutomu25/sandbox/Cover3|weapon|The weapon is Knife}}
Result: {{User:Tsutomu25/sandbox/Cover3|motive|The culprit wore {{font color|#ffff00|Yellow}} clothes}}
+
Result: {{User:Tsutomu25/sandbox/Cover3|motive|The culprit wore {{font color|#0000ff|Blue}} clothes}}
 
Result: {{User:Tsutomu25/sandbox/Cover3|culprit|The culprit is [[Gosho Aoyama]]}}
 
Result: {{User:Tsutomu25/sandbox/Cover3|culprit|The culprit is [[Gosho Aoyama]]}}
  
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 07:29, 23 August 2025

It hides the given input of spoiler text and reveals them when the user clicks on them. It takes two values. One is the name of the spoiler and another one is the actual spoiler text. Every time the template is used, every element has to have a unique id and class. Hence spoiler name is required.

Usage

The following is a list of required parameters:

{{User:Tsutomu25/sandbox/Cover2|<spoiler name>|<spoiler text>}}

Limitations

  • When the template is used multiple times on the same page, only one spoiler can remain visible at a time. If the user reveals another spoiler, the previously opened one will automatically be hidden.
  • If the page is refreshed while a spoiler is revealed, that spoiler will remain open even after the page reloads.

Examples

Result: Show SpoilersHide SpoilersThe weapon is Knife

Result: Show SpoilersHide SpoilersThe culprit wore Blue clothes

Result: Show SpoilersHide SpoilersThe culprit is Gosho Aoyama