Template:Stub: Difference between revisions
m (add →Examples) |
m (Doc: Translation: added error and update param) |
||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
==Usage== | ==Usage== | ||
===Parameters=== | ===Parameters=== | ||
;<code>1</code> | |||
:The reason why and what about it makes it a stub. This parameter is recommended to help editors know what to improve on the page or section. | |||
;<code>section</code> | ;<code>section</code> | ||
:If set to <code>true</code>, will display "section" instead of "article" in the title. | :If set to <code>true</code>, will display "section" instead of "article" in the title. | ||
Line 19: | Line 21: | ||
{{#switch: {{{1|}}} | {{#switch: {{{1|}}} | ||
| title = This {{{2}}} may need more content. | | title = This {{{2}}} may need more content. | ||
| | | note = Editors are encouraged to add new material to the page while expanding upon current topics. | ||
| #default = | | #default = {{Error|translation}} | ||
}} | }} | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
Line 36: | Line 38: | ||
| arg2 = {{Page ns|{{{section|}}}}} | | arg2 = {{Page ns|{{{section|}}}}} | ||
}} | }} | ||
| content = {{tt|name=Stub | | content = {{#if:{{{1|}}}|{{{1}}}}} | ||
| note = {{tt|name=Stub | |||
| default = Editors are encouraged to add new material to the page while expanding upon current topics. | | default = Editors are encouraged to add new material to the page while expanding upon current topics. | ||
| arg1 = | | arg1 = note | ||
}} | }} | ||
| id = stub | | id = stub |
Latest revision as of 00:52, 10 March 2024
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
Parameters
1
- The reason why and what about it makes it a stub. This parameter is recommended to help editors know what to improve on the page or section.
section
- If set to
true
, will display "section" instead of "article" in the title. hidecat
- If set to
true
, it will not add the page to the "Stub articles" category.
Examples
{{Stub}}
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}}} may need more content.
| note = Editors are encouraged to add new material to the page while expanding upon current topics.
| #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.