Template:Construction View history

(Created initial page)
 
m (add TemplateData)
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{mbox
{{mbox
   | type  = construction
   | type  = construction
   | style = margin-top: 2.0em;
   | style = margin-top: 0.0em;
             color: red;
             color: red;
   | text  = This page is currently undergoing modifications. <!--
   | text  = This <!--
-->  {{#ifeq: {{{revision}}} | yes
        | revision of <includeonly>[[Category:Revision]]</includeonly><!--
-->    {{#ifeq: {{{section}}} | yes
          | a section
          | the page
        }}
        | new<includeonly>[[Category:New]]</includeonly><!--
-->    {{#ifeq: {{{section}}} | yes
          | section
          | page
        }}
      }} is currently undergoing modifications. <!--
-->  {{#ifeq: {{{draft}}} | yes
        | The information presented should be considered a draft, not yet ready for use.
        | {{#ifeq: {{{draft}}} | no
            | The information and guidance is currently considered accurate enough to be followed now. <!--
-->      }}
      }} <!--
-->  {{#if: {{{contact|}}}
-->  {{#if: {{{contact|}}}
         | {{#if: {{{contacttype|}}}
         | {{#if: {{{contacttype|}}}
Line 12: Line 30:
                     | {{Mbox/Text/SendPM |{{{contact}}}}}
                     | {{Mbox/Text/SendPM |{{{contact}}}}}
                   }}
                   }}
                 | This page is open to changes from anyone during construction. <!--
                 | This content is open to changes from anyone during construction. <!--
-->              {{#if: {{{contact|}}}
-->              {{#if: {{{contact|}}}
                     | If you would like to make changes or have questions, please <!--
                     | If you would like to make changes or have questions, please <!--
Line 32: 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