Template:Main/doc: Difference between revisions

From PokéFarm Q Official Wiki
Jump to navigation Jump to search
(Created page with ";Description :This template creates a hat note to a main article. ;Usage :Place {{t|Main article}} followed by as many referral pages as needed up to 10 pages. ;Syntax :&#12...")
 
No edit summary
 
Line 3: Line 3:


;Usage
;Usage
:Place {{t|Main article}} followed by as many referral pages as needed up to 10 pages.
:Place {{t|Main}} followed by as many referral pages as needed up to 10 pages.


;Syntax
;Syntax
Line 9: Line 9:


;Sample output
;Sample output
:{{t|Main article|Season_6}} → {{Main article|Season_6}}
:{{t|Main article|Season_6}} → {{Main|Season_6}}


;Error message
;Error message
:This error appears if you use 11 or more pages (ignore red links)
:This error appears if you use 11 or more pages (ignore red links)
:{{Main article|page1|page2|page3|page4|page5|page6|page7|page8|page9|page10|page11}}
:{{Main|page1|page2|page3|page4|page5|page6|page7|page8|page9|page10|page11}}


:This appears (not technically an error) if no referrals are specified (empty parameter)
:This appears (not technically an error) if no referrals are specified (empty parameter)
:{{Main article}}
:{{Main}}


;Note
;Note

Latest revision as of 19:04, 24 January 2021

Description
This template creates a hat note to a main article.
Usage
Place {{Main}} followed by as many referral pages as needed up to 10 pages.
Syntax
{{Main article|<page1>|<page2>|<…>|<page10>}}
Sample output
{{Main article|Season_6}} →
Main article: Season_6
Error message
This error appears if you use 11 or more pages (ignore red links)
Main articles: page1, page2, page3, page4, page5, page6, page7, page8, page9, and page10 (too many parameters in {{main}})
This appears (not technically an error) if no referrals are specified (empty parameter)
Main article: [[{{{1}}}|{{{1}}}]]
Note
Do not wikify the referral page, the template does that for you.