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

From Detective Conan Wiki
(Credits to just eva)
 
Line 27: Line 27:
 
}}
 
}}
 
</includeonly><noinclude>
 
</includeonly><noinclude>
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.  
+
It hides the given input of spoiler text and reveals them when the user clicks on them. It takes just one value i.e., spoiler text.
 
 
 
== Usage ==
 
== Usage ==
 
The following is a list of required parameters:
 
The following is a list of required parameters:
 
<pre>
 
<pre>
{{User:Tsutomu25/sandbox/Cover2|<spoiler name>|<spoiler text>}}
+
{{User:Tsutomu25/sandbox/Cover4|<spoiler text>}}
 
</pre>
 
</pre>
  
 
== Limitations ==
 
== 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.
 
* 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.
* The hyperlinks are not clickable when used inside the template.
 
 
* If the page is refreshed while a spoiler is revealed, that spoiler will remain open even after the page reloads.
 
* If the page is refreshed while a spoiler is revealed, that spoiler will remain open even after the page reloads.
  

Latest revision as of 15:47, 26 August 2025

It hides the given input of spoiler text and reveals them when the user clicks on them. It takes just one value i.e., spoiler text.

Usage

The following is a list of required parameters:

{{User:Tsutomu25/sandbox/Cover4|<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: The weapon is Knife

Result: The culprit wore Orange clothes

Result: The culprit is Gosho Aoyama and his editor