You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

Difference between revisions of "Template:See also/doc"

From Wikitech-static
Jump to navigation Jump to search
imported>Krinkle
 
imported>Quiddity
m (fix)
 
(3 intermediate revisions by 2 users not shown)
Line 4: Line 4:


==Usage==
==Usage==
{{tlx|See also}} is used to create [[w:Wikipedia:|hatnotes]] to point to a small number of other, related, titles at the '''top''' of [[Wikipedia:Help:Section|article sections]] according to [[Wikipedia:Wikipedia:Layout|Wikipedia:Layout]]. It is not for use in the "See also" ''section'' at the bottom of an article.
{{tlx|See also}} is used to create [[w:Wikipedia:Hatnote|hatnotes]] to point to a small number of other, related, titles at the '''top''' of [[Wikipedia:Help:Section|article sections]] according to [[Wikipedia:Wikipedia:Layout|Wikipedia:Layout]]. It is not for use in the "See also" ''section'' at the bottom of an article.




Line 19: Line 19:
! Code!! Result
! Code!! Result
|-  
|-  
| valign="top"|<code><nowiki>{{See also|Article}}</nowiki></code>||{{See also|Article}}
| valign="top"|{{Tlx|See also|Article}}||{{See also|Article}}
|-  
|-  
| valign="top"|<code><nowiki>{{See also|text=Text here.}}</nowiki></code>||{{See also|text=Text here.}}
| valign="top"|{{Tlx|See also|Article|3=label 1=Alternative title for Article}}||{{See also|Article|label 1=Alternative title for Article}}
|-  
|-  
| valign="top"|<code><nowiki>{{See also|Article|label 1=Alternative title for Article}}</nowiki></code>||{{See also|Article|label 1=Alternative title for Article}}
| valign="top"|{{Tlx|See also|Article|Article 2}}||{{See also|Article|Wikipedia:Article 2}}
|-  
|-  
| valign="top"|<code><nowiki>{{See also|Article|Article 2}}</nowiki></code>||{{See also|Article|Wikipedia:Article 2}}
| valign="top"|{{Tlx|See also|Article|Article 2|Article 3}}||{{See also|Article|Wikipedia:Article 2|Wikipedia:Article 3}}
|-  
|-  
| valign="top"|<code><nowiki>{{See also|Article|Article 2|Article 3}}</nowiki></code>||{{See also|Article|Wikipedia:Article 2|Wikipedia:Article 3}}
| valign="top"|{{Tlx|See also|Article|Article 2|4=label 2=Alternative title for Article 2}}||{{See also|Article|Wikipedia:Article 2|label 2=Alternative title for Article 2}}
|-
| valign="top"|<code><nowiki>{{See also|Article|Article 2|label 2=Alternative title for Article 2}}</nowiki></code>||{{See also|Article|Wikipedia:Article 2|label 2=Alternative title for Article 2}}
|}
|}
''And so on up to 15 parameters.''
''And so on up to 15 parameters.''
Line 38: Line 36:
[[Category:Templates]]
[[Category:Templates]]
<!-- ADD INTERWIKIS BELOW THIS LINE -->
<!-- ADD INTERWIKIS BELOW THIS LINE -->
{{languages}}
</includeonly>
</includeonly>
<templatedata>
{
"params": {
"1": {
"type": "wiki-page-name",
"required": true,
"label": "Page 1"
},
"2": {
"label": "Page 2",
"type": "wiki-page-name"
},
"3": {},
"4": {},
"5": {},
"6": {},
"altphrase": {
"type": "string",
"default": "See also",
"description": "Override the default \"See also\" phrase"
},
"label 1": {
"label": "Label 1",
"type": "string"
},
"label 2": {},
"label 3": {},
"label 4": {},
"label 5": {},
"label 6": {}
},
"paramOrder": [
"altphrase",
"1",
"label 1",
"2",
"label 2",
"3",
"label 3",
"4",
"label 4",
"5",
"label 5",
"6",
"label 6"
],
"format": "inline",
"description": "Pretty links to related information. Looks nice under an h2 heading."
}
</templatedata>

Latest revision as of 19:52, 19 September 2021

Template:Timw


Usage

{{See also}} 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. It is not for use in the "See also" section at the bottom of an article.


{{See also|Article 1|...|Article 15}}
  • One to fifteen articles can be listed.
  • The word "and" is always placed between the final two entries.
  • If more than 15 entries are supplied, a message will be displayed pointing out the problem.
  • You can use parameters label 1 to label 15 to specify alternative labels for the links.
adding newline characters will break article links <1-- presumably because of the leading ":" -->

Example

Code Result
{{See also|Article}}
{{See also|Article|label 1=Alternative title for Article}}
{{See also|Article|Article 2}}
{{See also|Article|Article 2|Article 3}}
{{See also|Article|Article 2|label 2=Alternative title for Article 2}}

And so on up to 15 parameters.


<templatedata> { "params": { "1": { "type": "wiki-page-name", "required": true, "label": "Page 1" }, "2": { "label": "Page 2", "type": "wiki-page-name" }, "3": {}, "4": {}, "5": {}, "6": {}, "altphrase": { "type": "string", "default": "See also", "description": "Override the default \"See also\" phrase" }, "label 1": { "label": "Label 1", "type": "string" }, "label 2": {}, "label 3": {}, "label 4": {}, "label 5": {}, "label 6": {} }, "paramOrder": [ "altphrase", "1", "label 1", "2", "label 2", "3", "label 3", "4", "label 4", "5", "label 5", "6", "label 6" ], "format": "inline", "description": "Pretty links to related information. Looks nice under an h2 heading." } </templatedata>