Template:Hasdialogue/doc: Difference between revisions
No edit summary |
mNo edit summary |
||
| 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 {{t|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
The {{hasdialogue}} template is used to indicate and link to a dialogue page for any given article.
Usage
{{hasdialogue|type|link}}
Parameters
- type - Optional (required if specifying link). Possible types are:
npcmissionevent
- 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.
|
||||||||||||||||||||
