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.)
 
(42 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<noinclude><!--</noinclude>
 
<noinclude><!--</noinclude>
<div class="dwspoiler">
+
{| class="wikitable collapsible collapsed"
<div style="background: #dddddd; font-weight: bold;"></div>
+
  !{{#if: {{{2|}}}|{{{2|}}}|Spoiler:}}
<div style="display: {{#if:{{{2|}}}|none|block}};">{{{1}}}</div>
+
  |-
</div>
+
  |
 
+
  {| class="wikitable sortable"
 +
    |-
 +
    {{#if: {{{1|}}} | {{{1}}} | }}
 +
    |-
 +
  |}
 +
|}
 
<noinclude>
 
<noinclude>
 
-->
 
-->
 
==Usage==
 
==Usage==
 +
This template allows you to hide or show any spoiler information. It is specifically useful for "selling locations" in the [[Ageira_Technologies_ID|Availability sections]]. You can also specify the spoiler heading text.
 +
*'''NOTE: The template will screw up if you have an "=" in the text.'''
 +
 
<pre>{{Spoiler|
 
<pre>{{Spoiler|
 
The text you want to hide here.
 
The text you want to hide here.
Line 13: Line 21:
 
*[[Deep Space Engineering]]
 
*[[Deep Space Engineering]]
 
*[[Interspace Commerce]]
 
*[[Interspace Commerce]]
}}</pre>
+
}}
 +
 
 +
{{Spoiler|Content|Title}}
 +
</pre>
 +
* You could also use the collapsible table:
 +
 
 +
<pre>{| 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]]
 +
|-
 +
|}
 +
|}</pre>
  
 
==Result==
 
==Result==
Line 23: Line 50:
 
}}
 
}}
  
 +
{{Spoiler|Content|Title}}
 +
 +
{| 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