Template:Infobox-MSFS-Script-Element: Difference between revisions

From FSDeveloper Wiki
Jump to navigationJump to search
m (capitalization)
(Changed colors for readability of links)
 
(29 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div align="left" style="float:right; border:  
<div align="left" style="width: 40em; border:  
<!-- Border color depends on category (from msfs script editor). See: https://en.wikipedia.org/wiki/Help:Conditional_expressions#Using_#switch -->
{{#switch: {{lc:{{{category|}}} }}
{{#switch: {{lc:{{{category|}}} }}
|triggers = #1e49bf
|edition        = #efe9b7
|WhiteSmoke
|actions        = #973919
|areas          = #12693f
|missions      = #e8c00d
|simobjects    = #e8c00d
|triggers       = #1e49bf
|rtc            = #808080
|flightplan    = #808080
|libraryobjects = #7d0bde
|others        = #db0b79
|Lightgrey
}}
}}
  solid 4px; border-radius: 10px; margin:1em; background-color:#242424; ">
  solid 4px; border-radius: 10px; margin:1em; background-color:#eaecf0; font-family: monospace;">
{| class="infobox" cellspacing="10" style="width: 21em; font-size: 90%; font-family: monospace; color: white; text-align: left; vertical-align: top;"
! colspan="2" valign="top" style="text-align: center; font-size: 130%; background-color:#3a3a3a;" | {{{title|{{{name|{{PAGENAME}}}}}}}}
|-


{{#if:{{{category|}}}|
<div style="font-size: 120%; font-weight: bold; text-align: center; background-color:#d8dade; border-radius: 6px 6px 0 0; padding: 0.2em 0.5em;">{{{title|{{{name|{{PAGENAME}}}}}}}}
! Category
</div>
{{!}} {{{category|}}}
{{!}}-
}}
 
{{#if:{{{short-descr|}}}|
! Description
{{!}} {{{short-descr|}}}
{{!}}-
}}


<div style="padding: 0.3em 1em;">
{{{short-descr|}}}
<hr>
{| cellspacing="10em" style="width: 100%;"
|-
! style="width: 30%"|
|
|-
<noinclude>
|}
|}
</div>
</div></div>
</noinclude>

Latest revision as of 10:23, 4 January 2022

Infobox-MSFS-Script-Element