Inhaltsverzeichnis

NewsZ extension - Examples of syntax

In these examples, result table contains latest articles from category "Programming" and also articles from first level of sub-categories inside Category:Programming, ordened by date. Base syntax:

{{#newsz:My_news_category|begin from|news counter|cols or chars| class="" style="" ...}}

Table with page titles and thumbnails

Latest in Programming (source):
 
{{#newsz:Programming|0|6|3| class="T_aqua" style="font-size:12px; width:100%;"}}

Return a table with 6 elements (3 x 2 cells), with thumbnail (first image in article, or default Logo-<category>.png), page title, date, and custom style.

Latest in Programming (result):
Logo-Free Pascal.png

CRC generator verifier algorithm demo and CRC-16 function example in Pascal

2013/04/03
Logo-Slackware mods.png

How to make a Slackware bootable usb-stick starting from Slackware installation DVD, or any Linux system

2013/03/17
Logo-FreeBasic.png

Luhn algorithm in FreeBasic - example

2013/03/14
Break photo.png

How to recover jpg images using standard bash linux commands and other examples

2013/02/10
Logo-Free Pascal.png

Fet2calc extract tables from FET timetable and returns csv files

2012/10/28
Logo-Shell scripts.png

Backup and restore Linux via rsync scripts

2012/02/09

Table with text preview and thumbnails

Latest in Programming (source):
 
{{#newsz:Programming|0|5|400| class="T_aqua" style="font-size:12px; width:100%;"}}

Return a table (5 elements), with a text preview (400 chars), thumbnail (first image in article, or default Logo-<category>.png), date, and custom style.

Latest in Programming (result):
Logo-Free Pascal.png
Here is an example, written in Free Pascal, that explains the CRC algorithm . 2013/04/03
Logo-Slackware mods.png
This is a simple script that can make a bootable USB-stick (or USD-HD) similar at Slackware installation DVD, that may contains also the packages to perform Slackware installation in computers without DVD reader. Download the script 2013/03/17
Logo-FreeBasic.png
Here is a simple example in freebasic that implements the Luhn's algorithm. 2013/03/14
Break photo.png
An example that will explain how to use common Linux programs to recover deleted images from any media support. 2013/02/10
Logo-Free Pascal.png
Fet2calc is a Free Pascal example of manipulation of .csv files. The program extract tables from FET timetable (.csv) and returns several tables in .csv format to import into a spreadsheet. 2012/10/28

Table with date and page titles

Latest in Programming (source):
 
{{#newsz:Programming|0|5|0| class="T_aqua" style="font-size:12px; width:100%;"}}

Return a table (5 elements), with title of articles and date; custom style.

Latest in Programming (result):
2013/04/03 - CRC generator verifier algorithm demo and CRC-16 function example in Pascal
2013/03/17 - How to make a Slackware bootable usb-stick starting from Slackware installation DVD, or any Linux system
2013/03/14 - Luhn algorithm in FreeBasic - example
2013/02/10 - How to recover jpg images using standard bash linux commands and other examples
2012/10/28 - Fet2calc extract tables from FET timetable and returns csv files

Table with date and text preview, without thumbnails

Latest in Programming (source):
 
{{#newsz:Programming|0|5|-400| class="T_aqua" style="font-size:12px; width:100%;"}}

Return a table (5 elements), with date and a text preview (400 chars), without thumbnail; custom style. Note: «cols or chars» field is a negative number.

Latest in Programming (result):
2013/04/03Here is an example, written in Free Pascal, that explains the CRC algorithm .
2013/03/17This is a simple script that can make a bootable USB-stick (or USD-HD) similar at Slackware installation DVD, that may contains also the packages to perform Slackware installation in computers without DVD reader. Download the script
2013/03/14Here is a simple example in freebasic that implements the Luhn's algorithm.
2013/02/10An example that will explain how to use common Linux programs to recover deleted images from any media support.
2012/10/28Fet2calc is a Free Pascal example of manipulation of .csv files. The program extract tables from FET timetable (.csv) and returns several tables in .csv format to import into a spreadsheet.

Von „http://www.zoros.org/wiki/index.php?title=NewsZ_mediawiki_extension_test_page