Template:Hastranscript/doc: Difference between revisions
(Created page with "{{Documentation}} The {{t|Hastranscript}} template is used to indicate and link to/transclude a transcript page for any given article. ==Usage== <pre> {{hastranscript|type|link}} {{hastranscript|transclude=yes}} {{hastranscript|page|transclude=yes}} {{hastranscript|page1|page2|...|transclude=yes}} </pre> ==Parameters== There are two forms of usage for hastranscript. The first generates a messagebox linking to the full transcript page (and that's it); this box is gener...") |
(No difference)
|
Revision as of 00:30, 17 October 2024
The {{Hastranscript}}
template is used to indicate and link to/transclude a transcript page for any given article.
Usage
{{hastranscript|type|link}} {{hastranscript|transclude=yes}} {{hastranscript|page|transclude=yes}} {{hastranscript|page1|page2|...|transclude=yes}}
Parameters
There are two forms of usage for hastranscript. The first generates a messagebox linking to the full transcript page (and that's it); this box is generated by Template:Hastranscript/t. The second will transclude the contents of the transcript page onto the current page; this should be used for shorter transcripts, generally.
Link box
- type - Optional (required if specifying link). Possible types are:
npc
- This option also adds a link to a list of other transcripts (currently available on the wiki) the NPC speaks in; the list is populated via Template:Transcript list.pet
quest
miniquest
event
item
scenery
- 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.
Transclusion
- transclude=yes - required to enable transclusion
- page - optional, the name of the page to transclude (without 'Transcript:'); will default to {{PAGENAME}} if not specified
- page1, page2, ..., pageN - multiple mw.pages to transclude, if desired
Examples
Link box
{{hastranscript}}
produces:
{{hastranscript|npc}}
produces:
Transclusion
{{hastranscript|Lift manual|transclude=yes}}
produces:
Template 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. This template is used to indicate and link to a dialogue page for any given article.
|