Šablóna:News: Rozdiel medzi revíziami
(Menej restriktivna podmienka na zobrazovanie plnej verzie oznamu) |
|||
Riadok 1: | Riadok 1: | ||
− | {{NewsItem | + | {{#ifexpr: {{#rpos:{{PAGENAME}}|News}}+1 or {{#rpos:{{PAGENAME}}|news}}+1 |
+ | |{{NewsItem | ||
|title={{{title}}} | |title={{{title}}} | ||
|image={{{image|}}} | |image={{{image|}}} | ||
|when={{{when|}}} | |when={{{when|}}} | ||
− | |link= | + | |link={{{link|}}} |
− | |link-internal= | + | |link-internal={{{link-internal|}}} |
− | |link-external={{ | + | |link-external={{{link-external|}}} |
− | | | + | |link-text={{{link-text|}}} |
− | | | + | |text={{{text|}}} |
− | }}<noinclude> | + | }} |
+ | |{{NewsItem | ||
+ | |title={{{title}}} | ||
+ | |image={{{image|}}} | ||
+ | |when={{{when|}}} | ||
+ | |link-internal=News#{{anchorencode:{{{title}}}}} | ||
+ | |link-text={{{title}}} | ||
+ | }}}}<noinclude> | ||
= Template:News = | = Template:News = | ||
Verzia zo dňa a času 16:47, 24. január 2017
{{{title}}}
Template:News
This template generates news items that are fully displayed in the News page, and displayed in a stripped-down form when transcluded, e.g., to the Introduction page.
Actual wikitext of the news item is generated by Template:NewsItem. The present template sets its argument according to the page where the item is being displayed.