Template:Main Page Screenshot

From PZwiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Lock-locked.png
This page has been put into protection by a PZwiki administrator.
Reason: This template is considered High Risk as it was transcluded onto the Project Zomboid Wiki.
Pz sc10 b41.jpg
Credit: Robot Joe
[view] [edit] [history] [purge] Template documentation
This template is transcluded onto the main page to display a random image from a list.

Usage

To add a screenshot/caption:

Please note that if you do not have the appropriate user rights, you will not be able to add a screenshot. If you'd like a screenshot to be featured on the main page, please upload the file and post a link to it on an administrator's talk page.

  • Upload the file if it isn't on the wiki already.
  • Edit this page.
  • Change the following...
{{#switch:{{#ifexpr:{{{test|0}}}=1|{{{1}}}|{{rand|#}}}}
...to be this:
{{#switch:{{#ifexpr:{{{test|0}}}=1|{{{1}}}|{{rand|#+1}}}}
  • Copy and paste the following between the last line of the page and the one before it:
|#=[[File:FILENAME.xyz|center|800px|500px|CAPTION]]''CAPTION''
  • Test your changes by inserting {{Main Page Screenshot|#|test=1}} onto a page and replacing # with the screenshots ID number. Preview changes, then you should see your screenshot/caption.


Please do not use equals signs or vertical bars in your captions.
Documentation transcluded from Template:Main Page Screenshot/doc.
Editors can experiment in this template's sandbox (create)