Template talk:SLurl

From Second Life Wiki
Jump to navigation Jump to search

I'll get this upgraded, but I'm rather sleep deprived

I know precisely how to upgrade and fix issues with this template, but I need to get some sleep first :-D SignpostMarv Martin 04:09, 12 January 2007 (PST)

Whilst I can see what you are trying to achieve, could I note that your revised template - and the data that the user now has to add rather than just the minimum of co-ordinates and a name - is such that it would be shorter/easier for the user to just write the SLurl 'au naturel' rather than use this template! It seems way over-complex now for what was intended as something very quick, easy and simple. --Alison Wheels 07:55, 15 January 2007 (PST)
It is a pain in the butt, yes :-D
Baba and I are waiting on some response from Pathfinder/Rob via Jira regarding installing extension to make it simpler for the end-user to use templates.
However, the SLurl template in it's existing form would be rather useful for programmatic generation of SLurls for Project:Internationalisation#Virtual Communities and Project:Atlas- the basic idea being that with the variables available to MediaWiki, and the string parser functions, you could have articles in Project:Atlas along the lines of Project:Atlas/Eros/Amsterdam/Train Station (x,y,z), and parse the {{FULLPAGENAME}} and similar variables to extract the Estate, Region and Parcel as well as the X,Y & Z co-ordinates, you could then put {{SLurl/auto-complete}} to generate something along the lines of http://slurl.com/secondlife/Amsterdam/x/y/z/?title=Train%20Station&msg=Train%20Station%2C%20Amsterdam%20%28part%20of%20the%20Eros%20estate%29
So while Baba's simple version would probably be more useful to the average user, this SLurl template will likely be more suitable for use in other templates- you'll notice I used Baba's structure as a wrapper for this template if you take a peak at the code.
If it is agreed that Baba's interface wrapped around this template is better for the average user (and I think it goes without saying that it is), then it'd probably be a case of cloning this code to Template:SLurl/complex or Template:SLurl/full, checking through What links here] and doing minor edits to point them to Template:SLurl, then moving Baba's Template:simpleslurl to Template:SLurl.
SignpostMarv Martin 12:10, 15 January 2007 (PST)
P.S. creating full-spec, named variable templates allow people to write easier-to-use wrappers.'
Tweaked it a lil to make it easier usable while the functionalty remains.
Zai signature.png Lynch (talk|contribs) 10:12, 4 January 2009 (UTC)