Difference between revisions of "Template:Dialogue/Showhide/doc"

From SpiralKnights

Jump to: navigation, search
m (Parameters)
m
Line 5: Line 5:
  
 
==Code==
 
==Code==
 +
For general dialogues:
 
<pre>
 
<pre>
 
{{Dialogue/Showhide
 
{{Dialogue/Showhide
Line 12: Line 13:
 
</pre>
 
</pre>
  
Or
+
For recon modules:
  
 
<pre>
 
<pre>
 
{{Dialogue/Showhide
 
{{Dialogue/Showhide
|type    =
+
|type    = recon module
 
|title  =  
 
|title  =  
|content =  
+
|intro  =
 +
|content =
 
}}
 
}}
 
</pre>
 
</pre>
  
 
==Parameters==
 
==Parameters==
===Required===
 
 
|title     
 
|title     
:the title text near the icon in the showhide. Please link these with <nowiki>[[PAGE LINKED TO]]</nowiki>. These should be used under certain conditions:
+
*the title text near the icon in the showhide. Please link these with <nowiki>[[PAGE LINKED TO]]</nowiki>. These should be used under certain conditions:
 
::Character Name: if the dialogue template is used on a page that is a location
 
::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
 
::Location Name: if the dialogue template is used on a page that is that character's page
  
 
|content
 
|content
:What appears within the showhide. Please link to the appropriate dialogue page, like so: <nowiki>{{:Rhendon Dialogue/Should You Choose to Accept}}</nowiki>
+
*What appears within the showhide. Please link to the appropriate dialogue page, like so: <nowiki>{{:Rhendon Dialogue/Should You Choose to Accept}}</nowiki>
  
===Optional===
 
 
|type
 
|type
 
*Either "dialogue" or "recon module." Defaults to dialogue.
 
*Either "dialogue" or "recon module." Defaults to dialogue.
 +
 +
|intro
 +
*Use only with recon module format. It's the light blue text part of the module seen in-game.
 +
  
 
==Examples==
 
==Examples==

Revision as of 21:14, 8 September 2015

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

For general dialogues:

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

For recon modules:

{{Dialogue/Showhide
|type    = recon module
|title   = 
|intro   = 
|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}}

|type

  • Either "dialogue" or "recon module." Defaults to dialogue.

|intro

  • Use only with recon module format. It's the light blue text part of the module seen in-game.


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