Template:Underconstruction: Difference between revisions

From PZwiki
(new layout)
m (add translation error)
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{Documentation/sandbox|doc =
{{Documentation/sandbox|doc=
Articles that are either new and still being constructed, or articles undergoing a major transition requiring multiple edits.
Articles that are either new and still being constructed, or articles undergoing a major transition requiring multiple edits.


Adds articles to the {{ll|:Category:WIP articles|WIP articles}} category.
Adds articles to the "{{ll|:Category:WIP articles|WIP articles}}" category.


==Usage==
==Usage==
This template can be used by simply adding {{Tlx|Underconstruction}} to the page.
===Parameters===
;<code>1</code>
:The reason or a description of what is under construction. This parameter is recommended to help editors know what is being improved or how they can help.
;<code>section</code>
:If set to <code>true</code>, will display "section" instead of "article" in the title.
;<code>hidecat</code>
:If set to <code>true</code>, will not add the page to the "{{ll|:Category:WIP articles|WIP articles}}" category.


'''This will produce:'''
==Examples==
*{{tll|Underconstruction}} or {{tll|wip}}
{{Underconstruction|hidecat=true}}
{{Underconstruction|hidecat=true}}


{{Translation guide|<syntaxhighlight lang="html">
{{Translation guide|<syntaxhighlight lang="html">
{{#switch: {{{1|}}}
{{#switch: {{{1|}}}
| title = This article or section is currently under construction.
| title = This {{{2}}} is currently under construction.
| content = It is in the process of an expansion or major restructuring. You are welcome to assist in its construction by editing it as well.
| content = It is in the process of an expansion or major restructuring. You are welcome to assist in its construction by editing it as well.
| note = If this page has not been updated in a while, please remove this notice. Last edit was {{REVISIONDAY2}}/{{REVISIONMONTH}}/{{REVISIONYEAR}}.
| note = If this page has not been updated in a while, please replace this notice with {{tll|Improve}}. Last edit was {{REVISIONDAY2}}/{{REVISIONMONTH}}/{{REVISIONYEAR}}.
| #default = [[Category:Incorrect template usage]]
| #default = {{Error|translation}}
}}
}}
</syntaxhighlight>}}
</syntaxhighlight>}}
==See also==
*{{ll|PZwiki:Mboxes}}
}}
}}
{{ll|Category:Maintenance templates}}
{{ll|Category:Mbox}}
{{ll|Category:Mbox templates}}
</noinclude><includeonly>{{Mbox
</noinclude><includeonly>{{Mbox
| color = #ee0000
| color = #ee0000
| sign = [[File:Hammer.png|link=Template:Underconstruction{{#ifeq:{{Language code}}|true|{{Subpage}}|}}]]
| sign = [[File:Hammer.png|link=Template:Underconstruction{{lcs}}]]
| title = {{tt
| title = {{tt|name=Underconstruction
  | name = Underconstruction
   | default = This {{Page ns|{{{section|}}}}} is currently under construction.
   | default = This article or section is currently under construction.
   | arg1 = title
   | arg1 = title
  | arg2 = {{Page ns|{{{section|}}}}}
   }}
   }}
| content = {{tt
| content = {{#if:{{{1|}}}
   | name = Underconstruction
  |{{{1}}}
  | default = It is in the process of an expansion or major restructuring. You are welcome to assist in its construction by editing it as well.
   |{{tt|name=Underconstruction
  | arg1 = content
    | default = It is in the process of an expansion or major restructuring. You are welcome to assist in its construction by editing it as well.
    | arg1 = content
    }}
   }}
   }}
| note = {{tt
| note = {{tt|name=Underconstruction
  | name = Underconstruction
   | default = If this page has not been updated in a while, please replace this notice with {{tll|Improve}}. Last edit was {{REVISIONDAY2}}/{{REVISIONMONTH}}/{{REVISIONYEAR}}.
   | default = If this page has not been updated in a while, please remove this notice. Last edit was {{REVISIONDAY2}}/{{REVISIONMONTH}}/{{REVISIONYEAR}}.
   | arg1 = note
   | arg1 = note
   }}
   }}
| id = mbox-wip
| id = wip
| cat = {{#if:{{{hidecat|}}}||WIP articles{{#ifeq:{{Language code}}|true|{{Subpage}}|}}}}
| cat = {{yesno|{{{hidecat|}}}|yes=|no=WIP articles{{lcs}}}}
| collapsed = true
| collapsed = true
}}</includeonly>
}}</includeonly>

Latest revision as of 10:42, 7 March 2024

Notebook.pngTemplate Documentation

Articles that are either new and still being constructed, or articles undergoing a major transition requiring multiple edits.

Adds articles to the "WIP articles" category.

Usage

Parameters

1
The reason or a description of what is under construction. This parameter is recommended to help editors know what is being improved or how they can help.
section
If set to true, will display "section" instead of "article" in the title.
hidecat
If set to true, will not add the page to the "WIP articles" category.

Examples

Hammer.png
This template is currently under construction.
It is in the process of an expansion or major restructuring. You are welcome to assist in its construction by editing it as well.
If this page has not been updated in a while, please replace this notice with {{Improve}}. Last edit was 07/03/2024.

How to translate

This template is translatable.

Template code

Paste the following code into the <includeonly> tag of the translated template and translate the text after each = sign (except for #default =).

{{#switch: {{{1|}}}
| title = This {{{2}}} is currently under construction.
| content = It is in the process of an expansion or major restructuring. You are welcome to assist in its construction by editing it as well.
| note = If this page has not been updated in a while, please replace this notice with {{tll|Improve}}. Last edit was {{REVISIONDAY2}}/{{REVISIONMONTH}}/{{REVISIONYEAR}}.
| #default = {{Error|translation}}
}}

Template documentation

Copy the code wrapped in the <noinclude> tag in this template and translate the text after doc = in the {{Documentation}} template.

{{Translation guide}} template should be removed from the translated documentation.

See also

Editors can experiment in this template's sandbox.