Template:Documentation: Difference between revisions

From Songs of Syx Wiki
Jump to navigation Jump to search
(Created page with "<div class="docbox"> <div class="docheader">Description</div>{{clear}} text <div class="docheader">Syntax</div>{{clear}} more text </div>")
 
No edit summary
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="docbox">
<div class="docbox">
  <div class="docheader">Description</div>{{clear}}
<div id="docpad" style="padding-top: 4px; padding-left: 4px;>[[File:modal_icon.png|left]] <span style="font-size: 15px; font-family: Verdana; padding-bottom: 4px; display: inline-block; font-weight: bold;">Template Documentation</span></div><hr style="background:linear-gradient(90deg,rgba(0,0,0,0) 0%,rgb(89, 208, 158) 50%,rgba(2,0,36,0) 100%) !important;>
text
  <div class="docheader">Description</div>
  <div class="docheader">Syntax</div>{{clear}}
{{{1}}}
more text
  <div class="docheader">Syntax</div>
{{{2}}}
<div class="docheader">Examples</div>
{{{3}}}
</div>
</div>
<noinclude>
<br>{{documentation/doc}}[[Category:Templates]]</noinclude>

Latest revision as of 08:15, 5 June 2022

Template Documentation

Description

{{{1}}}

Syntax

{{{2}}}

Examples

{{{3}}}


Template Documentation

Description

Note: The ABOVE box is the actual template. THIS red box is just a description of how the template works.

This template should be used in doc pages for all other templates. This provides an explanation, as well as the syntax with examples of any template. This template will be used on all "doc" templates explaining all other templates. For example, if there's a template with the page name of "Template:Bluebox", there should be another page titled "Template:Bluebox/doc" that uses this very template. The template within the "/doc" page will in turn be used on the actual template page.

This red documentation template is normally used to explain templates that are usually only for administrator/moderator use, but this page is using it to differentiate this box from the template box above to reduce confusion.

All of these documentation templates (commonly seen as just "doc" in the page links) will be categorized on the documentation templates page.

Syntax

The syntax of this template is formatted as follows: {{documentation|<DESCRIPTION>|<SYNTAX>|<EXAMPLE>}}

Examples
{{documentation
|This is where the template's description will be.
|This is the syntax of the template. It's best to use <pre>, <code> and/or <nowiki> tags when typing out the template's syntax.
|This is where any examples of how to use the template would be.}}