Template:nophoto
From Homestar Runner Wiki
(Difference between revisions)
It's dot com (Talk | contribs) (simplify code; shorten default message) |
It's dot com (Talk | contribs) (rm unused parameter) |
||
Line 4: | Line 4: | ||
--><div style="width: {{{1|150px}}}; position: relative;">[[Image:Nophoto.PNG<!-- | --><div style="width: {{{1|150px}}}; position: relative;">[[Image:Nophoto.PNG<!-- | ||
-->|{{{1|150px}}}<!-- | -->|{{{1|150px}}}<!-- | ||
- | |||
-->|link={{#var:nophoto_link}}]] | -->|link={{#var:nophoto_link}}]] | ||
<div class="plainlinks" style="box-sizing:border-box;width:{{{1|150px}}};padding:10px;position:absolute;bottom:0px;left:0;text-align:center;font-size:90%;line-height:1.3">[{{#var:nophoto_link}} <span style="color:#FF5555; text-shadow: 1px 1px black;">{{{caption|Click here to upload an image}}}</span>]</div></div><includeonly>[[Category:Articles Needing Images]]</includeonly><noinclude> | <div class="plainlinks" style="box-sizing:border-box;width:{{{1|150px}}};padding:10px;position:absolute;bottom:0px;left:0;text-align:center;font-size:90%;line-height:1.3">[{{#var:nophoto_link}} <span style="color:#FF5555; text-shadow: 1px 1px black;">{{{caption|Click here to upload an image}}}</span>]</div></div><includeonly>[[Category:Articles Needing Images]]</includeonly><noinclude> |
Revision as of 03:05, 27 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}}
- 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}}