Difference between revisions of "Template:Spoiler"

From Moegirlpedia
Jump to: navigation, search
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{font|title={{{2|You've known too much.}}}|class=inline-spoilers|{{{1}}}|css={{{css|}}}}}</includeonly><noinclude>
+
<includeonly>{{font|title={{{2|You've known too much.}}}|class=inline-spoilers|{{{1}}}|css={{{css|}}}}}</includeonly><noinclude>{{doc|content=<nowiki/>
Usage:<pre>
+
* '''{{color|red|Attention}}''': For better visual perception, please not to use this template in large quantities as much as possible!
 +
** You can try to use {{tl|hide}} or {{tl|hideinline}} to replace it if you want to make some spoiler.
 +
==Usage==
 +
<pre>
 +
{{Spoiler|1=text to be covered|2=mouseover text}}
 +
</pre>
 +
==Example==
 +
<pre>
 
{{Spoiler|This is a test sentence.}}
 
{{Spoiler|This is a test sentence.}}
 
</pre>
 
</pre>
 +
Output: {{Spoiler|This is a test sentence.}}
 +
<pre>
 +
{{Spoiler|This is a test sentence.|Don't read the spoiler!}}
 +
</pre>
 +
Output (hover your mouse on the spoiler to see the mouseover text): {{Spoiler|This is a test sentence.|Don't read the spoiler!}}
 +
==See Also==
 +
{{tl|hide}}, {{tl|hideinline}}
 +
==Redirects==
 +
{{tl|Block}}
  
Output:
+
{{Formatting templates}}
{{Spoiler|This is a test sentence.}}</noinclude>
+
}}[[Category:Formatting templates]][[zh:Template:黑幕]]</noinclude>

Latest revision as of 10:24, 29 September 2024

Template-info.svg Template Documentation  [Edit]

  • Attention: For better visual perception, please not to use this template in large quantities as much as possible!
    • You can try to use {{hide}} or {{hideinline}} to replace it if you want to make some spoiler.

Usage

{{Spoiler|1=text to be covered|2=mouseover text}}

Example

{{Spoiler|This is a test sentence.}}

Output: This is a test sentence.

{{Spoiler|This is a test sentence.|Don't read the spoiler!}}

Output (hover your mouse on the spoiler to see the mouseover text): This is a test sentence.

See Also

{{hide}}, {{hideinline}}

Redirects

{{Block}}