Template:Draft: Difference between revisions
(added includeonly category) |
m (', or' ---> 'and/or') |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{| class="messagebox standard-talk" style="margin-bottom: 1em; width:100%; border:3px solid #4D4E53; background-color:#D7D3C8;" | |||
| rowspan="2" style="padding: 0px 0px 0px 1.5em;" | [[File:Draft-template-image.png|x60px|link=]] | |||
<includeonly> | | style="font-size: large; padding:0px 10px 0px;" | '''THIS {{#if:{{{section|}}}|SECTION|PAGE}} IS A WORKING DRAFT''' | ||
[[Category:Drafts]] | | rowspan="2" style="padding: 0px 0px 0px 1.5em;" | [[File:Pencil-emoji U270F-gray.png|x60px|link=]] | ||
</ | |- | ||
| style="font-size: small; padding:0px 10px 0px;" | The {{#if:{{{section|}}}|section|page}} may be difficult to navigate, and some information on its subject might be incomplete and/or evolving rapidly. <br>If you have any questions or ideas, please add them as a new topic on the [[{{TALKPAGENAME}}|discussion page]]. | |||
|}<includeonly>[[Category:Drafts]]</includeonly><noinclude> | |||
{{documentation}} | |||
<!-- Add categories to the /doc subpage, not here! --> | |||
</noinclude> | |||
Latest revision as of 17:30, 23 May 2016
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
- {{blackboxwarning}}
- {{delete}}
- {{outdated}}
- {{restricted}}
- {{spam}}
- {{warning}}
| The above documentation is transcluded from Template:Draft/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |