Template:Main/doc

From Sword of Moonlight Wiki
Revision as of 19:26, 10 May 2024 by dlw>Mr Pie 5 (→‎Examples: Removing redlinks)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This hatnote template is meant to be in sections of an article mentioning information about another existing main article.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Article1

A main article.

Example
Article
Page namerequired
Second Article2

A second main article.

Example
Second Article
Page nameoptional
Third Article3

A third main article.

Example
Third Article
Page nameoptional

Examples

Code Result
{{Main|Special:WantedPages}}
Main article: Special:WantedPages
{{Main|Special:WantedPages#Section Title}}
Main article: Special:WantedPages
{{Main|Special:WantedPages|Special:UncategorizedPages}}
{{Main|Special:WantedPages|Special:UncategorizedPages|Special:UncategorizedCategories}}
{{Main|Special:WantedPages{{!}}Page 1}} (Custom link label)
Main article: Page 1

Dependencies

This template requires the {{Hatnote}} metatemplate.

Source

Roughly based on Wikipedia's For Template.