Difference between revisions of "Template:Scheme info"

From Worms Knowledge Base

Jump to: navigation, search
m
(Testing my template.)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
<table class="infobox nowraplinks" cellspacing="2" style="width: 20em; text-align: left;">
+
<table class="infobox nowraplinks" cellspacing="2" style="width: 21em; font-size: 90%; text-align: left;">
     <!-- Scheme Name -->
+
     <!-- Scheme Name and Icon -->
     {{#if:{{{name|}}}|<tr><th style="font-size: 120%; text-align: center;">{{{name|{{PAGENAME}}}}}</th></tr>}}
+
     <tr>
 +
        <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>}}
 +
            {{{name|{{PAGENAME}}}}}
 +
        </th>
 +
    </tr>
  
     <!-- Scheme Icon -->
+
     <!-- Screenshot -->
     {{#if:{{{icon|}}}|<tr><td style="text-align: center;">
+
     {{#if:{{{screenshot|}}}|<tr><td colspan="2" style="text-align: center;">
         [[File:{{{icon}}}|100px|center]]
+
         [[Image:{{{screenshot}}}|{{{screensize|250px}}}|{{{caption|{{{name|{{PAGENAME}}}}} screenshot}}}]]
 +
        {{#if:{{{caption|}}}|<br/>{{{caption}}}}}
 
     </td></tr>}}
 
     </td></tr>}}
  
 
     <!-- Description/Slogan -->
 
     <!-- Description/Slogan -->
     {{#if:{{{description|}}}|<tr><th style="background-color: #ddd;">Description</th></tr><!--
+
     {{#if:{{{description|}}}|<tr><th colspan="2" style="background-color: #ddd; text-align: left;">Description</th></tr><!--
     --><tr><td>{{{description}}}</td></tr>}}
+
     --><tr><td colspan="2">{{{description}}}</td></tr>}}
  
 
     <!-- Tags/Categories -->
 
     <!-- Tags/Categories -->
     {{#if:{{{tags|}}}|<tr><th style="background-color: #ddd;">Tags</th></tr><!--
+
     {{#if:{{{tags|}}}|<tr><th colspan="2" style="background-color: #ddd; text-align: left;">Tags</th></tr><!--
     --><tr><td>{{{tags}}}</td></tr>}}
+
     --><tr><td colspan="2">{{{tags}}}</td></tr>}}
 +
 
 +
    <!-- Year of Release -->
 +
    {{#if:{{{year|}}}|<tr><th colspan="2" style="background-color: #ddd; text-align: left;">Year of Release</th></tr><!--
 +
    --><tr><td colspan="2">{{{year}}}</td></tr>}}
 +
 
 +
    <!-- Playing Time -->
 +
    {{#if:{{{time|}}}|<tr><th colspan="2" style="background-color: #ddd; text-align: left;">Playing Time</th></tr><!--
 +
    --><tr><td colspan="2">{{{time}}}</td></tr>}}
  
 
     <!-- Compatibility/Latest Version -->
 
     <!-- Compatibility/Latest Version -->
     {{#if:{{{compatibility|}}}|<tr><th style="background-color: #ddd;">Compatibility</th></tr><!--
+
     {{#if:{{{compatibility|}}}|<tr><th colspan="2" style="background-color: #ddd; text-align: left;">Compatibility</th></tr><!--
     --><tr><td>{{{compatibility}}}</td></tr>}}
+
     --><tr><td colspan="2">{{{compatibility}}}</td></tr>}}
  
 
     <!-- Credits to the Author -->
 
     <!-- Credits to the Author -->
     {{#if:{{{author|}}}|<tr><th style="background-color: #ddd;">Author</th></tr><!--
+
     {{#if:{{{author|}}}|<tr><th colspan="2" style="background-color: #ddd; text-align: left;">Author</th></tr><!--
     --><tr><td>{{{author}}}</td></tr>}}
+
     --><tr><td colspan="2">{{{author}}}</td></tr>}}
 
</table>
 
</table>
 
</includeonly>
 
</includeonly>
  
 
<noinclude>
 
<noinclude>
{{Scheme_info|name={{{name}}}|icon={{{icon}}}|description={{{description}}}|tags={{{tags}}}|compatibility={{{compatibility}}}|author={{{author}}}}}
+
{{Scheme_info|name={{{name}}}|icon={{{icon}}}|iconsize={{{iconsize}}}|screenshot={{{screenshot}}}|caption={{{caption}}}|description={{{description}}}|tags={{{tags}}}|year={{{year}}}|time={{{time}}}|compatibility={{{compatibility}}}|author={{{author}}}}}
  
This template is used to display information about schemes in Worms Armageddon. It’s based on complex templates like "[[Template:Game_setup]]" and "[[Template:Scheme]]".
+
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.
  
 
== Usage ==
 
== Usage ==
 
<nowiki>{{Scheme_info</nowiki><br/>
 
<nowiki>{{Scheme_info</nowiki><br/>
|name=Name of the scheme ''(defaults to PAGENAME)''<br/>
+
|name = Name of the scheme ''(defaults to PAGENAME)''<br/>
|icon=Name of the icon file, including extension (e.g., ExampleIcon.png)<br/>
+
|icon = Name of the icon file, including extension (e.g., ExampleIcon.png)<br/>
|description=A brief description or slogan for the scheme<br/>
+
|iconsize = Size of the icon (default: 100px)<br/>
|tags=[[Category:Custom Schemes]], [[Category:Fast Games]]<br/>
+
|screenshot = Name of the screenshot file, including extension (e.g., ExampleScreenshot.png)<br/>
|compatibility=The latest compatible version (e.g., Worms Armageddon 3.8+)<br/>
+
|screensize = Size of the screenshot (default: 250px width)<br/>
|author=Name of the scheme’s creator (defaults to Unknown)<br/>
+
|caption = Caption text for the screenshot (default: "{{{name}}} screenshot")<br/>
 +
|description = A brief description or slogan for the scheme<br/>
 +
|tags = [[Category:Custom Schemes]], [[Category:Fast Games]]<br/>
 +
|year = The year the scheme was released<br/>
 +
|time = Estimated playing time (e.g., 10-20 minutes)<br/>
 +
|compatibility = The latest compatible version (e.g., Worms Armageddon 3.8+)<br/>
 +
|author = Name of the scheme’s creator (defaults to Unknown)<br/>
 
<nowiki>}}</nowiki>
 
<nowiki>}}</nowiki>
 
</noinclude>
 
</noinclude>

Revision as of 00:15, 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.

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 (default: 100px)
|screenshot = Name of the screenshot file, including extension (e.g., ExampleScreenshot.png)
|screensize = Size of the screenshot (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