Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Json example: Difference between revisions

Template page
funky hack from wikipedia's pre template
add documentation
Line 1: Line 1:
<blockquote><pre<includeonly></includeonly>><!--
<blockquote><pre<includeonly></includeonly>><!--
-->{{#if:{{{1|}}}|{{{1}}}<noinclude>|Sample text</noinclude>}}<!--
-->{{#if:{{{1|}}}|{{{1}}}<noinclude>|Sample text</noinclude>}}<!--
--></pre></blockquote>
--></pre></blockquote><noinclude>
{{Documentation}}
 
[[Category:Templates]]</noinclude>

Revision as of 21:44, 8 February 2022

Sample text

This page has been transcluded from Template:Json example/Documentation.


Styles a JSON code block.

Usage

{{json example|
{
  "forest": "open"
}
}}

Will display as:

{
  "forest": "open"
}