(Undo revision 13626 by Kluka (talk))
(Navrat k verzii bez vyrazov)
Line 2: Line 2:
 
       |title={{{title}}}
 
       |title={{{title}}}
 
       |image={{{image|}}}
 
       |image={{{image|}}}
      |image-name={{{image-name|}}}
 
 
       |when={{{when|}}}
 
       |when={{{when|}}}
       |link={{#ifexpr: {{#pos:{{PAGENAME}}|News}} >= 0 or {{#pos:{{PAGENAME}}|news}} >= 0 | {{{link|}}} | }}
+
       |link={{#ifeq: {{#explode:{{PAGENAME}}|/|0}} | News | {{{link|}}} | }}
       |link-internal={{#ifexpr: {{#pos:{{PAGENAME}}|News}} >= 0 or {{#pos:{{PAGENAME}}|news}} >= 0 |{{{link-internal|}}} | News#{{anchorencode:{{{title}}}}} }}
+
       |link-internal={{#ifeq: {{#explode:{{PAGENAME}}|/|0}} | News |{{{link-internal|}}} | News#{{anchorencode:{{{title}}}}} }}
       |link-external={{#ifexpr: {{#pos:{{PAGENAME}}|News}} >= 0 or {{#pos:{{PAGENAME}}|news}} >= 0 |{{{link-external|}}} | }}
+
       |link-external={{#ifeq: {{#explode:{{PAGENAME}}|/|0}} | News |{{{link-external|}}} | }}
       |link-text={{#ifexpr: {{#pos:{{PAGENAME}}|News}} >= 0 or {{#pos:{{PAGENAME}}|news}} >= 0 | {{{link-text|}}} | {{{title}}} }}
+
       |link-text={{#ifeq: {{#explode:{{PAGENAME}}|/|0}} | News | {{{link-text|}}} | {{{title}}} }}
       |text={{#ifexpr: {{#pos:{{PAGENAME}}|News}} >= 0 or {{#pos:{{PAGENAME}}|news}} >= 0 | {{{text|}}} |}}
+
       |text={{#ifeq: {{#explode:{{PAGENAME}}|/|0}} | News | {{{text|}}} |}}
 
}}<noinclude>
 
}}<noinclude>
 
= Template:News =
 
= Template:News =
Line 15: Line 14:
  
 
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.
 
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>
 

Revision as of 14:13, 16 July 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.