Template:Underconstruction: Difference between revisions

From PZwiki
m (added |tr={{Template:Underconstruction/tr}})
(new layout)
Line 1: Line 1:
<noinclude>{{Languages}}{{Documentation}}[[Category:Maintenance templates]][[Category:Mbox templates]]</noinclude><includeonly>{{NoticeBox
<noinclude>
| color  = #e00
{{Documentation/sandbox|doc =
| image  = [[File:Hammer.png]]
Articles that are either new and still being constructed, or articles undergoing a major transition requiring multiple edits.
|text={{#switch: {{Subpage|slash=false}}
 
  |es={{Template:Underconstruction/es}}
Adds articles to the {{ll|:Category:WIP articles|WIP articles}} category.
  |nl={{Template:Underconstruction/nl}}
 
  |pl={{Template:Underconstruction/pl}}
==Usage==
  |pt={{Template:Underconstruction/pt}}
This template can be used by simply adding {{Tlx|Underconstruction}} to the page.
  |pt-br={{Template:Underconstruction/pt-br}}
 
  |ru={{Template:Underconstruction/ru}}
'''This will produce:'''
  |zh-hans={{Template:Underconstruction/zh-hans}}
{{Underconstruction|hidecat=true}}
  |tr={{Template:Underconstruction/tr}}
 
  |en <!-- default -->
{{Translation guide|<syntaxhighlight lang="html">
  |#default=<span style="font-size:120%">This article or section is currently '''UNDER CONSTRUCTION'''.</span><br> It is in the process of an expansion or major restructuring. You are welcome to assist in its construction by editing it as well, be sure to check the [[{{TALKPAGENAME}}|{{Translation|talk page}}]].<br><small>''If this page has not been updated in a while, please remove this notice. Last edit was {{REVISIONDAY2}}/{{REVISIONMONTH}}/{{REVISIONYEAR}}.''</small>
{{#switch: {{{1|}}}
| title = This article or section 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 remove this notice. Last edit was {{REVISIONDAY2}}/{{REVISIONMONTH}}/{{REVISIONYEAR}}.
| #default = [[Category:Incorrect template usage]]
}}
}}
| cat    = [[Category:WIP articles{{#ifeq:{{Language code|{{Subpage|slash=false}}}}|true|{{Subpage}}|}}]] <!-- checks if pagename = subpagename in language code registry then returns null, else add subpagename -->
</syntaxhighlight>}}
| hidecat = {{{hidecat|}}}
}}
{{ll|Category:Maintenance templates}}
{{ll|Category:Mbox templates}}
</noinclude><includeonly>{{Mbox
| color = #ee0000
| sign = [[File:Hammer.png|link=Template:Underconstruction{{#ifeq:{{Language code}}|true|{{Subpage}}|}}]]
| title = {{tt
  | name = Underconstruction
  | default = This article or section is currently under construction.
  | arg1 = title
  }}
| content = {{tt
  | name = Underconstruction
  | 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
  | name = Underconstruction
  | default = If this page has not been updated in a while, please remove this notice. Last edit was {{REVISIONDAY2}}/{{REVISIONMONTH}}/{{REVISIONYEAR}}.
  | arg1 = note
  }}
| id = mbox-wip
| cat = {{#if:{{{hidecat|}}}||WIP articles{{#ifeq:{{Language code}}|true|{{Subpage}}|}}}}
| collapsed = true
}}</includeonly>
}}</includeonly>

Revision as of 16:32, 28 December 2023

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

This template can be used by simply adding {{Underconstruction}} to the page.

This will produce:

Hammer.png
This article or section 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 remove this notice. Last edit was 28/12/2023.

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 article or section 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 remove this notice. Last edit was {{REVISIONDAY2}}/{{REVISIONMONTH}}/{{REVISIONYEAR}}.
| #default = [[Category:Incorrect template usage]]
}}

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.
Editors can experiment in this template's sandbox.