Template:InterestingScreenshot: Difference between revisions

From Nikipedia
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
<!--  
<!--
   Template:InterestingScreenshot
   Template:InterestingScreenshot
   ---------------------------------
   ---------------------------------
   This template helps create a standardized display and category for interesting screenshots.
   Creates a standardized layout for interesting screenshots.
   Usage example:
   Usage:
     {{InterestingScreenshot
     {{InterestingScreenshot
    | title      = My Screenshot
      | title      = Some Title
    | file        = Example.png
      | file        = Example.png
    | description = A short description
      | description = A short description
    | reason      = Why it's interesting
      | reason      = Why it's interesting
    | date        = 2025-03-15
      | date        = 2025-03-15
     }}
     }}
-->
-->
</noinclude>
</noinclude>
<div class="interesting-screenshot-container" style="border:1px solid #CCC; padding:8px; margin:8px 0;">
<includeonly>
 
<div style="border:1px solid #CCC; padding:8px; margin:8px 0;">
   <!-- Title (Fallback if no title provided) -->
   <!-- Use the template-supplied title or default to "Unnamed Screenshot" -->
   <h2>{{#if:{{{title|}}}|{{{title}}}|Unnamed Screenshot}}</h2>
   <h2>{{#if:{{{title|}}}|{{{title}}}|Unnamed Screenshot}}</h2>


 
  <!-- Only show the file if a filename is given -->
  {{#if:{{{file|}}}|
     [[File:{{{file}}}|thumb|{{{description|No description provided.}}}]]
     [[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|No reason provided.}}}</p>


   <!-- Additional details -->
   <p><strong>Date:</strong> {{{date|No date provided}}}</p>
  <ul>
    <li><b>Date:</b> {{{date|No date provided}}}</li>
  </ul>
 
</div>
</div>
<!-- Automatically add to the "Interesting Screenshots" category -->
[[Category:Interesting Screenshots]]
[[Category:Interesting Screenshots]]
</includeonly>

Revision as of 2025-03-15T17:15:02