Widgets


Concept and Exercise Widgets are used frequently throughout the site. They look like this:

They also have user-contextual tooltips such as this:

You may like to render these widgets yourself in Markdown documents, for example at the end of a document to suggest extra reading or good exercises to learn something from.

Note: You can also use normal links for inline text, which will have the tooltips added. See the Internal Linking documentation for more details.

Usage

Widgets can be used wherever you can use Markdown, such as documentation, approaches and student/mentor discussions.

They are rendered using the following format:

[<type>:<id>]()

The <type> and <id> parts are variable and depend on the actual widget being used.

The link reference, i.e. the contents of (), is ignored by the website. You can point them at whatever you want for maintenance purposes.

Exercise widget

Link format: [exercise:<track-slug>/<exercise-slug>]()

Example

Great job on solving this exercise! Some other exercises that you might also like to try:

- [exercise:fsharp/anagram]()
- [exercise:fsharp/isogram]()

Concept widget

Link format: [concept:<track-slug>/<concept-slug>]()

Example

There are three primary conditional statements that are used in Julia:

- [concept:julia/if-statements]()
- [concept:julia/ternary-operator]()
- [concept:julia/short-circuiting]()

Approach widget

Link format: [approach:<track-slug>/<exercise-slug>/<approach-slug>]()

Example

Here are some approaches you might want to checkout!

- [approach:csharp/two-fer/method-overloading]()
- [approach:csharp/two-fer/optional-parameter]()

Article widget

Link format: [article:<track-slug>/<exercise-slug>/<article-slug>]()

Example

We have an article you might be interested in:

- [article:csharp/reverse-string/performance]()