Template:Main/doc: Difference between revisions

From Sword of Moonlight Wiki
Jump to navigation Jump to search
dlw>Mr Pie 5
→‎Examples: Removing redlinks
 
m 1 revision imported
 
(No difference)

Latest revision as of 18:53, 12 September 2024

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.