19

The magic comment links are extremely useful. However, the one page I most often find myself linking to in comments is $SITE/help/formatting. Unfortunately, [help/formatting] doesn't work.

Could we have [help/formatting] expand to https://meta.stackexchange.com/help/formatting (where http://meta.stackexchange.com is replaced by the current site's URL) just like [help/on-topic] and [help/dont-ask] do? Ideally, the text shown would be formatting tools but the standard Help Center would do if that's too complex.

That way, I could just write

Please use the [help/formatting] to enter code correctly.

And have it rendered as

Please use the formatting tools to enter code correctly.

  • 2
    Yes, please, I want that! My auto-comments want that! The WORLD <s>wants</s> needs that! – Mathieu Guindon Oct 22 '15 at 14:03
3
+100

I have also made a userscript for this sort of thing.

It allows you to define your own custom magic links.

You can get it at StackApps

For this particular case, the link you would define would be:

magicLinks['help/formatting formatting tools'] = '$BASEURL$/help/formatting';

Or relatively:

magicLinks['help/formatting formatting tools'] = '/help/formatting';

That will make more sense when you visit the Stack Apps post! :)


BTW an extra feature you get with this userscript is that you can make magic links that can have custom text -- so you could say something like [visit the formatting tools][help/formatting] to automatically add the link to the formatting tools but with your own text! :)

  • Nice, any particular reason to use base url? Why not relative links? – nicael Nov 10 '15 at 22:32
  • @nicael hmmm; honestly didn't think of that but it should work with just using relatively! Edited to reflect that :) thanks! – ᔕᖺᘎᕊ Nov 11 '15 at 7:15
2

I've made a user script which converts your [help/formatting] links into the desired [formatting tools](/help/formatting), once you submit your comment or an edit to your comment.

Be sure to try it out!

  • Thanks for this. I went with the other solution since it provides arbitrary link text. – terdon - stop harming Monica Nov 11 '15 at 18:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .