Template:Truncate

From Fallen London Wiki
Template documentation (for the above template, sometimes hidden or invisible)

Ensures the text argument does not exceed 250 characters, as described in the Editing Guidelines on this Wiki. Text longer than that limit is truncated, an error message is displayed in the article, and the article is flagged for review.

This Template is intended for use by other Templates rather than direct use in Wiki content. It should used as a "guardrail" to help inexperienced Wiki editors adhere to the Editing Guidelines. It should apply to any Template field that is intended to include direct quotes of game text to which the Editing Guidelines apply.

Ellipses in brackets such as "[…]" do not count towards the character limit and should be used to represent game text that has been elided to fit the length requirements. Line breaks, double- and triple-single quotes for ''italics'' or '''bold''', and HTML elements are also not counted for the character limit.

Other placeholder text can be used without counting towards truncation by wrapping the text in an <span data-truncate="ignore">HTML element with the corresponding property</span>. This should be used to indicate variant text or add formatting, not to paraphrase static text. Use templates for this when possible, e.g. using Template:Af to display the player's terms of address as [formal address].

Arguments

  • 1 The first positional argument is the game text to be truncated.
  • chars The character limited before truncation occurs. Defaults to 250. Intended for cases where a quote is split between multiple fields, in which case the character limit for the second field can be set to 250 minus the length of the first field.


Ensures the text argument does not exceed 250 characters, as described in the [[Editing Guidelines]] on this Wiki. Text longer than that limit is truncated, an error message is displayed in the article, and the article is flagged for review.

This Template is intended for use by other Templates rather than direct use in Wiki content. It should used as a "guardrail" to help inexperienced Wiki editors adhere to the Editing Guidelines. It should apply to any Template field that is intended to include direct quotes of game text to which the Editing Guidelines apply.

Ellipses in brackets such as "{{...}}" do not count towards the character limit and should be used to represent game text that has been elided to fit the length requirements. Line breaks, double- and triple-single quotes for <nowiki>''italics'' or '''bold'''</nowiki>, and HTML elements are also not counted for the character limit.

Other placeholder text can be used without counting towards truncation by wrapping the text in an <nowiki><span data-truncate="ignore">HTML element with the corresponding property</span></nowiki>. This should be used to indicate variant text or add formatting, not to paraphrase static text. Use templates for this when possible, e.g. using [[Template:Af]] to display the player's terms of address as {{IL|Addressed as:|Appearance=[formal address]}}.

Template parameters

ParameterDescriptionTypeStatus
Game text1

The game text that is to be truncated.

Stringsuggested
Maximum characterschars

The maximum allowed length before truncation.

Default
250
Numberoptional

Visit Template:Truncate/doc to edit this text! (How does this work?)