Difference between revisions of "Template:Dialogue/Showhide"

From SpiralKnights

Jump to: navigation, search
m (test)
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{{type|dialogue}}}
+
<includeonly><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:28px; color: #000000; background:transparent; padding: 5px 5px 5px 5px; font-size:120%;" class="NavHead">[[File:Map-icon-conversation.png|28x28px|Dialogue]]&nbsp;&nbsp;{{{title}}}</div><div style="text-align:left; height:auto; background:#c7dbea; border-width:5px; padding: 5px 5px 5px 5px; border-color:#114255; border-radius:7px; font-size:120%;" class="NavContent">
|dialogue=<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:28px; color: #000000; background:transparent; padding: 5px 5px 5px 5px; font-size:120%;" class="NavHead">[[File:Map-icon-conversation.png|28x28px|Dialogue]]&nbsp;&nbsp;{{{title}}}</div><div style="text-align:left; height:auto; background:#c7dbea; border-width:5px; padding: 5px 5px 5px 5px; border-color:#114255; border-radius:7px; font-size:120%;" class="NavContent">
+
{{{content}}}</div></div></includeonly><noinclude>
{{{content}}}</div></div>
+
|recon module =
+
<div class="NavFrame {{{state|collapsed}}}" style="width:410px; height:auto; background:#ebc94d; border-color:#000000; border-radius: 10px; border-width:2px; padding: 0px 0px 0px 0px;"><div style="text-align:left; height:28px; color: #000000; background:transparent; padding: 5px 5px 5px 5px; font-size:120%;" class="NavHead">[[File:Artifact-Recon Module.png|28x28px|Dialogue]]&nbsp;&nbsp;Recon Module: {{{title}}}</div><div style="text-align:left; height:auto; color:#FFF; background:#114255; border-width:5px; padding: 5px 5px 5px 5px; border-color:#114255; border-radius:7px; font-size:120%;" class="NavContent">
+
<span style="color:#6CB2BA">&nbsp;&nbsp;{{{intro}}}</span>
+
:{{{content}}}</div></div>
+
}}</includeonly><noinclude>
+
 
{{documentation}} [[Category:Showhide Templates]]</noinclude>
 
{{documentation}} [[Category:Showhide Templates]]</noinclude>

Latest revision as of 22:00, 8 September 2015

[edit] [purge] Template documentation

Usage

For use with Template:Dialogue to hide long dialogue sections as desired, when the information is useful but interrupts the flow of a page.

Code

{{Dialogue/Showhide
|title   = 
|content = 
}}

Parameters

|title

  • the title text near the icon in the showhide. Please link these with [[PAGE LINKED TO]]. These should be used under certain conditions:
Character Name: if the dialogue template is used on a page that is a location
Location Name: if the dialogue template is used on a page that is that character's page

|content

  • What appears within the showhide. Please link to the appropriate dialogue page, like so: {{:Rhendon Dialogue/Should You Choose to Accept}}

Examples

See what links here for examples of this template in action.

NPC subpages (NPCNAME Dialogue/Location) do not use this optional show/hide template, revealing an entire dialogue (entered into Template:Dialogue) alone on its own page for easy reading. A dialogue page is inserted into the showhide via {{:NAME OF DIALOGUE PAGE}} for optional reading on pages with other information.

If there are three or more characters - NPC 1, NPC2, The Player (you) - then the dialogue page does not include names, just location: {{:Dialogue/Location}}. An example of this is witnessed with Dialogue/Refuge. As a minor bonus, Category:Dialogues will organize such oddities under D, for "Dialogue," so users can easily find locations with complex multi-character dialogues. This does not include dialogues that are initiated separately, as with 4-2 Interface-icon-PvE.png Mission: A New Threat, applying to single dialogue screen initiations only.
Personal tools