Difference between revisions of "Template:StubIcon"

From Wikispooks
Jump to navigation Jump to search
(link and title text)
(22px)
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|link={{{pagename|}}}|Stub class article|{{#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>

Revision as of 03:44, 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 22px)