Template:For-text/doc

From The Goon Show Depository

< Template:For-text

Revision as of 09:41, 8 September 2022 by Kurt (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

Modelled after {{for}}, {{for-text}} was created to allow custom text, including such modifications as quotation marks or a link, as part of both a topic and its suggested article.

Note: you must supply any formatting manually (unlike {{For}}, parameters aren't automatically bluelinked)

With one topic

  • {{For-text|TOPIC|CUSTOM TEXT}}
    For TOPIC, see CUSTOM TEXT.

With more than one topic

This template also supports up to five topics and their suggested articles:

  • {{For-text|TOPIC|CUSTOM TEXT|TOPIC 2|CUSTOM TEXT 2}}
    For TOPIC, see CUSTOM TEXT. For TOPIC 2, see CUSTOM TEXT 2.
  • {{For-text|TOPIC|CUSTOM TEXT|TOPIC 2|CUSTOM TEXT 2|TOPIC 3|CUSTOM TEXT 3|...}}
    For TOPIC, see CUSTOM TEXT. For TOPIC 2, see CUSTOM TEXT 2. For TOPIC 3, see CUSTOM TEXT 3. For TOPIC 4, see CUSTOM TEXT 4. For TOPIC 5, see CUSTOM TEXT 5.

Wikilinks and capitalization

Style note: When the context around a wikilink discusses the destination article itself (e.g., For more information, see Xyz; Main article: Xyz; This is discussed in Xyz) rather than the topic of that article (e.g., Tailors often use xyz on their clients' pants), use the capitalization of the article's title in the wikilinked text: [[Xyz]]. The same applies to subheadings: [[Xyz#PDQ|Xyz § PDQ]].

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:For-text in articles based on its TemplateData.

TemplateData for For-text

This template lists up to five articles on alternative meanings of a term. For further details and examples see the template documentation.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
First description1

A phrase describing an alternative meaning

Default
other uses
Example
other people with the surname Smith
Stringrequired
First link2

A phrase including a wikilink to the first alternative meaning.

Example
[[Smith (surname)]]
Stringrequired
Second description3

A phrase describing another meaning, if any

Example
people with the given name Smith
Stringoptional
Second link4

A page to link to for another meaning, if any.

Example
[[Smith (given name)]]
Stringoptional
Third description5

A phrase describing another meaning, if any

Stringoptional
Third link6

A page to link to for another meaning, if any.

Stringoptional
Fourth description7

A phrase describing another meaning, if any

Stringoptional
Fourth link8

A page to link to for another meaning, if any.

Stringoptional
Fifth description9

A phrase describing another meaning, if any

Stringoptional
Fifth link10

A page to link to for another meaning, if any.

Stringoptional