Template:nophoto

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(have the image link to Special:Upload as per suggestion; adding another parameter to point to a specific file will require more syntax I have to look up)
(allow for a specific filename to be entered)
Line 1: Line 1:
-
[[Image:Nophoto.PNG|{{{1|150px}}}|link=Special:Upload]]<!--
+
[[Image:Nophoto.PNG|{{{1|150px}}}|link={{#if:{{{filename|}}}|{{SERVER}}{{localurl:Special:Upload|wpDestFile={{{filename}}}}}|Special:Upload}}]]<!--
--><includeonly>[[Category:Articles Needing Images]]</includeonly><noinclude>
--><includeonly>[[Category:Articles Needing Images]]</includeonly><noinclude>

Revision as of 20:46, 20 December 2022

This template is used to mark items that expect a photo but do not have them.

These are added to the Articles Needing Images category.

Usage

  • To add an image with a default width of 150px:
{{nophoto}}
  • To add an image with a width of 100px:
{{nophoto|100px}}
Personal tools