Jump to content

Template:See also

From Caseyverse Wiki
Revision as of 01:11, 17 August 2024 by mediawiki>Shirayuki (TRANSLATIONLANGUAGE)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<languages/>

File:Template-info.svg Template documentation

Template:Lua

<translate> <tvar name=1>{{See also}}</tvar> is used to create hatnotes to point to a small number of other, related, titles at the top of article sections according to Wikipedia:Layout.</translate> <translate> It is not for use in the "See also" section at the bottom of an article.</translate>

{{See also|<translate> Article 1</translate>|label 1=<translate> label1</translate>|<translate> Article 2</translate>|label 2=<translate> label2</translate>|...}}

<translate>

  • Any number of articles can be listed (at least one should be provided).</translate>

<translate>

  • The word "and" is always placed between the final two entries.</translate>

<translate>

  • You can use parameters label 1, label 2 and so on to specify alternative labels for the links.</translate>

<translate>

  • Parameter <tvar name=1>ll</tvar> makes this template use <tvar name=2>{{ll}}</tvar>, which provides automatic linking to translation in user language, as well as using a translated default link text (overriding with <tvar name=3>label n</tvar> still applies).

</translate>

<translate> adding newline characters will break article links</translate>

<translate>

Example

</translate> Template:(| class="wikitable" cellspacing="0" cellpadding="0" ! <translate> Code</translate> ! <translate> Result</translate> |- | valign="top" | {{See also|Article}} ||

|- | valign="top" | {{See also|Article|label 1=<translate> Alternative title for Article</translate>}} ||

|- | valign="top" | {{See also|Article|Article 2}} ||

|- | valign="top" | {{See also|Article|Article 2|Article 3}} ||

|- | valign="top" | {{See also|Article|Article 2|ll=TRUE}} ||

|- | valign="top" | {{See also|Article|Article 2|l2=<translate> Alternative title for Article 2</translate>}} ||

|Template:)

Template:See also/doc

[[Category:Templates{{#translation:}}]]