Content Template - Simple Functions
Forum » Wikidot features and bugs / New features and ideas » Content Template - Simple Functions
started by: SnipesSnipes
on: 1210801550|%e %b %Y, %H:%M %Z|agohover
number of posts: 2
rss icon RSS: new posts
Content Template - Simple Functions
SnipesSnipes 1210801550|%e %b %Y, %H:%M %Z|agohover

I use some Content Templates at my wiki for people info, like age, haircolor etc. Some thing that I would like is:

Age from Year

The Content Template

**Born:** {$WikidotAge(my_parameter)}

And at the page

|my_parameter=1978

The results

Born: 1978, age: 30

Like it?

last edited on 1210801581|%e %b %Y, %H:%M %Z|agohover by Snipes + show more
unfold Content Template - Simple Functions by SnipesSnipes, 1210801550|%e %b %Y, %H:%M %Z|agohover
Re: Content Template - Simple Functions
SnipesSnipes 1210803059|%e %b %Y, %H:%M %Z|agohover

I found a little bug with Include.
You can't make the variables links…

The Content Template

**Children:** {$children}

And at the page

|children=[[[Eric]]]

The results

[# | Eric]
]]

Due to the ]]] in the variable.

Can this be fixed?

last edited on 1210803450|%e %b %Y, %H:%M %Z|agohover by Snipes + show more
unfold Re: Content Template - Simple Functions by SnipesSnipes, 1210803059|%e %b %Y, %H:%M %Z|agohover
new post
Unless stated otherwise Content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.