YellowWarningTriangle.png This wiki is closed in favour of the new wiki. Information shown is likely to be very out of date.

Difference between revisions of "Template:Spoiler"

From Discovery Wiki
Jump to navigationJump to search
(Added title, rm odd multiline if; not aware of anything that uses it.)
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude><!--</noinclude><div class="dwspoiler">
+
<noinclude><!--</noinclude>
<div style="display: inline-block; font-weight: bold; font-size: 85%; letter-spacing: 1px; min-width: 200px; padding: 2px 10px; background: #14193F;">{{#if:{{{2|}}}|{{{1}}}|SPOILER}}:&nbsp; <span></span></div>
+
{| class="wikitable collapsible collapsed"
<div style="display: none;">{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}</div>
+
  !{{#if: {{{2|}}}|{{{2|}}}|Spoiler:}}
</div>
+
  |-
 +
  |
 +
  {| class="wikitable sortable"
 +
    |-
 +
    {{#if: {{{1|}}} | {{{1}}} | }}
 +
    |-
 +
  |}
 +
|}
 
<noinclude>
 
<noinclude>
 
-->
 
-->
Line 16: Line 23:
 
}}
 
}}
  
{{Spoiler|Spoiler title idea from Tazuras|
+
{{Spoiler|Content|Title}}
information
 
}}
 
 
</pre>
 
</pre>
* You could also use the collapsible table.
+
* You could also use the collapsible table:
  
{| class="wikitable sortable collapsible collapsed"
+
<pre>{| class="wikitable collapsible collapsed"
! collapsible table test
+
!Spoiler: Buying Locations
 +
|-
 +
|
 +
{| class="wikitable sortable"
 +
|-
 +
! !!Price!!Base!!Owner!!System!!Location
 +
|-
 +
|[[Image:BCred.jpg]]||$1,805||[[Luxury Liner Hawaii]]||[[Orbital Spa and Cruise]]||[[Sigma-19]]||[[Border Worlds]]
 +
|-
 +
|[[Image:BCred.jpg]]||$1,949||[[Freeport 9]]||[[Zoners]]||[[Omicron Theta]]||[[Edge Worlds]]
 
|-
 
|-
| class="wikitable sortable collapsible collapsed"
 
*use the class
 
*above for good tables
 
Price = $your eternal soul
 
*moo
 
 
|}
 
|}
 +
|}</pre>
  
 
==Result==
 
==Result==
Line 40: Line 50:
 
}}
 
}}
  
{{Spoiler|Spoiler title idea from Tazuras|
+
{{Spoiler|Content|Title}}
{{#if: {{{lawfulnpcs|}}} | {{{lawfulnpcs}}} | ''None known''}}
 
price  $1233
 
The text you want to hide here.
 
*[[Ageira Technologies]]
 
*[[Deep Space Engineering]]
 
*[[Interspace Commerce]]
 
}}
 
  
 +
{| class="wikitable collapsible collapsed"
 +
!Spoiler: Buying Locations
 +
|-
 +
|
 +
{| class="wikitable sortable"
 +
|-
 +
! !!Price!!Base!!Owner!!System!!Location
 +
|-
 +
|[[Image:BCred.jpg]]||$1,805||[[Luxury Liner Hawaii]]||[[Orbital Spa and Cruise]]||[[Sigma-19]]||[[Border Worlds]]
 +
|-
 +
|[[Image:BCred.jpg]]||$1,949||[[Freeport 9]]||[[Zoners]]||[[Omicron Theta]]||[[Edge Worlds]]
 +
|-
 +
|}
 +
|}
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 22:08, 7 March 2015

Usage

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

  • 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]]
}}

{{Spoiler|Content|Title}}
  • You could also use the collapsible table:
{| class="wikitable collapsible collapsed"
!Spoiler: Buying Locations
|-
|
{| class="wikitable sortable"
|-
! !!Price!!Base!!Owner!!System!!Location
|-
|[[Image:BCred.jpg]]||$1,805||[[Luxury Liner Hawaii]]||[[Orbital Spa and Cruise]]||[[Sigma-19]]||[[Border Worlds]]
|-
|[[Image:BCred.jpg]]||$1,949||[[Freeport 9]]||[[Zoners]]||[[Omicron Theta]]||[[Edge Worlds]]
|-
|}
|}

Result