Difference between revisions of "Template:See also"
From Veloopti Help
(Created page with "{{rellink|extraclasses=boilerplate seealso|{{{altphrase|See also}}}: {{#if:{{{1<includeonly>|</includeonly>}}} |<!--then:-->[[:{{{1}}}{{#if:{{{label 1|{{{l1|}}}}}}|{{!}}{{{lab...") |
|||
Line 1: | Line 1: | ||
− | {{rellink|extraclasses=boilerplate seealso|{{{altphrase|See also}}}: {{#if:{{{1<includeonly>|</includeonly>}}} |<!--then:-->[[:{{{1}}}{{#if:{{{label 1|{{{l1|}}}}}}|{{!}}{{{label 1|{{{l1}}}}}}}}]] |<!--else:-->'''Error: [[Template:See also|Template must be given at least one article name]]''' | + | {{rellink|extraclasses=mw-tpl-boilerplate mw-tpl-seealso|{{{altphrase|See also}}}: {{#if:{{{1<includeonly>|</includeonly>}}} |<!--then:-->[[:{{{1}}}{{#if:{{{label 1|{{{l1|}}}}}}|{{!}}{{{label 1|{{{l1}}}}}}}}]] |<!--else:-->'''Error: [[Template:See also|Template must be given at least one article name]]''' |
}}{{#if:{{{2|}}}|{{#if:{{{3|}}}|, | and }} [[:{{{2}}}{{#if:{{{label 2|{{{l2|}}}}}}|{{!}}{{{label 2|{{{l2}}}}}}}}]] | }}{{#if:{{{2|}}}|{{#if:{{{3|}}}|, | and }} [[:{{{2}}}{{#if:{{{label 2|{{{l2|}}}}}}|{{!}}{{{label 2|{{{l2}}}}}}}}]] | ||
}}{{#if:{{{3|}}}|{{#if:{{{4|}}}|, |, and }} [[:{{{3}}}{{#if:{{{label 3|{{{l3|}}}}}}|{{!}}{{{label 3|{{{l3}}}}}}}}]] | }}{{#if:{{{3|}}}|{{#if:{{{4|}}}|, |, and }} [[:{{{3}}}{{#if:{{{label 3|{{{l3|}}}}}}|{{!}}{{{label 3|{{{l3}}}}}}}}]] |
Revision as of 15:27, 12 March 2013
See also: [[:{{{1}}}]]
<templatedata> { "params": { "1": { "label": "Page name", "type": "wiki-page-name", "required": true, "suggested": true, "description": "Full name of related page" } }, "description": "Display a note about a related page.", "format": "inline" } </templatedata>
1 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 ":" -->
2 Example
Code | Result |
---|---|
{{See also|Article}} | See also: Article
|
{{See also|Article|label 1=Alternative title for Article}} | See also: Alternative title for Article
|
{{See also|Article|Article 2}} | See also: Article and Wikipedia:Article 2
|
{{See also|Article|Article 2|Article 3}} | |
{{See also|Article|Article 2|label 2=Alternative title for Article 2}} | See also: Article and Alternative title for Article 2
|
And so on up to 15 parameters.
Language: | English |
---|
The above documentation is transcluded from Template:See also/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |