Template:Tact

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to: navigation, search

Template documentation
This documentation is transcluded from Template:Tact/doc. [edit] [history] [purge]

The tact, or transcript action, template is used on transcript pages for consistent styling on actions, as well as consistent wording on certain phrases.

Usage

* Example text
* {{tact|Description of an action.}}
* Example text

This will result in:

  • Example text
  • Description of an action.
  • Example text

Automatic options

The template also has some options that will automatically fill in the desired text:

Specific actions

{{tact|end}} will result in (Dialogue ends.)

{{tact|opens=Varrock Swordshop}} will result in (Varrock Swordshop interface opens.)

Should the page name not match the interface then a {{!}} pipe can be used {{tact|opens=Varrock Swordshop{{!}}Interface name}} which results in (Interface name interface opens.)


{{tact|receives=bronze sword}} will result in Player receives bronze sword.

The above does not automatically link due to sometimes requiring additional words such as a, an, or the: {{tact|receives=the Excalibur}} resulting in Player receives the Excalibur.

Similarly, {{tact|removes=bronze sword}} will result in Player has bronze sword removed from them..

Text ordering

These parameters can be used to omit repeating text and options within the transcript.

{{tact|previous}} will result in (Shows the previous options.)

{{tact|previous2}} will result in (Shows the previous-to-previous options.)

{{tact|initial}} will result in (Shows the initial options.)

{{tact|other}} will result in (Shows the other options.)

{{tact|above}} will result in (Same as above.)

{{tact|below}} will result in (Same as below.)

{{tact|above2}} will result in (See above.)

{{tact|below2}} will result in (See below.)

{{tact|continue}} will result in (Continues below.)

{{tact|continuea}} will result in (Continues above.)

{{tact|continue2|anchor-example}} will result in (Click to continue.) An anchor should be provided as the second parameter.

{{tact|see|Donie}} will result in (See the transcript for Donie.) A transcript name should be provided as the second parameter.

Anchors

Using an additional parameter with the text ordering parameters will pass that parameter as a link to a previously defined anchor within the transcript.

For example, putting {{anchor|anchor-example}} somewhere in the transcript and using {{tact|above2|anchor-example}} will result in (See above.), a link that points to that part in the transcript.

The anchor parameter can also be used to link to a section within the page. The following use of the template will link to the section specified in the anchor:

{{tact|below2|Section Two}}

==Section Two==

Be aware that if multiple sections have the same title, to link to an equally-named section other than the first, a space and a number must be appended to the anchor name in the template. The number is the position of the equally-named section within the page. So, in the following example, to link to the second equally-named section, a 2 would be used:

{{tact|below2|Section Two 2}}

==Section Two==
===Block Three===
====Section Two====

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.

A template to provide consistent styling for common transcript notations and actions.

This can be used to merely indicate an action happening, but can also be used to describe the specific interactions of the transcript, such navigating to an earlier or later part of the transcript, or the transcript ending.

These are the keywords that will generate the following text-ordering text in italics:

'end' will result in '(Dialogue ends).' 'previous' will result in '(Shows previous options).' 'previous2' will result in '(Shows previous-to-previous options).' 'initial' will result in '(Shows initial options).' other: '(Shows other options).' 'above' will result in '(Same as above).' 'below': '(Same as below).' 'above2' will result in '(See above).' 'below2' will result in '(See below).' 'continue' will result in '(Continues below).'

Any other text supplied as the first parameter will show the text, as-is.

The second, optional parameter is used to turn the words into a link to some anchor or section on the current page. An anchor can be created by using the anchor template. For example adding {{anchor|anchor-example}} to the transcript somewhere would allow you to specify "anchor-example" as the second parameter to the Tact template, and it will show a link to that section of the page.

There are also two other named parameters that allow specific text to be inserted when an interface opens, and when the player receives an item. These are: 'opens=' and 'receives='. 'opens' will generate text like this:'(Varrock Swordshop interface opens.)' if Varrock Swordshop was specified: open=Varrock Swordshop. 'receives' will generate something like this: 'Player receives bronze sword.', assuming 'receives=bronze sword' was specified

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Description/Action1descriptionaction

Description to add, or a keyword to expand on

Default
empty
Example
end, previous, previous2, initial, other, above, below, above2, below2, continue, Description of an action.
Auto value
empty
Stringsuggested
Link2link

The anchor/section link to use when this option is clicked on

Default
empty
Example
Section Two, anchor-example
Auto value
empty
Stringsuggested
Openopens

Used when a transcript opens an interface.

Default
empty
Example
Varrock Swordshop
Auto value
empty
Pageoptional
Player Receivesreceives

An option to specify if a player receives an item

Default
empty
Example
the [[Excalibur]]
Auto value
empty
Stringoptional