Skip to content

Instantly share code, notes, and snippets.

@thecodewarrior
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thecodewarrior/638d7da7608dc21eee86 to your computer and use it in GitHub Desktop.
Save thecodewarrior/638d7da7608dc21eee86 to your computer and use it in GitHub Desktop.

Guides are just XML files, but with special tags.

Guide format:

<title>[insert title here]</title>
<tool>
  <image src="image/path" />
</tool>
<content>
Some text about the thing in quiestion here, oh here is a link to a related <guide href="modid:guide_name">thing</guide>, and here is an image: <image src="image/path" height="16" align="right" />

Here is some formatted text,
<b>bold</b>,
<i>italic</i>,
<u>underlined</u>,
<obf>obfuscated</obf>,
<strike>strikethrough</strike>,
<b>even <i>combined <u>together with</u> <guide href="modid:guide_name">links</guide></i></b>.

Also some
<indent>
Indentation
</indent>
</content>

There are a number of different tags available (anything surrounded by {} is optional):

  • Links: <guide href="modid:guide_name">[actual text]</guide>
  • Images: <image src="path/to/image" {width="[max width]"} {height="[max height]"} {align="[left, right, center]"} />
  • Formatting:
    • Bold: <b>[anything]</b>
    • Italics: <i>[anything]</i>
    • Underline: <u>[anything]</u>
    • Strikethrough: <strike>[anything]</strike>
    • Obfuscated (randomly changing text): <obf>[anything]</obf>
  • Indent: <indent>[anything]</indent>

Upcoming tags:

  • Scale: <scale fac="[scaling factor]">[anything]</scale>
  • List:
<list>
  <li>[anything]</li>
  {...}
</list>
  • Table: (colWidths="col1,col2,...,colN" values are either a number for a fixed width, or a * for unchanged width)
<table {colWidths="*,25,*,*"}>
  <tr>
    <td>[anything]</td>
    ...
  </tr>
  ...
</table>
  • Collapsible area (spoiler): <spoiler title="Text for button">[anything]</spoiler>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment