Template:Scenario: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#ifexist:File:{{{scenario}}} map large.{{{image_type|png}}}|{{switch|switch1=<i>Click the image to change size</i><br/>[[File:{{{scenario}}} map large.{{{image_type|png}}}|170px|border|left]]|switch2=<i>Click the image to change size</i><br />[[File:{{{scenario}}} map large.{{{image_type|png}}}|border|left]]}}|}} | ||
{{#ifexist:File:{{{scenario}}} map large.{{{image_type|png}}}|{{switch|switch1=<i>Click the image to change size</i><br/>[[File:{{{scenario}}} map large.{{{image_type|png}}}|170px|border|left]]|switch2=<i>Click the image to change size</i><br />[[File:{{{scenario}}} map large.{{{image_type|png}}}|border|left]]}}|}} | |||
{{{no_underground|{{#ifexist:File:{{{scenario}}} underground map large.{{{u_image_type|png}}}|{{switch|tag1=1|tag2=2|switch1=[[File:{{{scenario}}} underground map large.{{{u_image_type|png}}}|170px|border]]|switch2=[[File:{{{scenario}}} underground map large.{{{u_image_type|png}}}|border]]}}|}}}}} | {{{no_underground|{{#ifexist:File:{{{scenario}}} underground map large.{{{u_image_type|png}}}|{{switch|tag1=1|tag2=2|switch1=[[File:{{{scenario}}} underground map large.{{{u_image_type|png}}}|170px|border]]|switch2=[[File:{{{scenario}}} underground map large.{{{u_image_type|png}}}|border]]}}|}}}}} | ||
{{scenarioInfo| | {{scenarioInfo| | ||
Line 72: | Line 71: | ||
|no_underground= | |no_underground= | ||
}}</pre> | }}</pre> | ||
==Example== | |||
{{scenario | |||
|scenario=Emerald Isles | |||
|description=The Emerald Isles lie along a major shipping route, which several Barons each seek to control for themselves. You have been chosen to 'persuade' the others to give up their claims. | |||
|no_underground= | |||
}} | |||
Use <span class=plainlinks>[https://tinypng.com/ TinyPNG.com]</span> to compress the map images before uploading. | Use <span class=plainlinks>[https://tinypng.com/ TinyPNG.com]</span> to compress the map images before uploading. | ||
[[Category:Map templates]]</noinclude> | [[Category:Map templates]]</noinclude> |
Revision as of 02:07, 12 December 2023
Variables
- image_type= jpg, gif, etc. (default png)
- u_image_type= jpg, gif, etc. (default png)
- scenario= Scenario name
- size= Size category (S, M, L, XL, H, XH, or G)
- no_underground= (you can just leave this blank: |no_underground=|)
- description= Scenario description text.
- victory= Victory conditions. Existing icons, with default in bold:
- loss= Loss conditions. Existing icons, with default in bold:
- allies= list of allied colors. (There's always at least the player's own color.)
- enemies= list of enemy colors. (This can actually be blank in some maps.)
- bonus= the two or three available bonus items
- difficulty= the default difficulty level for this map. Defaults to Hard, the middle level.
Usage
{{scenario |scenario=Emerald Isles |description=The Emerald Isles lie along a major shipping route, which several Barons each seek to control for themselves. You have been chosen to 'persuade' the others to give up their claims. |no_underground= }}
Example
See also
Use TinyPNG.com to compress the map images before uploading.