Kurt Jansson wrote:
Anthere schrieb:
What do you think ? We should really try to keep
participate simple.
Another possibility would be to put links to all the template edit boxes
above the edit box of the article with a short explanation.
I tried to program that once, but it's not that simple. Currently the
edit box just simply displays the source text and that's it. In order to
sift out the {{template}} tags, you have to actually parse the page
again. Yes, I know you could just use a regexp, but then you get
problems with the famous {{blahblah_{{CURRENTDAY}}_{{CURRENTYEAR}}}}
thingie.
I think it would be simpler to make it so that things in the Template
namespace can contain something like {{editlink}} to make an edit link.
Alternatively, when transcluding a {{msg}} thingie, the parser could
automatically check whether it begins with either a table or a <div>. If
the former is the case, it can calculate the number of table cells per
row and insert a row at the top containing something like:
<tr><td colspan="number_of_cells" style="text-align: right;
font-size: smaller;">[<a href="...(edit
link)...">edit</a>]
</td></tr>
If the latter is the case, it can just insert a
<div style="text-align: right; font-size: smaller;">[<a
href="...(edit link)...">edit</a>]</div>
after the first div.
Of course, this is a bit hacky. I prefer the option where authors can
place the edit link themselves; it gives better control over how things
will appear, and will allow us to cater for aesthetic desires.
Timwi