Template:Main Page Screenshot: Difference between revisions
(2 new screenshots) |
(made screenshots responsive to screen resolution) |
||
Line 1: | Line 1: | ||
<noinclude>{{Protection|reason=This template is considered '''High Risk''' as it is transcluded onto the [[Main Page]].}}{{documentation}}</noinclude><includeonly>{{#switch:{{#ifexpr:{{{test|0}}}=1|{{{1}}}|{{rand|23}}}} | <noinclude>{{Protection|reason=This template is considered '''High Risk''' as it is transcluded onto the [[Main Page]].}}{{documentation}}</noinclude><includeonly><div class="res-img" style="text-align:center;">{{#switch:{{#ifexpr:{{{test|0}}}=1|{{{1}}}|{{rand|23}}}} | ||
|1=[[File:Pz_sc1.jpg|center|800px|500px|link={{filepath:Pz sc1.jpg}}|Jimmy Evans enjoying the unemployed lifestyle playing golf.]]''Jimmy Evans enjoying the unemployed lifestyle playing golf.'' | |1=[[File:Pz_sc1.jpg|center|800px|500px|link={{filepath:Pz sc1.jpg}}|Jimmy Evans enjoying the unemployed lifestyle playing golf.]]''Jimmy Evans enjoying the unemployed lifestyle playing golf.'' | ||
|2=[[File:Pz_sc2.jpg|center|800px|500px|link={{filepath:Pz sc2.jpg}}|Jimmy Evans enjoying the unemployed lifestyle playing golf.]]''Jimmy Evans enjoying the unemployed lifestyle playing golf.'' | |2=[[File:Pz_sc2.jpg|center|800px|500px|link={{filepath:Pz sc2.jpg}}|Jimmy Evans enjoying the unemployed lifestyle playing golf.]]''Jimmy Evans enjoying the unemployed lifestyle playing golf.'' | ||
Line 23: | Line 23: | ||
|22=[[File:Pz_sc23.jpg|center|800px|500px|link={{filepath:Pz sc23.jpg}}|Coming back to your vehicle after leaving it running]]''Coming back to your vehicle after leaving it running<br>'''— Screenshot by [https://steamcommunity.com/sharedfiles/filedetails/?id=1413296150 ここあ - COCOA]''''' | |22=[[File:Pz_sc23.jpg|center|800px|500px|link={{filepath:Pz sc23.jpg}}|Coming back to your vehicle after leaving it running]]''Coming back to your vehicle after leaving it running<br>'''— Screenshot by [https://steamcommunity.com/sharedfiles/filedetails/?id=1413296150 ここあ - COCOA]''''' | ||
|23=[[File:Pz_sc24.jpg|center|800px|500px|link={{filepath:Pz sc24.jpg}}|Snowmelt]]''With summer approaching, the snow begins to melt<br>'''— Screenshot by [https://steamcommunity.com/sharedfiles/filedetails/?id=1620685938 Colic2005]''''' | |23=[[File:Pz_sc24.jpg|center|800px|500px|link={{filepath:Pz sc24.jpg}}|Snowmelt]]''With summer approaching, the snow begins to melt<br>'''— Screenshot by [https://steamcommunity.com/sharedfiles/filedetails/?id=1620685938 Colic2005]''''' | ||
}}</includeonly> | }}</div></includeonly> |
Revision as of 15:55, 28 April 2019
This page has been put into protection by a PZwiki administrator.
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.
Documentation transcluded from Template:Main Page Screenshot/doc.
Editors can experiment in this template's sandbox (create)
Editors can experiment in this template's sandbox (create)