Template:Play/doc

Displays a code block with a link to the Rust playground.

Usage
Use this Template similar to the following in your Wiki page:

Code blocks can involve the  pipe character, which breaks Wiki syntax parsing for the Template parameter. There are two ways around this:

The nowiki Method
Surround your code block with  tags. Note that this breaks the  and   characters.

The Character Replacement Method
Replace every  character as shown in the following example, which Wiki will interpret as a   character when rendering the resulting Template.

Template In Action
Below is the template in action.