Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea: short-form quest link #107

Open
neilb opened this issue Apr 18, 2013 · 7 comments
Open

Idea: short-form quest link #107

neilb opened this issue Apr 18, 2013 · 7 comments

Comments

@neilb
Copy link

neilb commented Apr 18, 2013

Probably not worth doing, but it's occurred to me a couple of times, so thought I'd mention it. You could add a pseudo URL type quest: to make it easier to link to other quests in comments. So I could write:

[berekuk's quest](quest:512203d8e05a54a63a000022)

This would be more useful if quests had a shorter ID :-)

@berekuk
Copy link
Owner

berekuk commented Apr 18, 2013

This would be more useful if quests had a shorter ID

This probably won't happen, since ids are just MongoDB ids. And also, potentially, auto-increment ids are a bad idea because they don't scale well. Which means you still have to copy-paste the id, and I don't see much benefit of implementing the syntax you suggest.

What would be good, in my opinion, is to automatically substitute quest url with a named link, so you don't have to write [...].

@neilb
Copy link
Author

neilb commented Apr 18, 2013

Yeah, that's why I thought "probably not worth doing".

Assuming you're thinking of a generic format for the link, rather than using the title, since some quests have loooong titles?

@berekuk
Copy link
Owner

berekuk commented Apr 18, 2013

Actually, yes, I thought about just using the title. Maybe shorten it to ... if it's too long. And style it a bit differently from other links.

@neilb
Copy link
Author

neilb commented Apr 18, 2013

Or: take the first contentful N words from the title and use that in the link, and put the full title in a tooltip ("Berekuk's quest 'take over the social todo world and become a bazillionaire'"), so the link would be:

[Berekuk's 'social todo' quest](...)

You've probably got enough data that you could see whether this approach might work. If you dump all the titles in a text file and email it to me, I'll have a play.

@berekuk
Copy link
Owner

berekuk commented Apr 18, 2013

Interesting idea! (But very low-priority, tbh, considering the amount of other stuff to implement.)

You can get all quest titles here: http://play-perl.org/api/quest

Here's a one-liner for you to dump all titles: perl -MJSON -MLWP::Simple -E 'say $_->{name} for @{ decode_json(get("http://play-perl.org/api/quest")) }'.

@neilb
Copy link
Author

neilb commented Apr 18, 2013

Ta. I've written version 0 of a quest-title-summarizer. I'll save it for sofa hacking, as I should get back to work.

Thought of a better approach though: when people are entering a (new) quest title, show another box which is labelled "short quest title". If you don't type in it, then it shows the automatically shortened version of the quest title. Users can type their own short title if they want, which would disable the auto feature. The shortened title would have a hard character limit.

I know: very low priority :-)

@berekuk
Copy link
Owner

berekuk commented Apr 18, 2013

I consider quest's title to be the short title, and will probably enforce hard limits on title length after implementing quest description field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants