Template:Stub: Difference between revisions
(Added |tr={{Template:Stub/tr}}) |
(new layout) |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
| | {{Documentation/sandbox|doc = | ||
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 {{ll|:Category:Stub articles|stub articles}} category. | |||
==Usage== | |||
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. | |||
'''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]] | |||
}} | }} | ||
| | </syntaxhighlight>}} | ||
| | }} | ||
{{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
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:
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.