Code Snippets

This is a work in progress. If you Edit these pages, you can cut and paste the wiki code in here and use them to expand this wiki. The idea is to give some examples so that multiple people editing this wiki can make things more consistent.

The first part of this page is a table of the several snippets pages that have been created so far to make it simpler to illustrate a big or complex snippet. The second part is a series of small snippets.


Big Snippets


Small Snippets

Art (Images)

Gathered on this page are a series of small snippets useful for listing rewards for storylets.

Colors

There are only a few colors that are in use for the text of this wiki.

  • Blue text is used to indicate an option of a storylet or opportunity card whose result isn't recorded in the wiki. (Generally, this includes all fate-locked content, which is never included here.) When it becomes known, the blue highlighting should be removed. This is how it is coded, followed by how it would appear.
+++ ##blue|Try the blue bananna##

Try the blue bananna

  • Purple text is occasionally used for major section headings but has no other meaning. For example, the section heading above is coded with the following line.
++ ##purple|Small snippets##
  • Dark red text is generated by the wiki when the text is actually a clickable link.
  • Orange text is generated by the wiki when the text is a clickable link but leads to a page that hasn't been created yet. (If you see this and you think the page already exists, double-check that you haven't made a typo.)

Copyright Notice/Footer

The standard copyright notice and footer (acknowledging FailBetter Games' wishes) has been moved to a single file called master:template. All of the other category _template files on this wiki should include that file.

New categories get created when a page is created with a colon (:) in the title, for example, there is one needed for commission:_template because of the names of pages for certain Ventures. When a new _template file is needed, the following line of code should be all that is necessary, with no preceding spaces.

[[include master:template]]

The code currently in master:template is below for reference. Changes should be made in the actual template file. (The code block below actually includes the master template. Refershing the page may be needed to see any changes you make.)

%%content%%
-----
[[div style="border: 1px solid black; padding: 0 1em; background-color: #eeeeee"]]
All images and directly quoted text are @<&copy;>@ Failbetter Games Ltd. and are used by permission.
Failbetter Games asks that you read the [[[http://blog.failbettergames.com/page/Echo-Bazaar-fan-project-guidelines.aspx|FBG Fan Project Guidelines]]] before adding content to this wiki.
[[/div]]

[!--- 
This is the master template that should be used for all other templates for this wiki. 
Refer to the "code snippets" page for more detailed instructions.
---]

All images and directly quoted text are © Failbetter Games Ltd. and are used by permission.
Failbetter Games asks that you read the FBG Fan Project Guidelines before adding content to this wiki.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License