Difference between revisions of "Template:Artifact/Showhide"
From SpiralKnights
m (add switch for misc, remove silly "dialogue" copypaste derp) |
m (this is more annoying than helpful) |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#switch:{{{type}}} | + | <includeonly>{{#switch:{{{type|misc}}} |
|misc = | |misc = | ||
− | <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: | + | <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:36px; color: #000000; background:transparent; padding: 5px 5px 5px 5px; font-size:120%;" class="NavHead">[[File:Artifact-{{{title|Purple Spiral}}}.png|36x36px]] {{{title}}}</div><div style="text-align:left; height:auto; color:#FFF; background:#114255; border-width:5px; padding: 5px 5px 5px 15px; border-color:#114255; border-radius:7px; font-size:120%;" class="NavContent"> |
− | <span style="color:#6CB2BA"> | + | <span style="color:#6CB2BA">{{{description}}}</span> |
:{{{content}}}</div></div> | :{{{content}}}</div></div> | ||
|recon module = | |recon module = | ||
− | <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: | + | <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:36px; color: #000000; background:transparent; padding: 5px 5px 5px 5px; font-size:120%;" class="NavHead">[[File:Artifact-Recon Module.png|36x36px]] Recon Module: {{{title}}}</div><div style="text-align:left; height:auto; color:#FFF; background:#114255; border-width:5px; padding: 5px 5px 5px 15px; border-color:#114255; border-radius:7px; font-size:120%;" class="NavContent"> |
− | <span style="color:#6CB2BA"> | + | <span style="color:#6CB2BA">{{{description}}}</span> |
:{{{content}}}</div></div> | :{{{content}}}</div></div> | ||
|echo stone= | |echo stone= | ||
− | <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: | + | <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:36px; color: #000000; background:transparent; padding: 5px 5px 5px 5px; font-size:120%;" class="NavHead">[[File:Artifact-Echo Stone.png|36x36px]] Echo Stone: {{{title}}}</div><div style="text-align:left; height:auto; color:#FFF; background:#114255; border-width:5px; padding: 10px 10px 10px 10px; border-color:#114255; border-radius:7px; font-size:120%;" class="NavContent"> |
<span style="color:#6CB2BA">A smooth, white stone recovered in the Sanctuary. Holding it, you hear a voice within your mind:<br><br></span><div style="text-align:center; height:auto; color:#FFF; background:#798FB4; border-width:5px; padding: 5px 5px 5px 5px; border-color:#114255; border-radius:7px; font-size:120%;" class="NavContent"> | <span style="color:#6CB2BA">A smooth, white stone recovered in the Sanctuary. Holding it, you hear a voice within your mind:<br><br></span><div style="text-align:center; height:auto; color:#FFF; background:#798FB4; border-width:5px; padding: 5px 5px 5px 5px; border-color:#114255; border-radius:7px; font-size:120%;" class="NavContent"> | ||
<small>{{uc:{{{content}}}}}</small></div></div></div> | <small>{{uc:{{{content}}}}}</small></div></div></div> | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{documentation}} [[Category:Showhide Templates]]</noinclude> | {{documentation}} [[Category:Showhide Templates]]</noinclude> |
Latest revision as of 17:05, 9 September 2015
Contents
Usage
To display the context of an artifact. Mimics closely the formats seen in-game, while being usable on the wiki. This template should not be used for Exploration Modules unless those modules are also artifacts that are retained in the player's arsenal. Use Template:Exploration/Showhide instead.
Code
When creating the artifact subpage:
{{Artifact/Showhide <noinclude>|state=uncollapsed</noinclude> |type = |title = |description = |content = }}<noinclude> [[Category:Artifacts]]</noinclude>
When implementing the artifact on a page (an example):
{{:Recon Module: Gloaming Wildwoods}}
Parameters
|type
- The type of artifact. Types used in this template include "echo stone," "misc," and "recon module."
|title
- the name of the artifact as seen next to the artifact's icon in the player's arsenal. For echo stones and recon module, leave out "Echo Stone:" and "Recon Module:" as this part of the name is built into the template.
|description
- The light blue text of the module seen in-game. Echo modules are all the same, so their descriptions are built into the template.
|content
- What appears within the showhide.
Examples
See what links here for examples of this template in action.
Notes
Template format is similar to Template:Dialogue/Showhide. The title of artifact showhides do not need to be as dyamic as dialogues. For example, dialogues are displayed on both mission pages and character pages. The title needs to be the character's name on the mission page, but the dialogue's location on the character's page. The title of an artifact's showhide is always the same.
The above documentation is transcluded from Template:Artifact/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. |