Template:See also: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
(Use documentation/template demo links)
 
(8 intermediate revisions by one other user not shown)
Line 1: Line 1:
<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.
<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.
__NO_TOC__


=== Example 1 ===
== Examples ==
; Wikitext
{{Template demo
<pre>{{See also|Hatnote}}</pre>
| style = list
 
| <nowiki>{{See also|Hatnote}}</nowiki>
; Result
| caption 2 = Use the custom parameter to att a custom text:
{{See also|Hatnote}}
| <nowiki>{{See also|Hatnote|custom=Custom text}}</nowiki>
 
| caption 3 = Multiple links can be added.
Use the custom parameter to att a custom text:
| <nowiki>{{See also|Hatnote|Hatnote}}</nowiki>
; Wikitext
| caption 4 = With multiple custom text
<pre>{{See also|Hatnote|custom=Custom text}}</pre>
| <nowiki>{{See also|Hatnote|Hatnote|custom=Custom text|custom2=Custom text 2}}</nowiki>
 
| caption 5 = Up to a maximum of 5.
; Result
| <nowiki>{{See also|Hatnote|Hatnote|Hatnote|Hatnote|Hatnote}}</nowiki>
{{See also|Hatnote|custom=Custom text}}
| caption 6 = Custom text on select links
 
| <nowiki>{{See also|Hatnote|Hatnote|Hatnote|Hatnote|Hatnote|custom=Custom text|custom2=Custom text 2|custom5=Custom text 5}}</nowiki>
=== Example 2 ===
}}
; Wikitext
<pre>{{See also|Hatnote|Hatnote}}</pre>
 
; Result
{{See also|Hatnote|hatnote}}
 
; Wikitext
<pre>{{See also|Hatnote|Hatnote|custom1=Custom text|custom2=Custom text 2}}</pre>
 
; Result
{{See also|Hatnote|Hatnote|custom=Custom text|custom2=Custom text 2}}
 
[[Category:Templates]]


== Template data ==
== Template data ==
Line 37: Line 26:
"label": "Link"
"label": "Link"
},
},
"custom": {}
"2": {},
"3": {},
"4": {},
"5": {},
"custom": {},
"custom2": {},
"custom3": {},
"custom4": {},
"custom5": {}
}
}
}
}
</templatedata>}}</noinclude>
</templatedata>}}
[[Category:Templates]]
[[Category:Disambiguation templates]]
</noinclude>

Latest revision as of 22:12, 19 January 2025

Template documentation

Inserts a see also onto a page, as a hatnote. __NO_TOC__

Examples

Markup
{{See also|Hatnote}}
Renders as
See also: Hatnote

Use the custom parameter to att a custom text:

Markup
{{See also|Hatnote|custom=Custom text}}
Renders as
See also: Custom text

Multiple links can be added.

Markup
{{See also|Hatnote|Hatnote}}
Renders as
See also: Hatnote and Hatnote

With multiple custom text

Markup
{{See also|Hatnote|Hatnote|custom=Custom text|custom2=Custom text 2}}
Renders as
See also: Custom text and Custom text 2

Up to a maximum of 5.

Markup
{{See also|Hatnote|Hatnote|Hatnote|Hatnote|Hatnote}}
Renders as

Custom text on select links

Markup
{{See also|Hatnote|Hatnote|Hatnote|Hatnote|Hatnote|custom=Custom text|custom2=Custom text 2|custom5=Custom text 5}}
Renders as

Template data

No description.

Template parameters

ParameterDescriptionTypeStatus
Link1

no description

Unknownoptional
22

no description

Unknownoptional
33

no description

Unknownoptional
44

no description

Unknownoptional
55

no description

Unknownoptional
customcustom

no description

Unknownoptional
custom2custom2

no description

Unknownoptional
custom3custom3

no description

Unknownoptional
custom4custom4

no description

Unknownoptional
custom5custom5

no description

Unknownoptional