Template:Stub: Difference between revisions
Dat Hack3r (talk | contribs) m Updated category name. |
m This template documentation is a stub. |
||
| Line 1: | Line 1: | ||
<div class="notice metadata plainlinks stub-box" id="stub" style="border:2px dashed gray; margin:0.2em auto 0.8em auto; padding:0.5em; text-align:center; width:80%;">''This article is a [[:Category:Stubs|stub]]. You can help {{SITENAME}} by [{{fullurl:{{FULLPAGENAME}}|action=edit}} expanding it].''</div><includeonly>[[Category:Stubs]]</includeonly><noinclude> | <div class="notice metadata plainlinks stub-box" id="stub" style="border:2px dashed gray; margin:0.2em auto 0.8em auto; padding:0.5em; text-align:center; width:80%;">''This {{#if:{{{type|{{{1|}}}}}}|{{{type|{{{1|}}}}}}|article}} is a [[:Category:Stubs|stub]]. You can help {{SITENAME}} by [{{fullurl:{{FULLPAGENAME}}|action=edit}} expanding it].''</div><includeonly>[[Category:Stubs]]</includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | <templatedata> | ||
{ | |||
"params": { | |||
"type": { | |||
"description": "Replaces 'article' with parameter if given." | |||
} | |||
}, | |||
"description": "Marks a page as a stub." | |||
} | |||
</templatedata></noinclude> | |||
Revision as of 12:06, 20 December 2025
{{Stub}} displays a message box at the top of stubs, marking them as such and encouraging editors to expand them. A stub is a page too short to cover its subject adequately. By default, {{stub}} assumes that the page is an article. For pages outside the mainspace, the first positional parameter or |type= can be used to specify the page type (e.g., template documentation). Pages with this template are automatically added to Category:Stubs.
{{Stub|template documentation}}(on Template:Stub/doc) →
{{Stub|type=template documentation}}(on Template:Stub/doc) →
TemplateData
When placed at the top of a page, this template marks it as a stub and encourages editors to contribute.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Page type | 1 type | Specifies the type of the page in the message
| String | optional |
Marks a page as a stub.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| type | type | Replaces 'article' with parameter if given. | Unknown | optional |