Šablóna:News: Rozdiel medzi revíziami

(Sablona pre novinky s podporou transkluzie)
Riadok 1: Riadok 1:
<div class="news-article">
+
{{NewsItem
== {{{title}}} ==
+
      |title={{{title}}}
<span class="news-date">{{{when}}}</span>
+
      |image={{{image|}}}
<p>{{{link}}}</p>
+
      |image-name={{{image-name|}}}
[[{{{image}}}|left|link=]]
+
      |when={{{when|}}}
<p class="news_paragraph">{{{text}}}</p>
+
      |link={{#ifeq: {{#explode:{{PAGENAME}}|/|0}} | News | {{{link|}}} | }}
</div>
+
      |link-internal={{#ifeq: {{#explode:{{PAGENAME}}|/|0}} | News |{{{link-internal|}}} | News#{{anchorencode:{{{title}}}}} }}
 +
      |link-external={{#ifeq: {{#explode:{{PAGENAME}}|/|0}} | News |{{{link-external|}}} | }}
 +
      |link-text={{#ifeq: {{#explode:{{PAGENAME}}|/|0}} | News | {{{link-text|}}} | {{{title}}} }}
 +
      |text={{#ifeq: {{#explode:{{PAGENAME}}|/|0}} | News | {{{text|}}} |}}
 +
}}<noinclude>
 +
= 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.
 +
</noinclude>

Verzia zo dňa a času 13:08, 16. júl 2015

{{{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.