Template:Construction View history

(Undo revision 98823 by Adrianojbr (talk))
m (add TemplateData)
 
(One intermediate revision by the same user not shown)
Line 50: Line 50:
--><includeonly>[[Category:Construction]]</includeonly><!--
--><includeonly>[[Category:Construction]]</includeonly><!--


--><noinclude>{{doc}}</noinclude>
--><noinclude>{{doc}}
 
<templatedata>
{
"params": {
"revision": {
"description": "Is this a revision of an existing page , or a new page",
"type": "boolean",
"default": "yes",
"suggested": true
},
"section": {
"description": "Is this only for a section or for an entire page",
"type": "boolean",
"default": "yes",
"suggested": true
},
"draft": {
"description": "Is this a draft, and not ready to be followed as guidance, or can the current content be followed as guidance?",
"type": "boolean",
"default": "yes",
"suggested": true
},
"contact": {
"label": "Contact link",
"description": "URL of forum or user",
"type": "string",
"suggested": true
},
"contacttype": {
"label": "Where contact link points to",
"description": "Type \"forum\" or \"user\" if the link points to a forum, or directly to message a user",
"type": "string",
"default": "forum or user",
"suggested": true
},
"open": {
"description": "Can anyone make changes to the content, or should they only contact the authors?",
"type": "boolean",
"default": "yes",
"suggested": true
},
"talk": {
"description": "Is the talk page being used to discuss the content drafting or not?",
"type": "boolean",
"default": "no"
}
},
"description": "This template is added to pages that are undergoing major changes or initial developments.Place this template at the top of the page or section being modified to produce a standard message box, or fill in the variables to customize the message."
}
</templatedata>
</noinclude>

Latest revision as of 01:03, 16 February 2017

This new page is currently undergoing modifications. If you would like to contribute to this content, please consider posting in the US Wiki Discussion forum first to discuss your ideas.
Documentation icon Template documentation[view] [edit] [history] [purge]

This template is added to pages that are undergoing major changes or initial developments.

Usage

Place {{construction}} at the top of a new page to produce the default message box.

Alternately, the following optional variables can be used to adjust the generic message:

{{construction
| contact     = URL of forum or user
| contacttype = forum or user
| draft       = yes or no
| open        = no
| revision    = yes
| section     = yes
| talk        = yes
}}

Parameters

contact

Optional URL parameter for forum or private message. Do not include the descriptor field of the URL, meaning only send the valid URL text without the extra space followed by a description of the URL. Requires |contacttype= to alter message appropriate for forum or individual user.

contacttype

Required if |contact= parameter is supplied. Optional message with URL linking to location where other editors should send messages on this page. Used with |open= parameter to control the message in the box. The |contacttype= parameter is completing this sentence If you have questions, please... When |contacttype=forum it displays: post a message in this forum. When |contacttype=user it displays: send a private message to this user.

draft

Optional parameter to display information on the quality or state of the content. Use |draft=yes to say the information is still draft form and not ready for use. Use |draft=no to say the information is accurate enough to be followed now. If the parameter is not included or is set to anything else, no text will be displayed regarding the draft condition.

open

Optional indicator if other input is desired. Only with the presence of the |contact= parameter can you use |open=no to display: This page has already been identified as being needed. Content for this page is being prepared by one or more users. Do not make any changes before you with the rest of the message coming from the |contacttype= parameter result. The default or empty |open parameter will display: This page has already been identified as being needed. This page is open to changes from anyone during construction. Further, if the |contact= parameter is also set you will see: If you have questions, please with the rest of the message coming from the |contacttype= parameter result. Requires the |contact= parameter must be set to direct people with a URL.

revision

The text can be altered to reflect the changes are based on a revision or a completely new set of information. This is related to the parameter |draft=, but fully independent of it. Use |revision=yes for text saying it is a revision. Do not include that parameter or set it to anything else to result in text saying the information is new.

section

The text can be altered to reflect the construction happening on the whole page (default) or just one or more sections. Use |section=yes for text covering just a section. Do not include that parameter or set it to anything else to result in text covering the whole page.

talk

If the talk page is currently being or will be used for initial thoughts on the page, use |talk=yes to display: Please use the talk page for thoughts and ideas on setting up this content.

Examples

Review the page Template:Construction/Examples for how some of the parameter combinations will look on a page.

Where used

Editors can find all occurrences of this template with the link to what links here for the Construction template.

Category added

This template will automatically add the Category:Construction to the page for tracking. The parameter |revision=yes will add Category:Revision, otherwise it will add Category:New.

See also

The above documentation is transcluded from Template:Construction/doc.
Please add categories to the /doc subpage.
Subpages of this template.

This template is added to pages that are undergoing major changes or initial developments.Place this template at the top of the page or section being modified to produce a standard message box, or fill in the variables to customize the message.

Template parameters

ParameterDescriptionTypeStatus
revisionrevision

Is this a revision of an existing page , or a new page

Default
yes
Booleansuggested
sectionsection

Is this only for a section or for an entire page

Default
yes
Booleansuggested
draftdraft

Is this a draft, and not ready to be followed as guidance, or can the current content be followed as guidance?

Default
yes
Booleansuggested
Contact linkcontact

URL of forum or user

Stringsuggested
Where contact link points tocontacttype

Type "forum" or "user" if the link points to a forum, or directly to message a user

Default
forum or user
Stringsuggested
openopen

Can anyone make changes to the content, or should they only contact the authors?

Default
yes
Booleansuggested
talktalk

Is the talk page being used to discuss the content drafting or not?

Default
no
Booleanoptional