Template:Draft: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(added includeonly category)
(Added Template:Documentation.)
Line 1: Line 1:
<div style="margin: 1em 0px; border: 2px solid orange; padding: 1em; background-color: #FFC; text-align: center;">'''DRAFT'''
<div style="margin: 1em 0px; border: 2px solid orange; padding: 1em; background-color: #FFC; text-align: center;">'''DRAFT'''
<div style="font-size:x-small">This page is not complete.</div></div>
<div style="font-size:x-small">This page is not complete.</div></div>
<includeonly>
<includeonly>[[Category:Drafts]]</includeonly><noinclude>
[[Category:Drafts]]
{{documentation}}
</includeonly>
<!-- Add categories to the /doc subpage, not here! -->
</noinclude>

Revision as of 13:00, 7 December 2014

DRAFT
This page is not complete.
Documentation icon Template documentation[view] [edit] [history] [purge]

Usage

{{draft}} creates an information box telling the user that a page, or a section of a page, is just a draft, i.e. under construction and not necessarily containing all the information you otherwise could expect. The box will show at the position on the page where you put the template, and stretch horizontally to fill the width of the available space.

The template will automatically add the page to the category Category:Drafts.

Parameter

There is only 1 parameter, which is named and optional.

Syntax

To use the template for an entire page, put the code

{{draft}}

on the top of the page.

To use it for a sub-section of a page, put the code

{{draft|section=yes}}

directly beneath the sub-section's header.

Optional parameter

section

Changes the word "page" to "section"

If you want to inform the user that a section of the page is a draft, use this parameter.

Any value you specify will be interpreted as "true", and invoke the parameter; i.e. |section=yes will yield the same result as |section=haggis.

Usage
  • {{draft|section=yes}}

See also