Wapka Advanced Functions

Spacing:

Write command :br: on place where you want to insert new line point
===============================================

Text formatting 

Font style:

If you want to format only single words or single group of words use formatting commands:
One command have two parts - the begin and the end. formatted text have to be enclosed to pair of commands. If you insert only one of commands, site will not working!!!
Commands:
:b-beg: text :b-end: - bold text
:i-beg: text :i-end: - italic text
:u-beg: text :u-end: - underlined text
:big-beg: text :big-end: - big text
:small-beg: text :small-end: - small text
Example:
Professional :b-beg:site:b-end: about phones
This will be displayed like:
Professional site about phones

This formatting you cau use in any item (sites,links,texts,forums,...)

Color text formatting (only for WAP2): If you want to change text color, use tag:
:color-CLR:colored text:/color:
For change background color of text use tag:
:bgcolor-CLR:colored text:/bgcolor:
CLR is name of color or color code (e.g.: #000000)
Example:
This text is :color-#990000:red:/color: with :bgcolor-#0000FF:blue background:/bgcolor: 
===============================================
===============================================

Icon inserting to text:

To site,link or text you can insert icon from list on this site.
Numeric code is near every icon, which you must insert into command:
:icon-number:
Example for use command with icon:
This is icon :icon-251:

Elective tag for icons in forum,chat,blogs and private messages:
Syntax of tag:
:iconlist:PARAMETERS::LINE_FORMAT::DELIMITER:/iconlist:
Parameters have following format:
Parameter1=value, parameter2=value
Available parameters:
d - database. Available: forum, chat, pm, blogs
l - limit parameter. l parameter can have numberic value (1 - 50). It is maximal count of icons for one site.
s - site parameter. This parameter is useful, if you want to separate list on more sites. For example if you want to display list with first 10 icons set parameter l on 10 and parameter s on 1, if you want to display next 10 icons (11-20) leave parameter l on 10 and parameter s set on 2.

For Line format can be used following variables:
%text% - Icon replacement (string).
%icon% - Image of the icon
%url_icon% - URL of the icon (must be used with <img/> xHTML code. Example: <img src="%url_icon%" />)

Line format can contains text,known values (%...%) or WML/xHTML tags.

With Delimiter you can set text or WML/xHTML tags which will separate icons.

Example:
:iconlist:d=forum,l=10::%icon% - %text%::<br/>:/iconlist:

===============================================
===============================================

Time function:

To insert actual time or date you can use pair of commands: :time-beg: a :time-end:
Displayed time you can format to any form from following parameters:
y ... year as two numbers (07)
Y ... year as four numbers (2007)
z ... number of day in year (001-365)
m ... number of month (01-12)
n ... number of month (without begin zero, 1-12)
M ... abbreviation of month name (Jul)
F ... month name (July)
d ... number of day in month (01-31)
j ... number of day in month (without begin zero, 1-31)
t ... number of days in month (28-31)
D ... abbreviation of day in week (Mon)
l ... day name (Monday)
h ... hour (01-12)
g ... hour (without begin zero, 1-12)
H ... hour (01-23)
G ... hour (without begin zero, 1-23)
a ... am/pm
A ... AM/PM
i ... minutes (00-59)
s ... seconds (00-59)
Example: :time-beg:H:i:s:time-end:
display: 00:35:48
Item example: Today is :time-beg:j.n.Y H:i:s:time-end: and it's beautiful day. 

===============================================
===============================================

Update info functions:

To insert time or date of last update your WAP you can use tag :update:
Syntax of tag:
:update:time_format:/update: - This will display date of update from last updated item of your WAP site.
:update-SITEID:time_format:/update: - This will display date of update from last updated item from site ID: SITEID
time_format - More info about this parameter you can get in Time function

Example:
Last update: :update:j.n.Y H:i:s:/update:
or
Homepage last update: :update-0:j.n.Y H:i:s:/update: 

1 comment: