Template:See also: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<div role="note" class="hatnote noexcerpt">See also: [[{{{1|}}}{{#if:{{{custom|}}}|{{!}}{{{custom|}}}]]|]]}}</div><noinclude>{{documentation|content=Inserts a ''see also'' onto a page, as a hatnote. == Example == ; Wikitext <pre>{{See also|Hatnote}}</pre> ; Result {{See also|Hatnote}} Use the custom parameter to att a custom text: ; Wikitext <pre>{{See also|Hatnote|custom=Custom text}}</pre> ; Result {{See also|Hatnote|custom=Custom text}} Category:Templates ==...") |
No edit summary |
||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<div role="note" class="hatnote noexcerpt">See also: [[{{{1|}}}{{#if:{{{ | <includeonly><div role="note" class="hatnote noexcerpt">See also: {{#if: {{{custom|}}} | [[{{{1|}}}{{!}}{{{custom|}}}]]|{{#if: {{{1|}}} | [[{{{1|}}}]] | {{color|red|Error! No link!}}}}}}{{#if: {{{3|}}} | ,}} {{#if: {{{3|}}} | | {{#if: {{{2|}}} | and |}}}} {{#if: {{{custom2|}}} | [[{{{2|}}}{{!}}{{{custom2|}}}]]|{{#if: {{{2|}}} | [[{{{2|}}}]]}}}}{{#if: {{{4|}}} | ,}} {{#if: {{{4|}}} | | {{#if: {{{3|}}} | and |}}}} {{#if: {{{custom3|}}} | [[{{{3|}}}{{!}}{{{custom3|}}}]]|{{#if: {{{3|}}} | [[{{{3|}}}]]}}}}{{#if: {{{5|}}} | ,}} {{#if: {{{5|}}} | | {{#if: {{{4|}}} | and |}}}} {{#if: {{{custom4|}}} | [[{{{4|}}}{{!}}{{{custom4|}}}]]|{{#if: {{{4|}}} | [[{{{4|}}}]]}}}} {{#if: {{{custom5|}}} | and [[{{{5|}}}{{!}}{{{custom5|}}}]] | {{#if: {{{5|}}} | and [[{{{5|}}}]]}}}}</div></includeonly><noinclude>{{documentation|content=Inserts a ''see also'' onto a page, as a hatnote. | ||
== Example == | === Example 1 === | ||
; Wikitext | ; Wikitext | ||
<pre>{{See also|Hatnote}}</pre> | <pre>{{See also|Hatnote}}</pre> | ||
Line 15: | Line 15: | ||
{{See also|Hatnote|custom=Custom text}} | {{See also|Hatnote|custom=Custom text}} | ||
[[Category:Templates]] | === Example 2 === | ||
Multiple links can be added. | |||
; Wikitext | |||
<pre>{{See also|Hatnote|Hatnote}}</pre> | |||
; Result | |||
{{See also|Hatnote|hatnote}} | |||
; Wikitext | |||
<pre>{{See also|Hatnote|Hatnote|custom=Custom text|custom2=Custom text 2}}</pre> | |||
; Result | |||
{{See also|Hatnote|Hatnote|custom=Custom text|custom2=Custom text 2}} | |||
=== Example 3 === | |||
Up to a maximum of 5. | |||
; Wikitext | |||
<pre>{{See also|Hatnote|Hatnote|Hatnote|Hatnote|Hatnote}}</pre> | |||
; Result | |||
{{See also|Hatnote|Hatnote|Hatnote|Hatnote|Hatnote}} | |||
; Wikitext | |||
<pre>{{See also|Hatnote|Hatnote|Hatnote|Hatnote|Hatnote|custom=Custom text|custom2=Custom text 2|custom5=Custom text 5}}</pre> | |||
; Result | |||
{{See also|Hatnote|Hatnote|Hatnote|Hatnote|Hatnote|custom=Custom text|custom2=Custom text 2|custom5=Custom text 5}} | |||
[[Category:Templates]][[Category:Disambiguation templates]] | |||
== Template data == | == Template data == | ||
Line 24: | Line 52: | ||
"label": "Link" | "label": "Link" | ||
}, | }, | ||
"custom": {} | "2": {}, | ||
"3": {}, | |||
"4": {}, | |||
"5": {}, | |||
"custom": {}, | |||
"custom2": {}, | |||
"custom3": {}, | |||
"custom4": {}, | |||
"custom5": {} | |||
} | } | ||
} | } | ||
</templatedata>}}</noinclude> | </templatedata>}}</noinclude> |
Latest revision as of 14:23, 27 December 2023
Template documentation
Inserts a see also onto a page, as a hatnote.
Example 1
- Wikitext
{{See also|Hatnote}}
- Result
See also: Hatnote
Use the custom parameter to att a custom text:
- Wikitext
{{See also|Hatnote|custom=Custom text}}
- Result
See also: Custom text
Example 2
Multiple links can be added.
- Wikitext
{{See also|Hatnote|Hatnote}}
- Result
- Wikitext
{{See also|Hatnote|Hatnote|custom=Custom text|custom2=Custom text 2}}
- Result
See also: Custom text and Custom text 2
Example 3
Up to a maximum of 5.
- Wikitext
{{See also|Hatnote|Hatnote|Hatnote|Hatnote|Hatnote}}
- Result
- Wikitext
{{See also|Hatnote|Hatnote|Hatnote|Hatnote|Hatnote|custom=Custom text|custom2=Custom text 2|custom5=Custom text 5}}
- Result
Template data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Link | 1 | no description | Unknown | optional |
2 | 2 | no description | Unknown | optional |
3 | 3 | no description | Unknown | optional |
4 | 4 | no description | Unknown | optional |
5 | 5 | no description | Unknown | optional |
custom | custom | no description | Unknown | optional |
custom2 | custom2 | no description | Unknown | optional |
custom3 | custom3 | no description | Unknown | optional |
custom4 | custom4 | no description | Unknown | optional |
custom5 | custom5 | no description | Unknown | optional |