Template:Spoiler: Difference between revisions

From The Reed and Rite
mNo edit summary
mNo edit summary
Line 26: Line 26:


== Usage ==
== Usage ==
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
|-
|-
! style="text-align: center;" | <span style="font-size: 115%;">Example: Tag Only</span><br><span style="font-weight: normal;">This example demonstrates a {{t|Character}} template, which uses named parameters. <br>Note that the name of the template comes first. ("<code><nowiki>{{character</nowiki></code>"), followed by the named parameters.</span>
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Example: Tag Only</span><br><span style="font-weight: normal;">[Brief Explanation here]</span>
|-
|-
! style="text-align: center;" | '''You Type'''
! width=20%|You Type
!You Get
|-
|-
! style="text-align: center; background-color: white;" |<code><nowiki>{{spoiler}}</nowiki></code>
| style="text-align: center;" |<pre>{{spoiler}}</pre>
| style="background-color: white;" |{{spoiler}}
|-
|-
! style="text-align: center;" | '''You get'''
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Example: One Unnamed Parameter</span><br><span style="font-weight: normal;">[Brief Explanation here]</span>
|-
|-
| {{spoiler}}
! width=20%|You Type
!You Get
|-
| style="text-align: center;" |<pre>{{spoiler|tbot}}</pre>
| style="background-color: white;" |{{spoiler|tbot}}
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Example: Two+ Unnamed Parameters</span><br><span style="font-weight: normal;">[Brief Explanation here]</span>
|-
! width=20%|You Type
!You Get
|-
| style="text-align: center;" |<pre>{{spoiler|tbot|tq}}</pre>
| style="background-color: white;" |{{spoiler|tbot|tq}}
|}
|}


== Articles Using Template ==
== Articles Using Template ==

Revision as of 02:43, 8 April 2025

Description

Usage

Example: Tag Only
[Brief Explanation here]
You Type You Get
{{spoiler}}
×
{{{text}}}
Example: One Unnamed Parameter
[Brief Explanation here]
You Type You Get
{{spoiler|tbot}}
×
{{{text}}}
Example: Two+ Unnamed Parameters
[Brief Explanation here]
You Type You Get
{{spoiler|tbot|tq}}
×
{{{text}}}


Articles Using Template