Open main menu
Home
Random
Log in
Settings
About Stardew Valley Wiki
Disclaimers
Stardew Valley Wiki
Search
Changes
← Older edit
Newer edit →
Template:Collapse/doc
(view source)
Revision as of 16:25, 11 January 2019
272 bytes added
,
16:25, 11 January 2019
→Example Usage
:
+ custom styles
Line 4:
Line 4:
This template may also be used to hide "spoiler" content.
This template may also be used to hide "spoiler" content.
−
==
Example Usage
==
+
==
Basic usage
==
===Default usage===
===Default usage===
<pre>
<pre>
{{collapse
{{collapse
−
|content
= <source lang="c#">
+
|content = <source lang="c#">
Lots of code here
Lots of code here
</source>
</source>
Line 15:
Line 15:
{{collapse
{{collapse
−
|content
= <source lang="c#">
+
|content = <source lang="c#">
Lots of code here
Lots of code here
</source>
</source>
Line 24:
Line 24:
{{collapse
{{collapse
|code
|code
−
|content
= <source lang="c#">
+
|content = <source lang="c#">
Lots of code here
Lots of code here
</source>
</source>
Line 31:
Line 31:
{{collapse|code|
{{collapse|code|
−
|content
= <source lang="c#">
+
|content = <source lang="c#">
Lots of code here
Lots of code here
</source>
</source>
}}
}}
−
===
Spoiler Prevention
===
+
===
Collapse spoilers
===
<pre>
<pre>
{{collapse
{{collapse
Line 45:
Line 45:
{{collapse|Solution|content=Solve the puzzle by performing action x during a full moon on the 12th day of any season.}}
{{collapse|Solution|content=Solve the puzzle by performing action x during a full moon on the 12th day of any season.}}
+
+
==Advanced usage==
+
===Custom styles===
+
<pre>
+
{{collapse
+
|content = Some example text here.
+
|css = border: 1px solid red; background: #FCC;
+
}}
+
</pre>
+
{{collapse
+
|content = Some example text here.
+
|css = border: 1px solid red; background: #FCC; padding: 0.2em;
+
}}
<includeonly>[[Category:Formatting templates]]
<includeonly>[[Category:Formatting templates]]
Pathoschild
translators
8,404
edits