(Pomocna sablona zobrazujuca oznam ako box)
 
(Lepsi opis)
Riadok 20: Riadok 20:
 
= Template:NewsItem =
 
= Template:NewsItem =
  
A workhorse template generating news items. Allows for two styles of usage:
+
A workhorse template generating news items used by [[Template:News]].
  
* 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.
+
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. The link is repeated inside the “more“ arrow and show below the news item's text.
+
* 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 as link-text and target (either link-internal or link-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 via link. 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 link= argument).