Template:Sample code

From Facebook Developers Wiki

Jump to: navigation, search
Preview Code
please insert an appropriate screenshot
{{{2}}}

[edit] Documentation

intended for showing code samples in FBML documentation. Takes up to 10 unnamed parameters in groups of two. The first parameter in a pair specifies the URL (or [[Image:XXX]] link) to a screenshot demonstrating the sample code. The second parameter in a pair specifies the sample code shown in the screenshot. It is advisable to enclose this code with <nowiki></nowiki> tags. Each pair is displayed on its own row in a table, with the screenshot and sample code displayed side-by-side. If no screenshot is available, the parameter can be left blank but must still be specified (by inserting a vertical bar, i.e. {{sample code||sample code with no screenshot}}). If no screenshot is specified, {{screenshotplz}} is rendered in its place.