Difference between revisions of "Template:Scheme info"

From Worms Knowledge Base

Jump to: navigation, search
(Scheme info template test (my first attempt on creating a template))
 
m
Line 1: Line 1:
<div class="scheme-template">
+
<includeonly>
     <!-- Name of the scheme -->
+
<table class="infobox nowraplinks" cellspacing="2" style="width: 20em; text-align: left;">
     <div class="scheme-name">
+
     <!-- Scheme Name -->
        '''{{{name}}}'''
+
     {{#if:{{{name|}}}|<tr><th style="font-size: 120%; text-align: center;">{{{name|{{PAGENAME}}}}}</th></tr>}}
    </div>
+
  
     <!-- Image of the icon -->
+
     <!-- Scheme Icon -->
     <div class="scheme-icon">
+
     {{#if:{{{icon|}}}|<tr><td style="text-align: center;">
 
         [[File:{{{icon}}}|100px|center]]
 
         [[File:{{{icon}}}|100px|center]]
     </div>
+
     </td></tr>}}
  
     <!-- Description/slogan -->
+
     <!-- Description/Slogan -->
     <div class="scheme-description">
+
     {{#if:{{{description|}}}|<tr><th style="background-color: #ddd;">Description</th></tr><!--
        ''{{{description|brief description or slogan of the scheme}}}''
+
    --><tr><td>{{{description}}}</td></tr>}}
    </div>
+
  
 
     <!-- Tags/Categories -->
 
     <!-- Tags/Categories -->
     <div class="scheme-tags">
+
     {{#if:{{{tags|}}}|<tr><th style="background-color: #ddd;">Tags</th></tr><!--
        '''Tags:''' {{{tags}}}
+
    --><tr><td>{{{tags}}}</td></tr>}}
    </div>
+
  
     <!-- Latest version -->
+
     <!-- Compatibility/Latest Version -->
     <div class="scheme-version">
+
     {{#if:{{{compatibility|}}}|<tr><th style="background-color: #ddd;">Compatibility</th></tr><!--
        '''scheme version:''' {{{scheme version|latest version}}}
+
    --><tr><td>{{{compatibility}}}</td></tr>}}
    </div>
+
  
     <!-- Créditos ao Autor -->
+
     <!-- Credits to the Author -->
     <div class="scheme-credits">
+
     {{#if:{{{author|}}}|<tr><th style="background-color: #ddd;">Author</th></tr><!--
        '''Author:''' {{{author|Unknown}}}
+
    --><tr><td>{{{author}}}</td></tr>}}
    </div>
+
</table>
</div>
+
</includeonly>
 +
 
 +
<noinclude>
 +
{{Scheme_info|name={{{name}}}|icon={{{icon}}}|description={{{description}}}|tags={{{tags}}}|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]]".
 +
 
 +
== Usage ==
 +
<nowiki>{{Scheme_info</nowiki><br/>
 +
|name=Name of the scheme ''(defaults to PAGENAME)''<br/>
 +
|icon=Name of the icon file, including extension (e.g., ExampleIcon.png)<br/>
 +
|description=A brief description or slogan for the scheme<br/>
 +
|tags=[[Category:Custom Schemes]], [[Category:Fast Games]]<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>
 +
</noinclude>

Revision as of 23:37, 12 August 2024







This template is used to display information about schemes in Worms Armageddon. It’s based on complex templates like "Template:Game_setup".

Usage

{{Scheme_info
|name=Name of the scheme (defaults to PAGENAME)
|icon=Name of the icon file, including extension (e.g., ExampleIcon.png)
|description=A brief description or slogan for the scheme
|tags=,
|compatibility=The latest compatible version (e.g., Worms Armageddon 3.8+)
|author=Name of the scheme’s creator (defaults to Unknown)
}}

Personal tools