Jump to content

Template:DocHeader: Difference between revisions

From SA Docs
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="margin: -16px 0px;"> <div>{{{content}}}</div> </div> </div> </onlyinclude> {{Documentation|header=Template Usage|content= This template is for displaying what is essentially a copy of the Template:Documentation header without ha..."
 
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="margin: -16px 0px;">
   <div style="margin: -16px 0px 0px 0px;">
     <div>{{{content}}}</div>
     <div>{{{content}}}</div>
   </div>
   </div>

Latest revision as of 17:57, 8 October 2025

{{{header}}}

{{{content}}}


Template Usage

This template is for displaying what is essentially a copy of the Template:Documentation header without having the corresponding box where the content is filled display as well. This allows for more customization if desired and is recommended for any purely code examples.

Usage (Header only)

{{DocHeader|header=Template Example|content=
my cool text
}}

Renders As:

Template Example

my cool text

Usage (Code example):

{{DocHeader|header=Template Example|content=
<syntaxhighlight lang="cpp">
extern "C"
{

}
</syntaxhighlight>
}}

Renders As:

Template Example

extern "C"
{

}