Template:Spoilersection/doc: Difference between revisions

From Subnautica Wiki
(Created page with "==Usage instructions== <pre><nowiki>{{SpysTestingPage|text}}</nowiki></pre> ==Example== ====Code==== <pre>{{SpysTestingPage|Not really spoiler!}}</pre> ====Result==== {{Spys...")
Tag: sourceedit
 
(→‎Other templates: history of the template)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Usage instructions==
==Usage instructions==
<pre><nowiki>{{SpysTestingPage|text}}</nowiki></pre>
<pre>{{Spoilersection|text}}</pre>


==Example==
==Example==
====Code====
====Code====
<pre>{{SpysTestingPage|Not really spoiler!}}</pre>
<pre>{{Spoilersection|Not really spoiler!}}</pre>


====Result====
====Result====
{{SpysTestingPage|Not really spoiler!}}
{{Spoilersection|Not really spoiler!}}

==Other templates==
Note that other similar templates exist:
* [https://subnautica.fandom.com/wiki/Template:SpoilerSection?redirect=no Template:SpoilerSection] was previously used on the then-separate [[Subnautica: Below Zero|Below Zero]] wiki. Using that capitalization will use this template instead.
* [[Template:ExtraSpoilersection]]. TheyCallMeHalo originally designed the current expanding template there and then moved it to this name in June 2017. However, some pages still use ExtraSpoilersection instead.
* The reason why this template had this name and its original text was because it was a thin message bar to provide a skip link (presumably to an 'End of Spoilers' anchor area marked by another template.


[[Category:Templates]]
[[Category:Templates]]

Latest revision as of 02:03, 2 May 2024

Usage instructions

{{Spoilersection|text}}

Example

Code

{{Spoilersection|Not really spoiler!}}

Result

Spoiler alert: This section will reveal story-related material if expanded.


Not really spoiler!


Other templates

Note that other similar templates exist:

  • Template:SpoilerSection was previously used on the then-separate Below Zero wiki. Using that capitalization will use this template instead.
  • Template:ExtraSpoilersection. TheyCallMeHalo originally designed the current expanding template there and then moved it to this name in June 2017. However, some pages still use ExtraSpoilersection instead.
  • The reason why this template had this name and its original text was because it was a thin message bar to provide a skip link (presumably to an 'End of Spoilers' anchor area marked by another template.