Difference between revisions of "Help:Add a news item"

From Heureka Wiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
To add a news item which will be displayed automatically under News, do the following:
 
To add a news item which will be displayed automatically under News, do the following:
<br>1. Create the page. The page name will be the news heading.
+
==Alternative 1==
<br>2. Add the following code  
+
#Go to News in the left-hand navigation pane
 +
#Select [[Create_news_item]]
 +
#Fill in the correct data after the newsdate tag <nowiki>[[newsdate::YYYY-MM-YY]]</nowiki>. This tag is essential for the news list to work as expected.
 +
#After editing, save the page. It may take some time for the news list to be updated. To enforce updating, you can use the Purge command: http://heureka.resgeom.slu.se/wiki/index.php?title=Heureka_MediaWiki&action=purge
 +
 
 +
 
 +
==Alternative 2 (if alt 1 doesn't work)==
 +
#Create the page. The page name will be the news heading.
 +
#Add the following code  
 
  <nowiki>[[newsdate::YYYY-MM-YY]].</nowiki>  
 
  <nowiki>[[newsdate::YYYY-MM-YY]].</nowiki>  
 
  Your text...
 
  Your text...
 
  <nowiki>[[Category:News]]</nowiki>
 
  <nowiki>[[Category:News]]</nowiki>
<br>3. The tag <nowiki>[[newsdate::YYYY-MM-YY]]</nowiki> is the news date, and is important to register the news correctly.
+
After that, same as in 3 and 4 above.
<br>4. After editing, save the page. The main page must be refreshed ("refresh" tab to the right of the "edit" tab or key F5) in order to update the news list with the new item.
 

Latest revision as of 10:25, 23 October 2008

To add a news item which will be displayed automatically under News, do the following:

Alternative 1

  1. Go to News in the left-hand navigation pane
  2. Select Create_news_item
  3. Fill in the correct data after the newsdate tag [[newsdate::YYYY-MM-YY]]. This tag is essential for the news list to work as expected.
  4. After editing, save the page. It may take some time for the news list to be updated. To enforce updating, you can use the Purge command: http://heureka.resgeom.slu.se/wiki/index.php?title=Heureka_MediaWiki&action=purge


Alternative 2 (if alt 1 doesn't work)

  1. Create the page. The page name will be the news heading.
  2. Add the following code
[[newsdate::YYYY-MM-YY]]. 
Your text...
[[Category:News]]

After that, same as in 3 and 4 above.