Template:Stub: Difference between revisions

From PZwiki
(Added |tr={{Template:Stub/tr}})
(new layout)
Line 1: Line 1:
<noinclude>{{Languages}}{{Documentation}}[[Category:Maintenance templates]][[Category:Mbox templates]]</noinclude><includeonly>{{NoticeBox
<noinclude>
|color=#0af
{{Documentation/sandbox|doc =
|image=[[File:Notebook.png]]
This template should be used on articles that are considered too short to provide much informational use, although they may have potential to be expanded upon.
|text={{#switch: {{Subpage|slash=false}}
 
  |es={{Template:Stub/es}}
Adds articles to the {{ll|:Category:Stub articles|stub articles}} category.
  |nl={{Template:Stub/nl}}
 
  |zh-hans={{Template:Stub/zh-hans}}
==Usage==
  |pt-br={{Template:Stub/pt-br}}
This template can be used by simply adding {{Tlx|Stub}} to the page. It will automatically be translated, so long as the translation exists. No need to add the language code subpage.
  |tr={{Template:Stub/tr}}
 
  |en|#default=<span style="font-size:120%">This article may '''need more content'''.</span><br>Editors are encouraged to add new material to the page while expanding upon current topics.</span>
'''This will produce:'''
{{Stub|hidecat=true}}
 
{{Translation guide|<syntaxhighlight lang="html">
{{#switch: {{{1|}}}
| title = This article/section may need more content.
| content = Editors are encouraged to add new material to the page while expanding upon current topics.
| #default = [[Category:Incorrect template usage]]
}}
}}
|cat=[[Category:Stub 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|}}}}}</includeonly>
}}
{{ll|Category:Maintenance templates}}
{{ll|Category:Mbox templates}}
</noinclude><includeonly>{{Mbox
| color = #00aaff
| sign = [[File:Notebook.png|link=Template:Stub{{#ifeq:{{Language code}}|true|{{Subpage}}|}}]]
| title = {{tt
  | name = Stub
  | default = This article/section may need more content.
  | arg1 = title
  }}
| content = {{tt
  | name = Stub
  | default = Editors are encouraged to add new material to the page while expanding upon current topics.
  | arg1 = content
  }}
| id = mbox-stub
| cat = {{#if:{{{hidecat|}}}||Stub articles{{#ifeq:{{Language code}}|true|{{Subpage}}|}}}}
| collapsed = true
}}</includeonly>

Revision as of 16:13, 28 December 2023

Notebook.pngTemplate Documentation

This template should be used on articles that are considered too short to provide much informational use, although they may have potential to be expanded upon.

Adds articles to the stub articles category.

Usage

This template can be used by simply adding {{Stub}} to the page. It will automatically be translated, so long as the translation exists. No need to add the language code subpage.

This will produce:

Notebook.png
This article/section may need more content.
Editors are encouraged to add new material to the page while expanding upon current topics.

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/section may need more content.
| content = Editors are encouraged to add new material to the page while expanding upon current topics.
| #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.