Difference between revisions of "User:Tsutomu25/sandbox/Cover4"
From Detective Conan Wiki
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | <includeonly><span class=" | + | <includeonly><span class="text-cover" tabindex="0"><span class="text-cover-content">{{{1}}}</span></span> |
| + | {{code | ||
|css= | |css= | ||
| − | + | .text-cover { | |
| − | + | background-color: #909199; | |
| − | + | transition: 0.3s; | |
| − | + | } | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | .text-cover-content { | |
| − | + | opacity: 0; | |
| − | + | pointer-events: none; | |
| − | + | -webkit-user-select: none; | |
| − | + | -ms-user-select: none; | |
| − | + | user-select: none; | |
| − | }}</ | + | } |
| + | |||
| + | .text-cover:hover { | ||
| + | background-color: #70717a; | ||
| + | } | ||
| + | .text-cover:focus-within { | ||
| + | background-color: #e3e3e5; | ||
| + | } | ||
| + | .text-cover:focus-within .text-cover-content { | ||
| + | opacity: 1; | ||
| + | pointer-events: auto; | ||
| + | } | ||
| + | }} | ||
| + | </includeonly><noinclude> | ||
| + | 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: | ||
| + | <pre> | ||
| + | {{User:Tsutomu25/sandbox/Cover4|<spoiler text>}} | ||
| + | </pre> | ||
| + | |||
| + | == 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: {{User:Tsutomu25/sandbox/Cover4|The weapon is Knife}} | ||
| + | Result: {{User:Tsutomu25/sandbox/Cover4|The culprit wore {{font color|#ffa500|Orange}} clothes}} | ||
| + | Result: {{User:Tsutomu25/sandbox/Cover4|The culprit is [[Gosho Aoyama]] and his editor}} | ||
| + | |||
| + | [[Category:Templates]] | ||
| + | </noinclude> | ||
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