Template

Difference between revisions of "Stub"

From Joomla! Documentation

m (switch, ifeq is not getting parsed correctly)
m (last try then revert to last working)
Line 4: Line 4:
 
|text=
 
|text=
 
'''This {{{1|article}}} is a stub and needs to be expanded.'''{{#if:{{{explain|}}}| {{{explain|}}}||}}
 
'''This {{{1|article}}} is a stub and needs to be expanded.'''{{#if:{{{explain|}}}| {{{explain|}}}||}}
<span style="display:inline-block; padding:6px; margin:0 30px; font-size:.85em;">If you can provide information or finish this {{{1|article}}} you're welcome to do so. Please remove this message afterwards{{#if: {{{1|}}}|.|&nbsp;or replace with {{tl|inuse}} while making major edits.}} - Thank you.</span>}}<includeonly>{{#switch:{{{jdoc|}}}
+
<span style="display:inline-block; padding:6px; margin:0 30px; font-size:.85em;">If you can provide information or finish this {{{1|article}}} you're welcome to do so. Please remove this message afterwards{{#if: {{{1|}}}|.|&nbsp;or replace with {{tl|inuse}} while making major edits.}} - Thank you.</span>}}<includeonly>{{#switch: {{{jdoc|}}}
| yes={{CatInclude|Needs more content,Needs improvement,Joomla! Wiki need pages|show=yes}}{{#ifeq:{{{1|}}}|section|{{CatInclude|Section needs content|show=yes}}|}}
+
| yes = {{CatInclude|Needs more content,Needs improvement,Joomla! Wiki need pages|show=yes}}{{#ifeq:{{{1|}}}|section|{{CatInclude|Section needs content|show=yes}}| }}
|#default={{CatInclude|Needs more content,Needs improvement,Joomla! Wiki need pages}}{{#ifeq:{{{1|}}}|section|{{CatInclude|Section needs content}}  
+
| #default = {{CatInclude|Needs more content,Needs improvement,Joomla! Wiki need pages}}{{#ifeq:{{{1|}}}|section|{{CatInclude|Section needs content}}  
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
----
 
----

Revision as of 13:24, 2 December 2012


Parameters:

{{{1}}}
a noun to replace article in the default message, e.g. section
{{{explain}}}
supplemental wikitext, why expansion is needed/recommended.

Example:

{{stub|template documentation|explain=The {{tl|documentation}} template should be used instead.}}

{{#switch:

| yes = | #default =

[view] [edit] [history]

Template-info.pngTemplate documentation
Template:Stub/doc