Difference between revisions of "Template:Fmbox"

From Shadow of the Throne Wiki
Jump to: navigation, search
(rm hardcoded sortkey no longer required after bugzilla:16552)
m (22 revisions: Multicol pages)
 
(4 intermediate revisions by 4 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 12: Line 12:
 
   {{#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>
 
}}
 
}}
Line 25: Line 25:
 
}}
 
}}
 
</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 32: Line 33:
 
| system    =    <!-- Do nothing, valid "type" -->
 
| system    =    <!-- 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:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
}}<!--
+
}}<noinclude>
 
+
--><includeonly>{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|{{#ifeq:{{NAMESPACE}}|Template|[[Category:Footer and header message boxes]]}}}}</includeonly><!--
+
 
+
--><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]]

}}