Difference between revisions of "Template:Spoiler"

From Discovery Wiki
Jump to navigationJump to search
Line 1: Line 1:
 
<noinclude><!--</noinclude><div class="dwspoiler">
 
<noinclude><!--</noinclude><div class="dwspoiler">
<div style="font-weight: bold; font-size: 85%; letter-spacing: 1px; min-width: 200px; padding: 2px 10px; background: #f9f9f9;">{{#if:{{{2|}}}|{{{1}}}|SPOILER}}:&nbsp; <span></span></div>
+
<div style="display: inline-block; font-weight: bold; font-size: 85%; letter-spacing: 1px; min-width: 200px; padding: 2px 10px; background: #f9f9f9;">{{#if:{{{2|}}}|{{{1}}}|SPOILER}}:&nbsp; <span></span></div>
 
<div style="display: none;">{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}</div>
 
<div style="display: none;">{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}</div>
 
</div>
 
</div>
Line 22: Line 22:
 
*[[Interspace Commerce]]
 
*[[Interspace Commerce]]
 
}}
 
}}
 
 
{{Spoiler|Spoiler title idea from Tazuras|
 
{{Spoiler|Spoiler title idea from Tazuras|
 
 
{{#if: {{{lawfulnpcs|}}} | {{{lawfulnpcs}}} | ''None known''}}
 
{{#if: {{{lawfulnpcs|}}} | {{{lawfulnpcs}}} | ''None known''}}
 
The text you want to hide here.
 
The text you want to hide here.

Revision as of 05:18, 31 July 2009

Usage

This template allows you to hide or show any spoiler information. It is specifically useful for "selling locations" in the Availability sections.

  • NOTE: The template will screw up if you have an "=" in the text.
{{Spoiler|
The text you want to hide here.
*[[Ageira Technologies]]
*[[Deep Space Engineering]]
*[[Interspace Commerce]]
}}

Result

SPOILER: 
Spoiler title idea from Tazuras: 
None known

The text you want to hide here.