Discuss Help:Datatype "Email"

From semantic-mediawiki.org


Thread titleRepliesLast modified
Spam prevention for published email addresses103:44, 16 April 2015
Can this datatype hold more than one email?121:49, 2 October 2013

Spam prevention for published email addresses


I have a property with data type email and see it rendering as a normal mailto email link: <a rel="nofollow" target="_blank" class="external text" href="mailto:foo@baz.bar">foo@baz.bar</a>.

Now, that's not the best for a public wiki, where we would risk spam to published mail addresses (and the fear of users of adding them in the form). It concerns not only 1 contact email but a lot of email addresses that this property gets assigned to.

Is there any way of altering this property to improve spam prevention (Wikipedia:Address munging)? Ideally, there would be a way to assign a CSS class to the property… where can I start?

21:17, 15 April 2015

Consider using {{#set:}} parser function to set the property and any combination of string or regex functions to display it mangled.

03:44, 16 April 2015

Can this datatype hold more than one email?

Is it possible for this datatype to hold a collection of emails? Or how would one go about setting up such a structure?

09:06, 2 October 2013

I think you need to use #arraymap from Semantic Forms extension for that

21:49, 2 October 2013