This is a test version of Biostars. For the public version, visit https://www.biostars.org.
News: New Feature: Using Shortcuts To Embed Content Such As Gist Or To Display Biostar Specific Links

We have enabled a number of new features on Biostar. Using these are optional and are only meant to facilitate certain use cases.

Shortcuts

Shortcuts are words that start with a backslash followed by one or more comma separated parameters.

For example if a user would like to share code via Gist they may now write:

\gist 2059

This shortcut will be replaced inside the post by the content of the gist:

<script src="http://gist.github.com/2059.js"></script>
</p>

Shortcut properties:

  • more than one comma separated parameter value may be listed
  • shortcuts will not take effect if they are in a codebox (as in the example).
  • unrecognized shortcuts will pass into the main text unchanged.
  • the preview will not show the results of the shortcuts, users need to submit the content to have them take effect.

Shortcuts for Users and Posts

Shortcuts to link to users and posts:

\user 30
\post 5059

Results in Pierre Lindenbaum and Any recommendation on program that could simulate GWA case/control data ?

For each of the examples you may list multiple values separated by commas:

\user 23,66
\post 7126,42375

Results in Giovanni M Dall'Olio, Neilfws and What are the most common stupid mistakes in bioinformatics?, False positives in disease gene hunting - TruSeq Exome Enrichment Kit - A call for data

Shortcuts for Tags

\tag blast,pipeline

Results in the link blast+pipeline

Embedding Gist

Gist is a simple way to share snippets and pastes with others. All gists are git repositories, so they are automatically versioned, forkable and usable as a git repository

\gist 2059

Result:

<script src="http://gist.github.com/2059.js"></script>

Embed Searchbox

To create a filled in search box write:

\search this

Result:

Loading
<script src="http://www.google.com/jsapi" type="text/javascript"></script> <script type="text/javascript"> google.load('search', '1', {language : 'en', style : google.loader.themes.GREENSKY}); google.setOnLoadCallback(function() { var customSearchOptions = {}; var customSearchControl = new google.search.CustomSearchControl( '003596843386727440968:raditaczxza', customSearchOptions); customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET); customSearchControl.draw('cse'); }, true); </script> # Embed Youtube Use the Youtube ID as below (you can extract this ID from the url of the video): \youtube 1ZyoI-4ObSA Results in
<iframe width="560" height="315" src="http://www.youtube.com/embed/1ZyoI-4ObSA" frameborder="0" allowfullscreen></iframe>
meta biostar

This is beautiful. Good work!

Nice! Thanks a lot

Excellent features and I want to suggest one more link (Workshops/Conferences) after Jobs which will provide information to BioStar users regarding whats going to happen/had have happened.

that is a good suggestion - though we do need some ways of filling that section up - right now I am not entirely sure if adding content found on other sites would be desirable/ethical/accepted practice

another suggestion: inserting a short reference to a paper: \pmid 12345

I mused about something similar - I could not nail down the implementation. Should it just generate a link (easy) or what would be really nice is to fetch the actual paper title and link that - but that would then would require an exchange with entrez. It is probably worth the try.

This has changed, now putting in the URL of the gist is sufficient.

0 answers

No answers yet.

Log in to answer this question.