Difference between revisions of "Template:StubIcon"

From Wikispooks
Jump to navigation Jump to search
(Created page with "<noinclude>category:Rating Templates'''This draws a stub icon if the pagename passed it is a stub.'''<br/> It has two parameters:<br/> {{t|pagename}}, the name of the page...")
 
(link and title text)
Line 2: Line 2:
 
It has two parameters:<br/>
 
It has two parameters:<br/>
 
{{t|pagename}}, the name of the page in question<br/>
 
{{t|pagename}}, the name of the page in question<br/>
{{t|size}}, the width of the icon (defaults to 18px)</noinclude><includeonly>{{#if: {{#show: {{{pagename|}}} | ?Is stub }}|[[image:57px-Notepad icon.png|{{#if: {{{size|}}}|{{{size}}}|18px}}]]}}</includeonly>
+
{{t|size}}, the width of the icon (defaults to 18px)</noinclude><includeonly>{{#if: {{#show: {{{pagename|}}} | ?Is stub }}|[[image:57px-Notepad icon.png|link={{{pagename|}}}|Stub class article|{{#if: {{{size|}}}|{{{size}}}|18px}}]]}}</includeonly>

Revision as of 03:41, 20 September 2016

This draws a stub icon if the pagename passed it is a stub.
It has two parameters:
pagename, the name of the page in question
size, the width of the icon (defaults to 18px)