Template:Relevant Code/doc

This template is used to link developers to code relevant to a page topic. It should only to be used within Information for Developers sections (located at the bottom of certain pages, and created with the InfoForDevs Toggle Start template). In other words, this template should always be used in conjunction with the InfoForDevs Toggle Start template (i.e., contained by it). If necessary, this template can be used multiple times within a single Information for Developers section.

Usage
refers to the part of a GitHub URL after "develop". For example, if the relevant file is located at https://github.com/HabitRPG/habitrpg/blob/develop/common/script/content.coffee,  would be set to.

is the full URL of an older version of the file. To obtain this URL, follow these steps:


 * 1) Go to HabitRPG's GitHub repository
 * 2) Click on "latest commit" (located directly above the first file/folder in the repository, on the right)
 * 3) Click "Browse files" (located in the header describing the commit, on the right)
 * 4) Click through the folders to get to the relevant file, then click on the filename (for example, common -> script -> content.coffee)
 * 5) Click on the line number (located on the left side of the page) that starts the relevant code block
 * 6) Copy the URL

Example
Results in: