Difference between revisions of "Template:Scheme info"

From Worms Knowledge Base

Jump to: navigation, search
m
(Testing my template.)
 
(4 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
     <!-- Scheme Icon -->
 
     <!-- Scheme Icon -->
 
     {{#if:{{{icon|}}}|<tr><td style="text-align: center;">
 
     {{#if:{{{icon|}}}|<tr><td style="text-align: center;">
         [[File:{{{icon}}}|100px|center]]
+
         [[File:{{{icon}}}|{{{iconsize|100px}}}|center]]
 
     </td></tr>}}
 
     </td></tr>}}
  
Line 16: Line 16:
 
     {{#if:{{{tags|}}}|<tr><th style="background-color: #ddd;">Tags</th></tr><!--
 
     {{#if:{{{tags|}}}|<tr><th style="background-color: #ddd;">Tags</th></tr><!--
 
     --><tr><td>{{{tags}}}</td></tr>}}
 
     --><tr><td>{{{tags}}}</td></tr>}}
 +
 +
    <!-- Year of Release -->
 +
    {{#if:{{{year|}}}|<tr><th style="background-color: #ddd;">Year of Release</th></tr><!--
 +
    --><tr><td>{{{year}}}</td></tr>}}
 +
 +
    <!-- Playing Time -->
 +
    {{#if:{{{time|}}}|<tr><th style="background-color: #ddd;">Playing Time</th></tr><!--
 +
    --><tr><td>{{{time}}}</td></tr>}}
  
 
     <!-- Compatibility/Latest Version -->
 
     <!-- Compatibility/Latest Version -->
Line 28: Line 36:
  
 
<noinclude>
 
<noinclude>
{{Scheme_info|name={{{name}}}|icon={{{icon}}}|description={{{description}}}|tags={{{tags}}}|compatibility={{{compatibility}}}|author={{{author}}}}}
+
{{Scheme_info|name={{{name}}}|icon={{{icon}}}|iconsize={{{iconsize}}}|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]]".
+
This template is used to display information about schemes in Worms Armageddon. It includes fields for the scheme's release year, playing time, and a customizable icon image size.
  
 
== Usage ==
 
== Usage ==
Line 36: Line 44:
 
|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/>
 +
|iconsize=Size of the icon (default: 100px)<br/>
 
|description=A brief description or slogan for the scheme<br/>
 
|description=A brief description or slogan for the scheme<br/>
 
|tags=[[Category:Custom Schemes]], [[Category:Fast Games]]<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/>
 
|compatibility=The latest compatible version (e.g., Worms Armageddon 3.8+)<br/>
 
|author=Name of the scheme’s creator (defaults to Unknown)<br/>
 
|author=Name of the scheme’s creator (defaults to Unknown)<br/>
 
<nowiki>}}</nowiki>
 
<nowiki>}}</nowiki>
 
</noinclude>
 
</noinclude>

Latest revision as of 00:47, 13 August 2024





This template is used to display information about schemes in Worms Armageddon. It 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)
|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