Module:Hatnote: Difference between revisions
Jump to navigation
Jump to search
update main function description
>Mr. Stradivarius (add Template:Main) |
>Mr. Stradivarius (update main function description) |
||
Line 202: | Line 202: | ||
-- Produces a link to a main article or articles. If used in category or | -- Produces a link to a main article or articles. If used in category or | ||
-- category talk space, produces "The main article for this category is xxx". | -- category talk space, produces "The main article for this category is xxx". | ||
-- Otherwise, produces "Main article: xxx". Accepts | -- Otherwise, produces "Main article: xxx". Accepts a table of arguments. | ||
-- | -- Numerical keys for this table are the page names. If the first page name is | ||
-- | -- not in mainspace, uses "page" instead of "article". If more than one page is | ||
-- specified, the function uses plural forms. Display names can be specified for | |||
-- each page name by using the arguments l1, l2, etc. | |||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||