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

From FSDeveloper Wiki
Jump to navigationJump to search
(Created infobox template for msfs script elements)
 
(Changed colors for readability of links)
 
(34 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div align="left" style="float:right; border:black inset thin; background-color:#242424; margin:1em;">
<div align="left" style="width: 40em; border:  
{| class="infobox" cellspacing="0" style="width: 21em; font-size: 90%; font-family: monospace; color: white; text-align: left;"
<!-- Border color depends on category (from msfs script editor). See: https://en.wikipedia.org/wiki/Help:Conditional_expressions#Using_#switch -->
! colspan="2" valign="top" style="text-align: center; font-size: 130%; background-color:#3a3a3a" | {{{title|{{{name|{{PAGENAME}}}}}}}}
{{#switch: {{lc:{{{category|}}} }}
|-
|edition        = #efe9b7
|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:#eaecf0; font-family: monospace;">


{{#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:{{{name|}}}|
! Name
{{!}} {{{name|}}}
{{!}}
-}}
 
{{#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