Šablóna:NewsItem: Rozdiel medzi revíziami
(Pomocna sablona zobrazujuca oznam ako box) |
(Lepsi opis) |
||
Riadok 20: | Riadok 20: | ||
= Template:NewsItem = | = Template:NewsItem = | ||
− | A workhorse template generating news items | + | A workhorse template generating news items used by [[Template:News]]. |
− | + | Allows for two styles of usage: | |
− | * In the ''old style'', the image is provided as full MediaWiki link passed via the parameter <code>image</code>, and the link is given as MW link passed via <code>link</code>. The title is not a link (unless made so explicitly), the image links to its own page | + | * In the ''new style'', the file name of the image is given via the parameter <code>image-name</code>, and the news link is given as <code>link-text</code> and target (either <code>link-internal</code> or <code>link-external</code>). The template then not only shows the link below the news item's text, but also links the image, the title, and the “more” arrow to the target. |
+ | * In the ''old style'', the image is provided as full MediaWiki link passed via the parameter <code>image</code>, and the link is given as MW link passed via <code>link</code>. The link is show below the news item's text and repeated inside the “more“ arrow. The title is not a link (unless made so explicitly), the image links to its own page (or the target given explicitly in the <code>link=</code> argument). | ||
</noinclude> | </noinclude> |
Verzia zo dňa a času 13:04, 16. júl 2015
{{{title}}}
{{{text}}}Template:NewsItem
A workhorse template generating news items used by Template:News.
Allows for two styles of usage:
- In the new style, the file name of the image is given via the parameter
image-name
, and the news link is given aslink-text
and target (eitherlink-internal
orlink-external
). The template then not only shows the link below the news item's text, but also links the image, the title, and the “more” arrow to the target. - In the old style, the image is provided as full MediaWiki link passed via the parameter
image
, and the link is given as MW link passed vialink
. The link is show below the news item's text and repeated inside the “more“ arrow. The title is not a link (unless made so explicitly), the image links to its own page (or the target given explicitly in thelink=
argument).