Jump to content

Template:Collapse/doc: Difference between revisions

From Stardew Valley Wiki
imported>Pathoschild
imported>Margotbean
update for other languages
Line 2: Line 2:
This template creates a collapsible box for extended content. This should be used sparingly, since it reduces readability.
This template creates a collapsible box for extended content. This should be used sparingly, since it reduces readability.


==Usage==
This template may also be used to hide "spoiler" content.
 
==Example Usage==
===Default usage===
===Default usage===
<pre>
<pre>
Line 20: Line 22:
===Named section===
===Named section===
<pre>
<pre>
{{collapse|code|
{{collapse
|code
  |content  = <source lang="c#">
  |content  = <source lang="c#">
Lots of code here
Lots of code here
Line 33: Line 36:
}}
}}


<includeonly>[[Category:Formatting templates]]</includeonly>
===Spoiler Prevention===
<pre>
{{collapse
  |Solution
  |content=Solve the puzzle by performing action x during a full moon on the 12th day of any season.
}}
</pre>
 
{{collapse|Solution|content=Solve the puzzle by performing action x during a full moon on the 12th day of any season.}}
 
<includeonly>[[Category:Formatting templates]]
[[de:Vorlage:{{PAGENAME}}]]
[[es:Plantilla:{{PAGENAME}}]]
[[ja:テンプレート:{{PAGENAME}}]]
[[pt:Predefinição:{{PAGENAME}}]]
[[ru:Шаблон:{{PAGENAME}}]]
[[zh:Template:{{PAGENAME}}]]</includeonly>
<noinclude>[[Category:Template documentation‎]]</noinclude>
<noinclude>[[Category:Template documentation‎]]</noinclude>

Revision as of 18:39, 17 June 2018

Description

This template creates a collapsible box for extended content. This should be used sparingly, since it reduces readability.

This template may also be used to hide "spoiler" content.

Example Usage

Default usage

{{collapse
 |content  = <source lang="c#">
Lots of code here
</source>
}}
Details 
Lots of code here

Named section

{{collapse
 |code
 |content  = <source lang="c#">
Lots of code here
</source>
}}
code 
Lots of code here

Spoiler Prevention

{{collapse
  |Solution
  |content=Solve the puzzle by performing action x during a full moon on the 12th day of any season.
}}
Solution 
Solve the puzzle by performing action x during a full moon on the 12th day of any season.