Template:InterestingScreenshot: Difference between revisions

From Nikipedia
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
   Template:InterestingScreenshot
   Template:InterestingScreenshot
   ---------------------------------
   ---------------------------------
   Creates a standardized layout for interesting screenshots.
   A simplified template with no conditionals. All parameters should be provided.
   Usage:
   Usage:
     {{InterestingScreenshot
     {{InterestingScreenshot
Line 16: Line 16:
<includeonly>
<includeonly>
<div style="border:1px solid #CCC; padding:8px; margin:8px 0;">
<div style="border:1px solid #CCC; padding:8px; margin:8px 0;">
   <!-- Use the template-supplied title or default to "Unnamed Screenshot" -->
   <!-- Title -->
   <h2>{{#if:{{{title|}}}|{{{title}}}|Unnamed Screenshot}}</h2>
   <h2>{{{title}}}</h2>


   <!-- Only show the file if a filename is given -->
   <!-- File (thumb) + description -->
   {{#if:{{{file|}}}|
   [[File:{{{file}}}|thumb|{{{description}}}]]
    [[File:{{{file}}}|thumb|{{{description|No description provided.}}}]]
  }}


  <!-- Why is it interesting? -->
   <h3>Why is it interesting?</h3>
   <h3>Why is it interesting?</h3>
   <p>{{{reason|No reason provided.}}}</p>
   <p>{{{reason}}}</p>


   <p><strong>Date:</strong> {{{date|No date provided}}}</p>
  <!-- Date -->
   <p><strong>Date:</strong> {{{date}}}</p>
</div>
</div>
<!-- Automatically add pages using this template to the Interesting Screenshots category -->
[[Category:Interesting Screenshots]]
[[Category:Interesting Screenshots]]
</includeonly>
</includeonly>

Revision as of 2025-03-15T17:16:23