User Tools

Site Tools


links:syntax

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
links:syntax [2025/06/16 10:29] – [Text Conversions] va7filinks:syntax [2025/07/30 18:48] (current) – [News Item] va7fi
Line 11: Line 11:
   - Make sure you are logged in.   - Make sure you are logged in.
   - Click on the ''Create a News Item'' link on the front page, which will show the following instruction:  \\ {{links:newsfeed.png}}   - Click on the ''Create a News Item'' link on the front page, which will show the following instruction:  \\ {{links:newsfeed.png}}
-  - In the ''Create News item'' box, enter a **short** title and press <key>Create this page</key>+  - Once you have entered your short title in the box, and clicked on <key>Create this page</key>, a new page will open with your title at the top.  You'll want to insert a line above it and type ''~~NOTOC~~'' at the very top to suppress the automatic Tables Of Contents. 
 +  - For more details on the syntax you can use, see the rest of this page.
  
 To see the full list of articles, click on the ''See the full News Feed'' link. To see the full list of articles, click on the ''See the full News Feed'' link.
  
 +Here's a (not-so brief) tutorial on how to add a news item with various formatting tricks:
 +{{ youtube>AR6cyoyViBw? }}
 +You can see the [[/blog/2025-07-30/news_item_example |News Item Example]] and click on the edit button to see the code behind it.
 ====== Formatting Syntax ====== ====== Formatting Syntax ======
  
Line 419: Line 423:
 ==== Syntax Highlighting ==== ==== Syntax Highlighting ====
  
-[[wiki:DokuWiki]] can highlight sourcecode, which makes it easier to read. It uses the [[https://qbnz.com/highlighter/|GeSHi]] Generic Syntax Highlighter -- so any language supported by GeSHi is supported. The syntax uses the same code and file blocks described in the previous section, but this time the name of the language syntax to be highlighted is included inside the tag, e.g. ''<nowiki><code java></nowiki>'' or ''<nowiki><file java></nowiki>''.+DokuWiki can highlight sourcecode, which makes it easier to read. It uses the [[https://qbnz.com/highlighter/|GeSHi]] Generic Syntax Highlighter -- so any language supported by GeSHi is supported. The syntax uses the same code and file blocks described in the previous section, but this time the name of the language syntax to be highlighted is included inside the tag, e.g. ''<nowiki><code java></nowiki>'' or ''<nowiki><file java></nowiki>''.
  
 <code java> <code java>
Line 483: Line 487:
  
 ===== RSS/ATOM Feed Aggregation ===== ===== RSS/ATOM Feed Aggregation =====
-[[wiki:dokuwiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[https://simplepie.org/|SimplePie]] is used. All formats understood by SimplePie can be used in DokuWiki as well. You can influence the rendering by multiple additional space separated parameters:+DokuWiki can integrate data from external XML feeds. For parsing the XML feeds, [[https://simplepie.org/|SimplePie]] is used. All formats understood by SimplePie can be used in DokuWiki as well. You can influence the rendering by multiple additional space separated parameters:
  
 ^ Parameter  ^ Description ^ ^ Parameter  ^ Description ^
Line 494: Line 498:
 | //n//[dhm] | refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). | | //n//[dhm] | refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). |
  
-The refresh period defaults to 4 hours. Any value below 10 minutes will be treated as 10 minutes. [[wiki:DokuWiki]] will generally try to supply a cached version of a page, obviously this is inappropriate when the page contains dynamic external content. The parameter tells [[wiki:DokuWiki]] to re-render the page if it is more than //refresh period// since the page was last rendered.+The refresh period defaults to 4 hours. Any value below 10 minutes will be treated as 10 minutes. DokuWiki will generally try to supply a cached version of a page, obviously this is inappropriate when the page contains dynamic external content. The parameter tells DokuWiki to re-render the page if it is more than //refresh period// since the page was last rendered.
  
 By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the ''reverse'' parameter, or display the feed as is with ''nosort''. By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the ''reverse'' parameter, or display the feed as is with ''nosort''.
links/syntax.1750094953.txt.gz · Last modified: by va7fi