Template:Spoiler block/doc: Difference between revisions

From fattwiki
No edit summary
Tag: 2017 source edit
mNo edit summary
Tag: 2017 source edit
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
=== Template definition ===
=== Empty template ===
<pre>{{Spoiler block
<pre>{{ Spoiler block
| spoiling =
| spoiling =
| theme =  
| theme =  
Line 7: Line 7:


=== Usage example ===
=== Usage example ===
{{Spoiler Block
{{Spoiler block
| spoiling=Autumn in Hieron
| spoiling=Autumn in Hieron
| theme=aih
| theme=aih
| text=Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.}}
| text=Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.}}
<pre>{{Spoiler Block
<pre>{{Spoiler block
| spoiling=Autumn in Hieron
| spoiling = Autumn in Hieron
| season=aih
| theme = aih
| text=Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.}}</pre>
| text = Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.}}</pre>
<templatestyles src="Spoiler Block/style.css"></templatestyles>
 
=== Template style ===
[[Template:Spoiler block/style.css]]


=== Template data ===
<templatedata>
<templatedata>
{
{
Line 42: Line 45:
"description": "This template is used to hide spoilers. Readers can click on the spoiler warning to reveal the spoiler text. They can click on the image again to re-hide the spoiler."
"description": "This template is used to hide spoilers. Readers can click on the spoiler warning to reveal the spoiler text. They can click on the image again to re-hide the spoiler."
}
}
</templatedata>
</templatedata><noinclude>
[[Category:Template documentation]]
</noinclude>

Latest revision as of 22:57, 16 November 2023

Empty template[edit source]

{{ Spoiler block
| spoiling =
| theme = 
| text =
}}

Usage example[edit source]

Error creating thumbnail: Unable to save thumbnail to destination

This section contains spoilers for Autumn in Hieron.
Click here to reveal.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

{{Spoiler block
| spoiling = Autumn in Hieron
| theme = aih
| text = Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.}}

Template style[edit source]

Template:Spoiler block/style.css

Template data[edit source]

This template is used to hide spoilers. Readers can click on the spoiler warning to reveal the spoiler text. They can click on the image again to re-hide the spoiler.

Template parameters

ParameterDescriptionTypeStatus
Spoilers forspoiling

What season/episode/arc this is a spoiler for.

Example
the COUNTER/Weight finale
Unknownrequired
Spoiler texttext

The hidden spoiler text.

Example
Darth Vader is Luke's father. Sorry it seemed silly to use a FatT example here
Unknownrequired
Theme (season)theme

The season color theme you want to use. This automatically applies the season's cover art and wiki color. See [[Getting Started#Colors]] for a list of options.

Default
Defaults to placeholder FatT logo and default color of the wiki.
Example
aih
Unknownsuggested