Difference between revisions of "Template:Scheme info"

From Worms Knowledge Base

Jump to: navigation, search
(Testing my template.)
(Testing my template.)
Line 4: Line 4:
 
     <tr>
 
     <tr>
 
         <th colspan="2" style="font-size: larger; text-align: center; vertical-align: middle;">
 
         <th colspan="2" style="font-size: larger; text-align: center; vertical-align: middle;">
             {{#if:{{{icon|}}}|[[Image:{{{icon}}}|{{{iconsize|32px}}}|alt=icon]]<span style="margin-right: 0.25em;"> </span>}}
+
             {{#if:{{{icon|}}}|<div style="display: inline-block; vertical-align: middle;">
             {{{name|{{PAGENAME}}}}}
+
                <img src="[[File:{{{icon}}}|{{{iconsize|32px}}}]]" alt="icon" style="border: none;" />
 +
            </div>}}
 +
             <div style="display: inline-block; vertical-align: middle; margin-left: 0.5em;">
 +
                {{{name|{{PAGENAME}}}}}
 +
            </div>
 
         </th>
 
         </th>
 
     </tr>
 
     </tr>
Line 11: Line 15:
 
     <!-- Screenshot -->
 
     <!-- Screenshot -->
 
     {{#if:{{{screenshot|}}}|<tr><td colspan="2" style="text-align: center;">
 
     {{#if:{{{screenshot|}}}|<tr><td colspan="2" style="text-align: center;">
         [[Image:{{{screenshot}}}|{{{screensize|250px}}}|{{{caption|{{{name|{{PAGENAME}}}}} screenshot}}}]]
+
         [[File:{{{screenshot}}}|{{{screensize|250px}}}|{{{caption|{{{name|{{PAGENAME}}}}} screenshot}}}]]
 
         {{#if:{{{caption|}}}|<br/>{{{caption}}}}}
 
         {{#if:{{{caption|}}}|<br/>{{{caption}}}}}
 
     </td></tr>}}
 
     </td></tr>}}

Revision as of 00:39, 13 August 2024





This template is used to display information about schemes in Worms Armageddon. It now includes fields for the scheme's release year, playing time, and a customizable icon image size, with enhanced image features for both the icon and screenshot.

Usage

{{Scheme_info
|name = Name of the scheme (defaults to PAGENAME)
|icon = Name of the icon file, including extension (e.g., ExampleIcon.png)
|iconsize = Size of the icon, such as "frame" for full size or "300px" for specific dimensions (default: 100px)
|screenshot = Name of the screenshot file, including extension (e.g., ExampleScreenshot.png)
|screensize = Size of the screenshot, such as "frame" for full size or "300px" for specific dimensions (default: 250px width)
|caption = Caption text for the screenshot (default: "{{{name}}} screenshot")
|description = A brief description or slogan for the scheme
|tags =,
|year = The year the scheme was released
|time = Estimated playing time (e.g., 10-20 minutes)
|compatibility = The latest compatible version (e.g., Worms Armageddon 3.8+)
|author = Name of the scheme’s creator (defaults to Unknown)
}}

Personal tools