Template:Hastranscript/doc

From Old School RuneScape Wiki
Jump to: navigation, search
Information icon-grey.svg
This is a documentation subpage for Template:Hastranscript.
It contains usage information, categories, and other content that is not part of the original template page.
Template:Hastranscript invokes function main in Module:Hastranscript using Lua.
Template:Hastranscript invokes Module:Hastranscript using Lua.

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
    • pet
    • quest
    • miniquest
    • event
    • item
  • 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 pages to transclude, if desired


Examples

Link box

{{hastranscript}}

produces:

{{hastranscript|npc}}

produces:

Transclusion

{{hastranscript|Lift manual|transclude=yes}}

produces:

The following text is transcluded from Transcript:Lift manual.
Troubleshooting your AMCE Lift-In-A-Box

"My lift doesn't work!"

  1. Have you added the pulleys? Make sure you have a long top beam with a pulley, and pulleys on the two crossbeams. We recommend AMCE Pulley-Beams-In-A-Box.
  2. Have you attached a rope? Wind one of your AMCE Ropes-In-A-Box through the pulleys.
  3. Is the platform broken? Repair it with one of your AMCE Beams-In-A-Box.
  4. Have you added the engine? The AMCE Lift-In-A-Box does not include an engine.
  5. Have you added coal to the engine? All compatible coal engines have a maximum load of five chunks of coal.
(AMCE Lift-In-A-Box, Pulley-Beams-In-A-Box, Beams-In-A-Box and Ropes-In-A-Box are all registered trademarks of Ali Morrisane Commercial Enterprises (AMCE) Ltd.)


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.

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

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Type1

The type of article the dialogue belongs to (one of: npc, pet, quest, miniquest, event, item)

Default
empty
Example
npc
Auto value
empty
Stringsuggested
Link2

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

Default
empty
Example
empty
Auto value
empty
Stringoptional
Transcludetransclude

Switch this template into transclusion mode. See documentation for details.

Default
empty
Example
yes
Auto value
empty
Booleanoptional