3 items on »Help« tagged with

»macros«

youtube Macro

The long awaited youtube macro is available now!
Just include the following macro in your story and replace the id parameter value with te one you want:

<% youtube id="v=vSKIl-NeZeE" %>

Your typolis team,
Aem, Mikk, Sam

Changed Macro: creator_macro, modifier_macro

The macro now links to the creators/modifiers profile. (e.g.: http://typolis.net/members/sam). If you want the old behavior - a link to the users url - call the macro with the parameter "as" set to "urllink" (instead of "link" that will now link to the profile). As for example:
<% creator as="urllink" %>

dates and times

hi folks, I had some digging into date and time formats that you may also interested in.
First, the macro inside a skin for the present blog time is
<% now %>  shows  2006-04-21 21:19

<% site.lastupdate prefix="Last update: " format="short" %>   shows  Last update: Wed, 19. Apr, 11:58

The formats "short" and "long" depend on the setting in your blog's preferences.

More definitions of formats are sort of "EEE, dd.MMM.yyyy HH:mm", but you can swap the parts and also use different delimiters eg.,;:|_ spaces

EEEE is the full weekday eg. "Wednesday"
EEE is the abbrevated weekday eg. "Wed"
dd is the two digit day eg. "03"
d skips a leading zero eg. "3"
MMMM is the month eg. "April"
MMM is the abbrevated month eg. "Apr"
MM is the month in figures eg. "04"
yyyy is the year "2006"
yy is the year "06"
HH is the two digit hour eg. "03" (for 00 to 23h)
H skips a leading zero "3" (for 0 to 23h)
mm is for minutes

pay attention:
hh is the two digit hour for am/pm (for 01 to 12)
h skips the leading zero
a gives am or pm