Template:Hasdialogue/doc: Difference between revisions

From [N8]
Jump to navigation Jump to search
Created page with "{{Documentation}} The {{t|hasdialogue}} template is used to indicate and link to a dialogue page for any given article. For NPCs, it also generates a list of all the other..."
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Documentation}}
{{Documentation}}
The {{t|hasdialogue}} template is used to indicate and link to a dialogue page for any given article. For [[NPC]]s, it also generates a list of all the other transcripts (missions, other npcs etc) they speak in (the same as {{tl|Speaksin}}). {{t|Speaksin/Page}} is used to format the individual page names in this list.
The {{t|hasdialogue}} template is used to indicate and link to a dialogue page for any given article. <!--For [[NPC]]s, it also generates a list of all the other transcripts (missions, other npcs etc) they speak in (the same as {{t|Speaksin}}). {{t|Speaksin/Page}} is used to format the individual page names in this list.-->


==Usage==
==Usage==
Line 9: Line 9:
** <code>npc</code>
** <code>npc</code>
** <code>mission</code>
** <code>mission</code>
** <code>miniquest</code>
<!--** <code>miniquest</code>-->
** <code>event</code>
** <code>event</code>
*'''link''' - Optional.  If the dialogue page is not found at <nowiki>Transcript:{{PAGENAME}}</nowiki> (which should only be the case in exceptional circumstances), used in place of the default link.   
*'''link''' - Optional.  If the dialogue page is not found at <nowiki>Transcript:{{PAGENAME}}</nowiki> (which should only be the case in exceptional circumstances), used in place of the default link.   
Line 19: Line 19:
{{hasdialogue}}
{{hasdialogue}}


<pre>{{hasdialogue|npc}}</pre> produces:
<pre>{{hasdialogue|Mission|journal=no}}</pre> produces:
{{hasdialogue|npc}}
{{hasdialogue|Mission|journal=no}}
 
<!--<pre>{{hasdialogue|npc}}</pre> produces:
{{hasdialogue|npc}}-->


<pre>{{hasdialogue|article|Transcripts}}</pre> produces:
<pre>{{hasdialogue|article|Transcripts}}</pre> produces:
{{hasdialogue|article|Transcripts}}
{{hasdialogue|article|Transcripts}}


<pre>{{hasdialogue|npc|name=Carter}}</pre> produces:
<!--<pre>{{hasdialogue|npc|name=Carter}}</pre> produces:
{{hasdialogue|npc|name=Carter}}
{{hasdialogue|npc|name=Carter}}-->


<includeonly>[[Category:Transclusion templates|{{BASEPAGENAME}}]][[Category:Transcript templates|{{PAGENAME}}]]</includeonly>
<includeonly>[[Category:Transclusion templates|{{BASEPAGENAME}}]][[Category:Transcript templates|{{PAGENAME}}]]</includeonly>

Latest revision as of 22:10, 14 June 2020

This is a documentation subpage for Template:Hasdialogue.
It contains usage information, categories, and other content that is not part of the original template page.

The {{hasdialogue}} template is used to indicate and link to a dialogue page for any given article.

Usage

Parameters

  • type - Optional (required if specifying link). Possible types are:
    • npc
    • mission
    • event
  • link - Optional. If the dialogue page is not found at Transcript:{{PAGENAME}} (which should only be the case in exceptional circumstances), used in place of the default link.
  • name - Optional. Name of the npc to show dialogues for, if different from the page name.
  • journal - Optional. Enter value 'no' if there's no journal. Default is yes.

Examples

{{hasdialogue}}

produces:

{{hasdialogue|Mission|journal=no}}

produces:


{{hasdialogue|article|Transcripts}}

produces:



Data

Show/hide template's data

The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date.

The {{hasdialogue}} template is used to indicate and link to a dialogue page for any given article.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Type1

The type of article the dialogue belongs to (one of: npc, familiar, pet, quest, miniquest, saga, event, item, case, voyage, mystery, research, scenery)

Example
npc
Stringoptional
Link2

Link to the dialogue page if it is not Transcript:{{PAGENAME}} (this should only be needed in exceptional circumstances)

Stringoptional
Namename

Name of the npc, familiar or pet to show dialogues for, if different from the page name.

Example
Wise Old Man
Page nameoptional