Module:Hatnote: Difference between revisions

    m>Mr. Stradivarius
    m>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 an unlimited number of
    -- Otherwise, produces "Main article: xxx". Accepts a table of arguments.
    -- positional parameters, each of which is a page name. If the first positional
    -- Numerical keys for this table are the page names. If the first page name is
    -- parameter is not in mainspace, uses "page" instead of "article". If more
    -- not in mainspace, uses "page" instead of "article". If more than one page is
    -- than one page is specified, the function uses plural forms.
    -- specified, the function uses plural forms. Display names can be specified for
    -- each page name by using the arguments l1, l2, etc.
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------