Template:InterestingScreenshot: Difference between revisions

From Nikipedia
Jump to navigation Jump to search
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
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" -->
   <h2>{{{title}}}</h2>
   <h2>{{#if:{{{title|}}}|{{{title}}}|Unnamed Screenshot}}</h2>


   <!-- Only show the file if a filename is given -->
   <!-- Increased thumbnail size by using upright=2 -->
  {{#if:{{{file|}}}|
[[File:{{{file}}}|thumb|700px|{{{description}}}]]
    [[File:{{{file}}}|thumb|{{{description|No description provided.}}}]]
  }}


   <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>
   <p><strong>Date:</strong> {{{date}}}</p>
</div>
</div>
[[Category:Interesting Screenshots]]
[[Category:Interesting Screenshots]]
</includeonly>
</includeonly>

Latest revision as of 2025-03-15T19:36:05