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).)
m (Not protected anymore)
 
(16 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<noinclude>{{documentation}}</noinclude><includeonly>{{#switch:{{#ifexpr:{{{test|0}}}=1|{{{1}}}|{{rand|9}}}}
<noinclude>{{Main Page Screenshot}}{{Documentation}}[[Category:Templates]]</noinclude><includeonly><div class="res-img" style="text-align: center;">{{#switch:{{#ifexpr:{{{test|0}}}=1|{{{1}}}|{{rand|16}}}}
|1=[[File:Pz sc1.jpg|center|800px|500px]]
|1=[[File:Pz_sc1_b41.jpg|center|x500px|link={{filepath:Pz_sc1_b41.jpg}}]]''Credit: [https://steamcommunity.com/sharedfiles/filedetails/?id=2710265900 Manaham]''
|2=[[File:Pz sc2.jpg|center|800px|500px]]
|2=[[File:Pz_sc2_b41.jpg|center|x500px|link={{filepath:Pz_sc2_b41.jpg}}]]''Credit: [https://steamcommunity.com/sharedfiles/filedetails/?id=2708687070 Выживатор]''
|3=[[File:Pz sc3.jpg|center|800px|500px]]
|3=[[File:Pz_sc3_b41.jpg|center|x500px|link={{filepath:Pz_sc3_b41.jpg}}]]''Credit: [https://steamcommunity.com/sharedfiles/filedetails/?id=2707248718 LICH]''
|4=[[File:Pz sc4.jpg|center|800px|500px]]
|4=[[File:Pz_sc4_b41.jpg|center|x500px|link={{filepath:Pz_sc4_b41.jpg}}]]''Credit: [https://steamcommunity.com/sharedfiles/filedetails/?id=2705279003 THE NUKE]''
|5=[[File:Pz sc6.jpg|center|800px|500px]]
|5=[[File:Pz_sc5_b41.jpg|center|x500px|link={{filepath:Pz_sc5_b41.jpg}}]]''Credit: [https://steamcommunity.com/sharedfiles/filedetails/?id=2701516174 Darkoracle]''
|6=[[File:Pz sc7.jpg|center|800px|500px]]
|6=[[File:Pz_sc6_b41.jpg|center|x500px|link={{filepath:Pz_sc6_b41.jpg}}]]''Credit: [https://steamcommunity.com/sharedfiles/filedetails/?id=2702496405 Mitsakult]''
|7=[[File:Pz sc8.jpg|center|800px|500px]]
|7=[[File:Pz_sc7_b41.jpg|center|x500px|link={{filepath:Pz_sc7_b41.jpg}}]]''Credit: [https://steamcommunity.com/sharedfiles/filedetails/?id=2626550733 Noah]''
|8=[[File:Pz sc9.jpg|center|800px|500px]]
|8=[[File:Pz_sc8_b41.jpg|center|x500px|link={{filepath:Pz_sc8_b41.jpg}}]]''Credit: [https://steamcommunity.com/sharedfiles/filedetails/?id=2673925739 Citro]''
|9=[[File:Pz sc10.jpg|center|800px|500px]]
|9=[[File:Pz_sc9_b41.jpg|center|x500px|link={{filepath:Pz_sc9_b41.jpg}}]]''Credit: [https://steamcommunity.com/sharedfiles/filedetails/?id=2353020597 Blankman]''
}}</includeonly>
|10=[[File:Pz_sc10_b41.jpg|center|x500px|link={{filepath:Pz_sc10_b41.jpg}}]]''Credit: [https://steamcommunity.com/sharedfiles/filedetails/?id=2710866830 Robot Joe]''
|11=[[File:Pz_sc11_b41.jpg|center|x500px|link={{filepath:Pz_sc11_b41.jpg}}]]''Credit: [https://steamcommunity.com/sharedfiles/filedetails/?id=2622698996 Pappi Almighty]''
|12=[[File:Pz_sc12_b41.jpg|center|x500px|link={{filepath:Pz_sc12_b41.jpg}}]]''Credit: [https://steamcommunity.com/sharedfiles/filedetails/?id=2634526181 Jacket]''
|13=[[File:Pz_sc13_b41.jpg|center|x500px|link={{filepath:Pz_sc13_b41.jpg}}]]''Credit: [https://steamcommunity.com/sharedfiles/filedetails/?id=2627745460 mavaK]''
|14=[[File:Pz_sc14_b41.jpg|center|x500px|link={{filepath:Pz_sc14_b41.jpg}}]]''Credit: [https://steamcommunity.com/sharedfiles/filedetails/?id=2614128347 Blood Shadow]''
|15=[[File:Pz_sc15_b41.jpg|center|x500px|link={{filepath:Pz_sc15_b41.jpg}}]]''Credit: [https://steamcommunity.com/sharedfiles/filedetails/?id=2613875396 Wilsonions]''
|16=[[File:Pz_sc16_b41.jpg|center|x500px|link={{filepath:Pz_sc16_b41.jpg}}]]''Credit: [https://steamcommunity.com/sharedfiles/filedetails/?id=2615370795 x.savaj]''
}}</div>

Latest revision as of 15:27, 1 May 2024

Pz sc4 b41.jpg
Credit: THE NUKE
[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)