Template:Spoiler: Difference between revisions
From Dragon Quest Wiki
FlyingRagnar (talk | contribs) m (132 revisions: importing Template namespace from Wikia) |
FlyingRagnar (talk | contribs) (reverting to a simpler spoiler template, using show/hide is just too complicated) |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{/doc}} | {{{{PAGENAME}}/doc}} | ||
[[Category:Templates| | [[Category:Templates|{{PAGENAME}}]] | ||
[[Category:Notices|{{PAGENAME}}]] | [[Category:Notices|{{PAGENAME}}]] | ||
</noinclude><onlyinclude><includeonly> | </noinclude><onlyinclude><includeonly> | ||
{{ #switch: {{{1}}} | {{ #switch: {{{1}}} | ||
| end = </div><div style="border: | | end = <div style="border-top:solid 2px #ddd; border-bottom:solid 2px #ddd">'''Spoilers end here'''</div> | ||
| start = <div style="border-top:solid 2px #ddd; border-bottom:solid 2px #ddd"> | |||
'''[[Dragon Quest Wiki:Spoiler policy|<span style="color:red;">Spoiler warning</span>]]''': '''Plot and/or ending details follow.''' | |||
</div> | </div> | ||
| | | #default = <div style="border-top:solid 2px #ddd; border-bottom:solid 2px #ddd"> | ||
'''[[Dragon Quest Wiki:Spoiler policy|<span style="color:red;">Spoiler warning</span>]]''': '''Plot and/or ending details follow.''' | |||
| | |||
}}</includeonly></onlyinclude> | }}</includeonly></onlyinclude> |
Revision as of 01:20, 21 October 2010
The spoiler template is used to mark sections of an article which might contain spoiler information.
Usage
This template should be called in pairs. One call before spoiler information starts, and one after.
Start
A spoiler start should be the first invocation of the template.
{{spoiler|start}}
- start: A required parameter which marks a section as the start of a spoiler.
End
A spoiler end should be the second invocation of the template.
{{spoiler|end}}
- end: A required parameter which marks a section as the end of a spoiler.
Example
Sample
Spoiler warning: Plot and/or ending details follow.
This is spoiler information. OMGz!
Spoilers end here
Code
{{spoiler|start}} Spoiler text goes here. {{spoiler|end}}