Template:Main Page Screenshot: Difference between revisions

From PZwiki
m (Code accidently broken due to removed older pictures. Restoring functionality by setting rand to 9 (now 9 images in use).)
(added screenshots 10-23)
Line 1: Line 1:
<noinclude>{{documentation}}</noinclude><includeonly>{{#switch:{{#ifexpr:{{{test|0}}}=1|{{{1}}}|{{rand|9}}}}
<noinclude>{{documentation}}</noinclude><includeonly>{{#switch:{{#ifexpr:{{{test|0}}}=1|{{{1}}}|{{rand|22}}}}
|1=[[File:Pz sc1.jpg|center|800px|500px]]
|1=[[File:Pz sc1.jpg|center|800px|500px]]
|2=[[File:Pz sc2.jpg|center|800px|500px]]
|2=[[File:Pz sc2.jpg|center|800px|500px]]
Line 9: Line 9:
|8=[[File:Pz sc9.jpg|center|800px|500px]]
|8=[[File:Pz sc9.jpg|center|800px|500px]]
|9=[[File:Pz sc10.jpg|center|800px|500px]]
|9=[[File:Pz sc10.jpg|center|800px|500px]]
|10=[[File:Pz sc11.jpg|center|800px|500px]]
|11=[[File:Pz sc12.jpg|center|800px|500px]]
|12=[[File:Pz sc13.jpg|center|800px|500px]]
|13=[[File:Pz sc14.jpg|center|800px|500px]]
|14=[[File:Pz sc15.jpg|center|800px|500px]]
|15=[[File:Pz sc16.jpg|center|800px|500px]]
|16=[[File:Pz sc17.jpg|center|800px|500px]]
|17=[[File:Pz sc18.jpg|center|800px|500px]]
|18=[[File:Pz sc19.jpg|center|800px|500px]]
|19=[[File:Pz sc20.jpg|center|800px|500px]]
|20=[[File:Pz sc21.jpg|center|800px|500px]]
|21=[[File:Pz sc22.jpg|center|800px|500px]]
|22=[[File:Pz sc23.jpg|center|800px|500px]]
}}</includeonly>
}}</includeonly>

Revision as of 08:01, 30 July 2018

[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)