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...")
 
(switch category)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>[[category:Rating Templates]]'''This draws a stub icon if the pagename passed it is a stub.'''<br/>
+
<noinclude>[[category:Templates]]'''This draws a stub icon if the pagename passed it is a stub.'''<br/>
 
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 22px)</noinclude><includeonly>{{#if: {{#show: {{{pagename|}}} | ?Is stub }}|[[image:57px-Notepad icon.png|link={{{pagename|}}}|Stub class article|{{#if: {{{size|}}}|{{{size}}}|22px}}]]}}</includeonly>

Latest revision as of 15:54, 15 June 2019

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 22px)