Difference between revisions of "Template:Exploration/Showhide"
From SpiralKnights
m (test) |
m (add parameter for width control) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <div class="NavFrame {{{state|collapsed}}}" style="width:410px; height:auto; background:#CCCCFF; border-color:#000000; border-radius: 10px; border-width:2px; padding: 0px 0px 0px 0px;"><div style="text-align:left; height:auto; color: #000000; background:transparent; padding: 5px 5px 5px 5px; font-size:120%;" class="NavHead">{{#switch:{{{type|}}} | + | <div class="NavFrame {{{state|collapsed}}}" style="width:{{{width|410px}}}; height:auto; background:#CCCCFF; border-color:#000000; border-radius: 10px; border-width:2px; padding: 0px 0px 0px 0px;"><div style="text-align:left; height:auto; color: #000000; background:transparent; padding: 5px 5px 5px 5px; font-size:120%;" class="NavHead">{{#switch:{{{type|}}} |
|#default = | |#default = | ||
|information = [[File:Exploration-Information-ComLink.png|36x36px|Information Module]] | |information = [[File:Exploration-Information-ComLink.png|36x36px|Information Module]] | ||
Line 5: | Line 5: | ||
|recon = [[File:Exploration-Recon Module-ComLink.png|36x36px|Recon Module]] | |recon = [[File:Exploration-Recon Module-ComLink.png|36x36px|Recon Module]] | ||
|monster = [[File:Exploration-Monstrous Codex-ComLink.png|36x36px|Monster Module]] | |monster = [[File:Exploration-Monstrous Codex-ComLink.png|36x36px|Monster Module]] | ||
− | }} {{{title}}}</div><div style="text-align:left; height:auto; background:#c7dbea; border-width:5px; padding: 5px 5px {{#switch:{{{display|}}}|#default=5px|bubble=18px}} 5px; border-color:#114255; border-radius:7px;" class="NavContent"> | + | }} {{{title}}}</div><div style="text-align:left; height:auto; background:#c7dbea; border-width:5px; padding: 5px 5px {{#switch:{{{display|}}}|#default=5px|bubble=18px}} 5px; border-color:#114255; border-radius:7px;" class="NavContent">{{#switch:{{{center|}}}|#default=|yes=<center>}} |
− | <center>{{{content}}}</center> | + | {{{content}}}{{#switch:{{{center|}}}|#default=|yes=</center>}} |
</div></div><noinclude> | </div></div><noinclude> | ||
{{documentation}} [[Category:Showhide Templates]]</noinclude> | {{documentation}} [[Category:Showhide Templates]]</noinclude> |
Latest revision as of 22:32, 12 December 2015
{{{title}}}
{{{content}}}
[edit] [ ] Template documentation
Might want to separate the bubble template from the show/hide in case we want to have more bubbles in a showhide named "Information Modules" for areas that have a bunch, such as Faith in Armor. It would then work similar to Template:Dialogue/Showhide.
The above documentation is transcluded from Template:Exploration/Showhide/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |