Jump to content

Template:Ambox: Difference between revisions

From WikiGenius
vikidiaen>Astirmays
 
Created page with "{{#invoke:Message box|ambox}}{{#ifeq:{{{small}}};{{NAMESPACENUMBER}}|left;0|Category:Articles using small message boxes}}<noinclude> {{documentation}} <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude>"
Line 1: Line 1:
<!--{{Ambox}} begin-->{{#ifeq:{{{subst}}}|SUBST
{{#invoke:Message box|ambox}}{{#ifeq:{{{small}}};{{NAMESPACENUMBER}}|left;0|[[Category:Articles using small message boxes]]}}<noinclude>
|{{#if:{{{name|}}}
{{documentation}}
  |{{Error|Template {{tlx|{{{name}}}}} has been incorrectly substituted.}}
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
}}[[Category:Pages with incorrectly substituted templates]]
}}{{Ambox/{{#ifeq:{{{small}}}|left|small|core}}
|type = {{{type|}}}
|image = {{{image|}}}
|smallimage = {{#if:{{{smallimage|}}}|{{{smallimage}}}|{{{image|}}}}}
|imageright = {{{imageright|}}}
|smallimageright = {{#if:{{{smallimageright|}}}|{{{smallimageright}}}|{{{imageright|}}}}}
|class = ambox-{{#switch:{{{type|}}}
  |speedy = speedy
  |delete = delete
  |content = content
  |style = style
  |move = move
  |protection = protection
  |notice|#default = notice
}} {{{class|}}}
|style = {{{style|}}}
|textstyle  = {{{textstyle|}}}
|smalltext  = {{{smalltext|}}}
|talk = {{#switch:{{{talk|¬}}}
  |¬        = <!-- No talk link used -->
  |        = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|#}}
  |#default = {{{talk}}}
}}
|issue = {{#switch:{{{sect|¬}}}
  |¬ = <!-- No section parameter used -->
  |  = This article
  |This {{{sect}}}
}} {{{issue<includeonly>|</includeonly>}}} {{{text|}}}
|fix = {{{fix<includeonly>|</includeonly>}}}
|date = {{#switch:{{{date|¬}}}
  |¬        = <!-- No date used -->
  |        = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
  |#default = {{{date}}}
}}
|info = {{{info|}}}
}}{{Category handler
|nocat={{{nocat|<noinclude>true</noinclude>}}}
|1={{Ambox/category
  |cat={{{cat|{{{category|}}}}}}
  |all={{{all|}}}
  |date={{{date|}}}
}}{{Ambox/category
  |cat={{{cat2|{{{category2|}}}}}}
  |all={{{all2|}}}
  |date={{{date|}}}
}}{{Ambox/category
  |cat={{{cat3|{{{category3|}}}}}}
  |all={{{all3|}}}
  |date={{{date|}}}
}}
|main=1
|help=1
|wikipedia=1
|talk=<!--none-->
|other=<!--none-->
|template={{#switch:Template:{{{name|}}}
  |{{FULLPAGENAME}} = [[Category:Article message boxes]]{{#ifexpr:{{#ifeq:{{{issue|¬}}}|¬|1|0}}+{{#ifeq:{{{fix|¬}}}|¬|1|0}}+{{#ifeq:{{{subst|¬}}}|¬|1|0}}
  |[[Category:Message boxes with errors|{{#expr:{{#ifeq:{{{issue|¬}}}|¬|1|0}}+{{#ifeq:{{{fix|¬}}}|¬|1|0}}+{{#ifeq:{{{subst|¬}}}|¬|1|0}}}}]]
  }}{{#if:{{{category|}}}{{{category2|}}}{{{category3|}}}
  |[[Category:Message boxes with errors|C]]
  }}
  |Template:        = {{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|[[Category:Message boxes with errors]]}}
}}
}}<!--{{Ambox}} end--><noinclude>
{{documentation}}{{nobots}}<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Revision as of 17:10, 24 December 2023

Lua error in package.lua at line 80: module 'Module:Category handler' not found.

Your wiki got a version of Template:Documentation that is only relevant to Templates Wiki! Click here to revert it. For a documentation template you can use on your wiki, see Template:Documentation (copy) on Templates Wiki.
Template information, documentation, and installation instructions.
Expand the below text for usage and other information.

Template Documentation:
Note: The template above might be broken without the parameters; this is normal.
Create documentation for this template. (How does this work?)
Editors can experiment with this template's sandbox and testcases.

Documentation does not exist. Create it at Template:Ambox/doc .


Installation Instructions
Export this template, then import to install it.
Use edit summary: Copied from [[w:c:templates:Template:Ambox]] to properly attribute this template's editors.
There is no additional installation instructions for this template. If there is any, you may create it at Template:Ambox/install.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.