Template:Stub master

(Difference between revisions)
Jump to: navigation, search
(going to single-parameter version only now; can change later when/if need arises -- still waiting to convert all stub templates to this scheme, though...)
(use {if} to allow topic-less stubs; expand on instructions)
Line 1: Line 1:
 
{| class="boilerplate metadata" id="stub" style="{{stub style}}"
 
{| class="boilerplate metadata" id="stub" style="{{stub style}}"
| ''This [[{{{1}}}]]-related article is a [[:Category:{{{1}}} stubs|stub]]. You can help out by '''[{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=edit}} expanding it]'''.''
+
| ''This {{if|
|}<includeonly>[[Category:{{{1}}} stubs]]</includeonly><noinclude>
+
test={{{1|}}}|
 +
then=[[{{{1}}}]]-related&#160;article|
 +
else=article}} is a [[:Category:{{if|
 +
test={{{1|}}}|
 +
then={{{1}}} stubs|
 +
else=Stubs}}|stub]]. You can help out by '''[{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=edit}} expanding it]'''.''
 +
|}<includeonly>[[Category:{{if|
 +
test={{{1}}}|
 +
then={{{1}}} stubs|
 +
else=Stubs}}]]</includeonly><noinclude>
 +
----
 +
This "master" template is used to construct stub templates on different topics. '''It should not be used in articles.''' See [[:Category:Stub templates]] for templates that can be used in articles.
  
 
; Usage
 
; Usage
 +
: <tt><nowiki>{{Stub master}}</nowiki></tt>
 +
:: stub templates using this form will categorize articles in [[:Category:Stubs]]
 
: <tt><nowiki>{{Stub master|</nowiki>''topic''}}</tt>
 
: <tt><nowiki>{{Stub master|</nowiki>''topic''}}</tt>
Note that <tt>''topic''</tt> is used in the template text without changing the capitalization.
+
:: stub templates using this form will categorize articles in the appropriate subcategory of [[:Category:Stubs]] named by <tt>''topic''</tt> (e.g., [[:Category:Religion stubs]])
  
 
; Examples
 
; Examples
 +
: <tt><nowiki>{{Stub master}}</nowiki></tt>
 +
:: &rarr; ''This article is a [[:Category:Stubs|stub]]. You can help out by '''[{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=edit}} expanding it]'''.''
 
: <tt><nowiki>{{Stub master|religion}}</nowiki></tt>
 
: <tt><nowiki>{{Stub master|religion}}</nowiki></tt>
 
:: &rarr; ''This [[religion]]-related article is a [[:Category:Religion stubs|stub]]. You can help out by '''[{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=edit}} expanding it]'''.''
 
:: &rarr; ''This [[religion]]-related article is a [[:Category:Religion stubs|stub]]. You can help out by '''[{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=edit}} expanding it]'''.''
 
: <tt><nowiki>{{Stub master|Bible}}</nowiki></tt>
 
: <tt><nowiki>{{Stub master|Bible}}</nowiki></tt>
 
:: &rarr; ''This [[Bible]]-related article is a [[:Category:Bible stubs|stub]]. You can help out by '''[{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=edit}} expanding it]'''.''
 
:: &rarr; ''This [[Bible]]-related article is a [[:Category:Bible stubs|stub]]. You can help out by '''[{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=edit}} expanding it]'''.''
 +
Note that <tt>''topic''</tt>, if provided, is used as-is in the template text; the capitalization is not changed.
  
 
[[Category:Utility templates]]</noinclude>
 
[[Category:Utility templates]]</noinclude>

Revision as of 12:32, 18 July 2007


This "master" template is used to construct stub templates on different topics. It should not be used in articles. See Category:Stub templates for templates that can be used in articles.

Usage
{{Stub master}}
stub templates using this form will categorize articles in Category:Stubs
{{Stub master|topic}}
stub templates using this form will categorize articles in the appropriate subcategory of Category:Stubs named by topic (e.g., Category:Religion stubs)
Examples
{{Stub master}}
This article is a stub. You can help out by expanding it.
{{Stub master|religion}}
This religion-related article is a stub. You can help out by expanding it.
{{Stub master|Bible}}
This Bible-related article is a stub. You can help out by expanding it.

Note that topic, if provided, is used as-is in the template text; the capitalization is not changed.

Personal tools
Namespaces
Variants
Actions
wiki navigation
IronChariots.Org
Toolbox