Template:Documentation: Difference between revisions
Appearance
Created page with "<onlyinclude> <div> <p style="border: 1px outset #72777D; border-radius: 20px 20px 0px 0px; background-color: #27292D; padding: 15px;"> 30px <strong>{{{header}}}</strong> </p> <div style="border: 1px outset #72777D; padding: 15px; margin: -16px 0px;"> <div>{{{content}}}</div> </div> </div> </onlyinclude> {{Documentation|header=Template Usage|content= Syntax: <pre>{{Documenation|header=my cool header|content=that's s..." |
No edit summary |
||
| Line 4: | Line 4: | ||
[[File:OOjs_UI_icon_code-invert.svg|30px]] <strong>{{{header}}}</strong> | [[File:OOjs_UI_icon_code-invert.svg|30px]] <strong>{{{header}}}</strong> | ||
</p> | </p> | ||
<div style="border: 1px outset #72777D; padding: 15px; margin: -16px 0px;"> | <div style="border: 1px outset #72777D; padding: 15px; margin: -16px 0px 0px 0px;"> | ||
<div>{{{content}}}</div> | <div>{{{content}}}</div> | ||
</div> | </div> | ||
Latest revision as of 17:57, 8 October 2025
Syntax:
{{Documenation|header=my cool header|content=that's some good content}}
Render As:
Content can also be filled in as normal by doing the following:
{{Documentation|header=Example Code|content=
This is one sentence.
This is another sentence.
<syntaxhighlight lang="cpp">
// This is also showing that other formatting methods are available.
extern "C"
{
void MyCoolExportFunction()
{
}
}
</syntaxhighlight>
}}
Which this will render as the following: