Permanently protected template

Difference between revisions of "Template:Stub"

From Nordic Larp Wiki
Jump to navigation Jump to search
(Created page with "<noinclude> ==Usage== The sentence will appear as following (if "article" is not specified, it will just print the word '''article'''): <blockquote>This ''"subject"'' ''"artic...")
 
m (Protected "Template:Stub" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
+
{{asbox
==Usage==
+
| image     =  
The sentence will appear as following (if "article" is not specified, it will just print the word '''article'''):
+
| pix      =
<blockquote>This ''"subject"'' ''"article"'' ''"qualifier"'' is lacking important information and/or too short.</blockquote>
+
| subject  =  
 
+
| article   = article
Syntax for use:
+
| qualifier =  
<pre><nowiki>
+
| category  = stubs
{{Stub
+
| tempsort  = no
|image=Icon image to show next to message, will be resized to 40x32px and defaults to "NordicLarpWiki.png"
+
| lowercase = y
|iamgealt=Alternate text for image, will default to "Stub image"
+
| name      = Template:Stub
|article=Article type, will default to "article"
 
|subject=Subject, will default to an empty string
 
|qualifier=Qualifier, will default to an empty string
 
|category=Stub Category, will default to "Stub"
 
|category1=Second Stub Category, will default to none
 
|category2=Third Stub Category, will default to none
 
 
}}
 
}}
</nowiki></pre>
 
 
Real world example:
 
<pre><nowiki>
 
{{Stub
 
|subject=[[:Category:Games|game]]
 
|qualifier=about a Swedish larp
 
|category=Game Stubs
 
}}
 
</nowiki></pre>
 
==Result==
 
[[Category:Templates]]
 
</noinclude>
 
<div class="topbox stub">[[File:{{{image|NordicLarpWiki.png}}}|40x32px|alt={{{imagealt|Stub icon}}}]]
 
''This {{{subject|}}} {{{article|article}}} {{{qualifier|}}} is lacking important information and/or is too short.  You can help '''Nordic Larp Wiki''' by [{{fullurl:{{FULLPAGENAME}}|action=edit}} expanding it].''
 
</div>
 
<includeonly>
 
<!--
 
*** Stub category ***
 
-->{{#if:{{{category|}}}|[[Category:{{{category}}}]]|[[Category:Stubs]]}}<!--
 
 
*** Optional second stub category ***
 
-->{{#if:{{{category1|}}}|[[Category:{{{category1}}}]]}}<!--
 
 
*** Optional third stub category ***
 
-->{{#if:{{{category2|}}}|[[Category:{{{category2}}}]]}}<!--
 
-->}}<!--
 
</includeonly>
 

Latest revision as of 15:21, 29 December 2018

Template documentation

About this template

This template is used to identify a stub. It uses {{asbox}}, which is a meta-template designed to ease the process of creating and maintaining stub templates.

Usage

Typing {{stub}} produces the message shown at the beginning, and adds the article to the following category:

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly error report for this template.

TemplateData for Stub

Standard template used for sorting articles into stubs.

Template parameters

ParameterDescriptionTypeStatus
No parameters specified

General information

This is a stub template. A brief explanation of these templates follows; for full details please consult Wikipedia:Stub.

What is a stub?

A stub is an article containing only a few sentences of text which is too short to provide encyclopedic coverage of a subject.

How is a stub identified?

  • If possible, try to find the most appropriate stub template for the article. A full list can be found at Wikipedia:WikiProject Stub sorting/List of stubs.
  • More than one stub template may be used, if necessary, though no more than four should be used on any article.
  • Place a stub template at the very end of the article, after the "External links" section, any navigation templates, and the category tags. As usual, templates are added by including their name inside double braces, e.g. {{stub}}.

Further information

Further information can be found at:

New stub templates and categories (collectively "stub types") should not be created without prior proposal at Wikipedia:WikiProject Stub sorting/Proposals. This allows for the proper coordination of all stub types across Wikipedia, and for the checking of any new stub type for possible problems prior to its creation.

See also