Template:Rotating header photos: Difference between revisions

From Wikimedia Foundation Governance Wiki
Content deleted Content added
mNo edit summary
Tag: 2017 source edit
No edit summary
Tag: 2017 source edit
Line 1: Line 1:
{{#switch: {{#expr:{{random number| 15 |{{mod|{{#time:U}}|33}}}}+1}}
{{#switch: {{random number| 15 }}
|1 = File:Anup Sadi and La Kritzolina at WCI 2023 (2).jpg
|1 = File:Anup Sadi and La Kritzolina at WCI 2023 (2).jpg
|2 = File:Audience Appreciation For Closing Address By Tanveer Hasan - Closing Session - Wikiconference India 2023 - Hyderabad 2023-04-30 9425.jpg
|2 = File:Audience Appreciation For Closing Address By Tanveer Hasan - Closing Session - Wikiconference India 2023 - Hyderabad 2023-04-30 9425.jpg

Revision as of 02:43, 13 March 2024

File:Three Wikimedians at Wikimania 2023.jpg

Template documentation

Usage

Displays a random photo appropriate for use in header sections.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
No parameters specified

Example

{{Rotating header photos}}

File:Three Wikimedians at Wikimania 2023.jpg

Adding photos

To add a photo:

  1. Add a new entry to the template giving the photo the next appropriate number assignment. For example, if you are adding the photo following entry 14, your entry would look like:
    |15 = File:Name.jpg
    
  2. Increase the number within the {{random number}} template entry, for example from 14 to 15 (continuing with example from past step):
    {{random number| 15 }}
    
  3. Add the image to the gallery of this documentation page.

Gallery of rotating photos

See also