Difference between revisions of "Template:Ombox/core"

From RimWorld Wiki
Jump to navigation Jump to search
(Needed to use Infobox)
 
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<table class="plainlinks ombox {{#ifeq:{{{small}}}|yes|mbox-small}}  
 
<table class="plainlinks ombox {{#ifeq:{{{small}}}|yes|mbox-small}}  
 
{{#switch:{{{type|}}}
 
{{#switch:{{{type|}}}
 +
| critical  = mbox-critical
 +
| important  = mbox-important
 +
| caution  = mbox-caution
 +
| warning  = mbox-warning
 +
| license = mbox-license
 
| speedy    = ombox-speedy
 
| speedy    = ombox-speedy
 
| delete    = ombox-delete
 
| delete    = ombox-delete
Line 9: Line 14:
 
| notice          <!-- notice = default -->
 
| notice          <!-- notice = default -->
 
| #default  = ombox-notice
 
| #default  = ombox-notice
}} {{{class|}}}" style="{{{style|}}}" role="presentation">
+
}} {{{class|}}}" style="{{{style|}}}">
 
<tr>
 
<tr>
 
{{#ifeq:{{{image|}}}|none
 
{{#ifeq:{{{image|}}}|none
Line 17: Line 22:
 
   | {{{image}}}
 
   | {{{image}}}
 
   | [[Image:{{#switch:{{{type|}}}
 
   | [[Image:{{#switch:{{{type|}}}
     | speedy    = Imbox speedy deletion.png
+
    | critical  = Ambox warning pn.svg
     | delete    = Imbox deletion.png
+
    | important  = Ambox warning pn.svg
     | content    = Imbox content.png
+
    | warning    = Ambox important.svg
     | style      = Edit-clear.svg
+
    | caution    = Edit-clear.png
     | move      = Imbox move.png
+
    | license    = Copyright.png
     | protection = Imbox protection.png
+
     | speedy    = Ambox speedy deletion.png
 +
     | delete    = Ambox deletion.png
 +
     | content    = Ambox content.png
 +
     | style      = Edit-clear.png
 +
     | move      = Ambox move.png
 +
     | protection = Ambox protection.png
 
     | notice          <!-- notice = default -->
 
     | notice          <!-- notice = default -->
     | #default  = Imbox notice.png
+
     | #default  = Ambox notice.png
 
     }} | {{#ifeq:{{{small|}}}|yes
 
     }} | {{#ifeq:{{{small|}}}|yes
 
     | 30x30px
 
     | 30x30px
Line 42: Line 52:
 
-->{{#switch:{{{type|}}}
 
-->{{#switch:{{{type|}}}
 
|  <!-- No type fed, is also valid input -->
 
|  <!-- No type fed, is also valid input -->
 +
| critical
 +
| important
 +
| warning
 +
| caution
 +
| license
 
| speedy
 
| speedy
 
| delete
 
| delete
Line 49: Line 64:
 
| protection
 
| protection
 
| notice    =    <!-- Do nothing, valid "type" -->
 
| notice    =    <!-- Do nothing, valid "type" -->
| #default  = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
+
| #default  = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Category:Pages to be recoded|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
 
}}<noinclude>
 
}}<noinclude>
  

Latest revision as of 00:12, 20 March 2023

Documentation icon Template documentation[create]