Closed:New Feature: Using Shortcuts To Embed Content Such As Gist Or To Display Biostar Specific Links
0
14
Entering edit mode
11.6 years ago

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 • 8.8k views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 2549 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6