Template:nophoto

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(allow for a specific filename to be entered)
(add helpful caption message (which gets overloaded by the link) and "support" for captions; add a few more examples)
Line 1: Line 1:
-
[[Image:Nophoto.PNG|{{{1|150px}}}|link={{#if:{{{filename|}}}|{{SERVER}}{{localurl:Special:Upload|wpDestFile={{{filename}}}}}|Special:Upload}}]]<!--
+
[[Image:Nophoto.PNG|{{{1|150px}}}|Please contribute to the wiki by uploading a file to replace this placeholder.|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>
Line 15: Line 15:
{{nophoto|100px}}
{{nophoto|100px}}
</pre>
</pre>
 +
* To link to a specific desired filename:
 +
<pre>
 +
{{nophoto|filename=newCoolPic.PNG}}
 +
</pre>
 +
* To enter a caption meant for the image to help future editors:
 +
<pre>
 +
{{nophoto|caption=witty description goes here}}
 +
</pre>
 +
* These options can be combined:
 +
<pre>
 +
{{nophoto|100px|filename=newCoolPic.PNG|caption=witty description goes here}}
 +
</pre>
 +
[[Category:Simple Formatting Templates]]
[[Category:Simple Formatting Templates]]
</noinclude>
</noinclude>

Revision as of 00:27, 24 December 2022

Please contribute to the wiki by uploading a file to replace this placeholder.

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}}
  • To link to a specific desired filename:
{{nophoto|filename=newCoolPic.PNG}}
  • To enter a caption meant for the image to help future editors:
{{nophoto|caption=witty description goes here}}
  • These options can be combined:
{{nophoto|100px|filename=newCoolPic.PNG|caption=witty description goes here}}
Personal tools