Templates / discussion
Started by: Automatic
On: 1210664397|%e %b %Y, %H:%M %Z|agohover
Number of posts: 2
rss icon RSS: New posts
This is the discussion related to the wiki page Templates.
Question about skipping empty placeholders (and idea about named placeholders)
Perry2Perry2 1232340278|%e %b %Y, %H:%M %Z|agohover

I'd like to use a template for race descriptions, with content placeholders for specific fields, but I wish there was a way to have optional fields?

E.g., http://paxrivertri.wikidot.com/smithfield-sprint

I'd like the "Series" field to be optional — some races don't have it. So I wish there was a way that the template could leave out "Series:" if the content placeholder for it is empty.

Also, and this is just an idea out of my head, so I don't know if it is worthwhile, but maybe it would be neat if content fields could be named, i.e,
==== Series ====
instead of just being numbered in order.

Reply  |  Options
Re: Question about skipping empty placeholders (and idea about named placeholders)
dhbdhb 1232413359|%e %b %Y, %H:%M %Z|agohover

I've been thinking about the named content as well. I would also like to see generalization of page variables as are available in templates on non-template pages. Things like page title, author, create and modify dates, number of comments tied to the page, etc.

Anyways, a big second on the named content as it also removes the positional constraints on the page source.

Dave

Reply  |  Options
New Post
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License