Template:Debug
Jump to navigation
Jump to search
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
Editors can experiment in this template's sandbox and test case pages. |
This template has existing translations, relatives, or sub-templates: |
Usage
{{Debug}}
is a debugging template for testing how things (eg; Templates and Magic Words) will render on a live page version. By default the content is hidden using display: none
.
This is just a simple template that wraps content into a <div class="debug-content">...</div>
. It does not hide content from prying eyes that can look at the HTML.
The .debug-content
class is hidden by default, but can be seen in many ways:
- Using the Console Dev tools
- Interface admins will see it by default
- Users can copy the CSS below to their custom User css.
.debug-content {
display: block !important;
}
Syntax
{{Debug|debug-content}}
Examples
Hello there!
Heading 1 | Heading 2 |
---|---|
Column 1 | Column 2 |