Template:Main

From Baldur's Gate 3 Wiki
Revision as of 09:33, 20 December 2023 by Willowisp (talk | contribs) (Created page with "<includeonly><div role="note" class="hatnote noexcerpt">Main article{{#if: {{{2|}}}|s}}: {{#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|}}}{...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentation

Inserts a Main article: onto a page, as a hatnote.

Example 1

Wikitext
{{Main|Hatnote}}
Result
Main article: Hatnote

Use the custom parameter to add a custom text:

Wikitext
{{Main|Hatnote|custom=Custom text}}
Result
See also: Custom text

Example 2

Multiple links can be added.

Wikitext
{{Main|Hatnote|Hatnote}}
Result
Main articles: Hatnote and hatnote
Wikitext
{{Main|Hatnote|Hatnote|custom=Custom text|custom2=Custom text 2}}
Result
Main articles: Custom text and Custom text 2

Example 3

Up to a maximum of 5.

Wikitext
{{Main|Hatnote|Hatnote|Hatnote|Hatnote|Hatnote}}
Result
Main articles: Hatnote, Hatnote, Hatnote, Hatnote and Hatnote
Wikitext
{{Main|Hatnote|Hatnote|Hatnote|Hatnote|Hatnote|custom=Custom text|custom2=Custom text 2|custom5=Custom text 5}}
Result

Template data

No description.

Template parameters

ParameterDescriptionTypeStatus
Link1

no description

Unknownoptional
customcustom

no description

Unknownoptional