Difference between revisions of "Template:Fmbox"

From Shadow of the Throne Wiki
Jump to: navigation, search
(Changing the "type=warning" border to #BB7070, which is a compromise between the suggestions on the talk page.)
m (22 revisions: Multicol pages)
 
(11 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<table id="{{{id|}}}" class="plainlinks fmbox
+
<table {{#if:{{{id|}}}|id="{{{id|}}}"}} class="plainlinks fmbox
 
{{#switch:{{{type|}}}
 
{{#switch:{{{type|}}}
 
| warning    = fmbox-warning
 
| warning    = fmbox-warning
Line 5: Line 5:
 
| system          <!-- system = default -->
 
| system          <!-- system = default -->
 
| #default  = fmbox-system
 
| #default  = fmbox-system
}} {{{class|}}}" style="clear: both; margin: 0.2em 0; border: 1px solid #aaa; background: #f9f9f9; width: 100%;
+
}} {{{class|}}}" style="{{{style|}}}">
{{#switch:{{{type|}}}
+
| warning    = background: #FFDBDB; border: 1px solid #BB7070;
+
| editnotice = background: transparent;
+
| system          <!-- system = default -->
+
| #default  = background: #f9f9f9;
+
}} {{{style|}}}">
+
 
<tr>
 
<tr>
 
{{#ifeq:{{{image|}}}|none
 
{{#ifeq:{{{image|}}}|none
 
| <!-- No image. -->
 
| <!-- No image. -->
| <td class="mbox-image" style="border: none; padding: 2px 0 2px 0.9em; text-align: center;">
+
| <td class="mbox-image">
 
   {{#if:{{{image|}}}
 
   {{#if:{{{image|}}}
 
   | {{{image}}}
 
   | {{{image}}}
   | {{#switch:{{{type|}}}
+
   | [[File:{{#switch:{{{type|}}}
     | warning    = [[Image:Cmbox deletion.png|40x40px]]
+
     | warning    = Cmbox deletion.png
     | editnotice = [[Image:Imbox notice.png|40x40px]]
+
     | editnotice = Imbox notice.png
 
     | system          <!-- system = default -->
 
     | system          <!-- system = default -->
     | #default  = [[Image:Imbox notice.png|40x40px]]
+
     | #default  = Imbox notice.png
     }}
+
     }}|40x40px|link=|alt=]]
 
   }}</td>
 
   }}</td>
 
}}
 
}}
<td class="mbox-text" style="border: none; padding: 0.25em 0.9em; width: 100%; {{{textstyle|}}}"> {{{text}}} </td>
+
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
 
{{#if:{{{imageright|}}}
 
{{#if:{{{imageright|}}}
| <td class="mbox-imageright" style="border: none; padding: 2px 0.9em 2px 0; text-align: center;"> {{{imageright}}} </td>
+
| <td class="mbox-imageright"> {{{imageright}}} </td>
 
}}
 
}}
 
</tr>
 
</tr>
</table><!-- Detect and report usage with faulty "type" parameter:
+
</table><!--
 +
  Detect and report usage with faulty "type" parameter:
 
-->{{#switch:{{{type|}}}
 
-->{{#switch:{{{type|}}}
 
|  <!-- No type fed, is also valid input -->
 
|  <!-- No type fed, is also valid input -->
Line 37: Line 32:
 
| editnotice
 
| editnotice
 
| system    =    <!-- Do nothing, valid "type" -->
 
| system    =    <!-- Do nothing, valid "type" -->
| #default  = [[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:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
 
}}<noinclude>
 
}}<noinclude>
 
{{pp-template|small=yes}}
 
 
{{documentation}}
 
{{documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Latest revision as of 13:23, 21 November 2012

{{#ifeq:|none | | }}

{{#if:

|

}}

{{#switch:

| | warning | editnotice | system =

| #default =
This message box is using an invalid "type=" parameter and needs fixing.
[[Category:Wikipedia message box parameter needs fixing|Template:Main otherTemplate:Fmbox]]

}} {{#ifeq: Fmbox | sandbox

|
Template:Template sandbox notice }}Template:Template other
{{#ifeq: ¬ |

|

|
{{
 #if: 
 | 
 | 
   {{
   #if: {{#ifexist: 
   {{#if: 
   |    
   | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: Fmbox | sandbox | testcases = Fmbox | #default = Fmbox }}/doc

   }}
 | yes
 }}
   | [[[{{#if: 
 | 
 | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: Fmbox | sandbox | testcases = Fmbox | #default = Fmbox }}/doc

 }}|view]]] [[{{fullurl:{{#if: 
 | 
 | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: Fmbox | sandbox | testcases = Fmbox | #default = Fmbox }}/doc

 }}|action=edit}} edit]] [[{{fullurl:{{#if: 
 | 
 | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: Fmbox | sandbox | testcases = Fmbox | #default = Fmbox }}/doc

 }}|action=history}} history]] [purge] 
   | 
     [[{{fullurl:{{#if: 
 | 
 | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: Fmbox | sandbox | testcases = Fmbox | #default = Fmbox }}/doc

 }}| action=edit&preload={{
       #if:  
       | 
       | {{#ifeq: Template | File
         | Template:Documentation/preload-filespace
         | Template:Documentation/preload
         }} }} }} create]]
   }}
 }} {{#switch: ¬
 | ¬ =   
   {{#switch: Template 
   | Template = 50px Template documentation
   | File = Summary
   | #default = Documentation
   }}
 | #default = 
   ¬
}}

}} {{#switch: {{#if:|1|0}}{{#if:|1|0}}{{#ifexist:|1|0}}{{#ifexist:{{#switch: Template

 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: Fmbox | sandbox | testcases = Fmbox | #default = Fmbox }}/doc|1|0}} | 1000 | 1001 | 1010 | 1011 | 1100 | 1101 | 1110 | 1111 = | 0110 | 0111 = {{ {{{1}}} }} | 0001 | 0011 = {{ {{#switch: Template

 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: Fmbox | sandbox | testcases = Fmbox | #default = Fmbox }}/doc }} | 0000 | 0100 | 0010 | 0101 = }}

{{#if:
 {{#ifeq:  | off
 |
 | {{#ifexist: 
   {{#if: 
   |    
   | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: Fmbox | sandbox | testcases = Fmbox | #default = Fmbox }}/doc

   }}
 | yes
 }}{{
   #switch: Template
   | User
   | Template = yes
   }}
 }}
| {{#ifeq:none|none | | }} {{#if: |

}}

{{#switch:

| | warning | editnotice | system =

| #default =
This message box is using an invalid "type=" parameter and needs fixing.
[[Category:Wikipedia message box parameter needs fixing|Template:Main otherTemplate:Fmbox]]

}} }}{{#if:

 {{#switch: Fmbox
 | doc
 | testcases = strange
 }}

| [[Category:Wikipedia pages with strange ((documentation)) usage|Template:Main otherTemplate:Fmbox]]

}}