Template

Difference between revisions of "AmboxNew"

From Joomla! Documentation

m (Protected "Template:AmboxNew": High traffic page: will be a high-traffic use template (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite)))
m (oops, o not 0)
 
(24 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="panel radius">
+
<div class="panel radius ambox-{{#switch:{{{type|}}}
  <h4 class="subheader">{{#switch:{{{image|{{{type|}}}}}}
+
    | serious  = serious
     | serious  = [[Image:Stop_hand_nuvola.svg.png|left|{{{imagesize|25px}}}]]
+
    |protection= protection
     |protection= [[Image:Padlock.png|left|{{{imagesize|25px}}}]]
+
    | copyedit = copyedit
     | content  = [[Image:Quill_icon.png|left|{{{imagesize|30px}}}]]
+
    | content  = content
     | style    = [[Image:Broom-icon.png|left|{{{imagesize|25px}}}]]
+
    | style    = style
     | merge    = [[Image:Merge-icon.png|left|{{{imagesize|25px}}}]]
+
    | merge    = merge
     | split    = [[Image:Split-icon.png|left|{{{imagesize|25px}}}]]
+
    | split    = split
     | notice  = [[Image:Info_non-talk.png|left|{{{imagesize|25px}}}]]
+
    | notice  = notice
     | jdoc    = [[Image:Documentation_all_together_tranparent_small.png|left|{{{imagesize|50px}}}]]
+
    | jdoc    = jdoc
     | archive  = [[File:Replacement filing cabinet.png|left|{{{imagesize|25px}}}]]
+
    | archive  = archive
     | delete  = [[File:Delete-icon.png|left|{{{imagesize|25px}}}]]
+
    | delete  = delete
     | 1.5     = {{JVer|1.5}}
+
    | tip      = tip
     | 2.5     = {{JVer|2.5}}
+
    | 1.5      = jver15
     | 3.0     = {{JVer|3.0}}
+
    | 2.5      = jver25
     | 3.1     = {{JVer|3.1}}
+
    | 3.0      = jver30
     | 3.x     = {{JVer|3.x}}
+
    | 3.1      = jver31
 +
    | 3.x      = jver3x
 +
    | blank = blank
 +
    |#default  = notice
 +
}}"><div class="subheader-ambox">{{#switch:{{{image|{{{type|}}}}}}
 +
     | serious  = [[Image:Stop_hand_nuvola.svg.png|{{{imagesize|25px}}}]]
 +
     |protection= [[Image:Padlock.png|{{{imagesize|25px}}}]]
 +
    | copyedit = [[Image:Copyedit.png|{{{imagesize|25px}}}]]
 +
     | content  = [[Image:Quill_icon.png|{{{imagesize|30px}}}]]
 +
     | style    = [[Image:Broom-icon.png|{{{imagesize|25px}}}]]
 +
     | merge    = [[Image:Merge-icon.png|{{{imagesize|25px}}}]]
 +
     | split    = [[Image:Split-icon.png|{{{imagesize|25px}}}]]
 +
     | notice  = [[Image:Info_non-talk.png|{{{imagesize|25px}}}]]
 +
     | jdoc    = [[Image:Documentation_all_together_tranparent_small.png|{{{imagesize|50px}}}]]
 +
     | archive  = [[File:Replacement filing cabinet.png|{{{imagesize|25px}}}]]
 +
     | delete  = [[File:Delete-icon.png|{{{imagesize|25px}}}]]
 +
     | tip      = {{icon|lightbulb-o|2x}}
 +
    | jver15     = {{JVer|1.5}}
 +
     | jver25     = {{JVer|2.5}}
 +
     | jver30     = {{JVer|3.0}}
 +
     | jver31     = {{JVer|3.1}}
 +
     | jver3x     = {{JVer|3.x}}
 
     | blank = <!--blank-->
 
     | blank = <!--blank-->
     |#default  = [[Image:Info_non-talk.png|left|{{{imagesize|25px}}}]]
+
     |#default  = [[Image:Info_non-talk.png|{{{imagesize|25px}}}]]
  }} &nbsp;{{{subject|{{#switch:{{{type|}}}
+
}}<div class="ambox-title">{{{subject|{{#switch:{{{type|}}}
   | serious  = Warning!
+
   | serious  = {{{title|Warning Notice!}}}
   | content  = Content
+
   | content  = {{{title|Content Notice}}}
   | style    = Style
+
  | copyedit = {{{title|Copy editing Notice}}}
   | merge    = Merge Notice
+
   | style    = {{{title|Style Notice}}}
   | split    = Split Notice
+
   | merge    = {{{title|Merge Notice}}}
   | notice  = Additional Information
+
   | split    = {{{title|Split Notice}}}
   | growth  = Growth Notice
+
   | notice  = {{{title|General Information}}}
   |protection= Notice of Protection
+
   | growth  = {{{title|Growth Notice}}}
   | archive  = Archived Notice
+
   |protection= {{{title|Notice of Protection}}}
   | delete  = Notice of Deletion
+
   | archive  = {{{title|Archived Notice}}}
 +
   | delete  = {{{title|Notice of Deletion}}}
 +
  | tip      = {{{title|A Helpful Tip}}}
 
   | none    = <!-- none -->
 
   | none    = <!-- none -->
   | #default = Additional Information
+
   | #default = {{{title|General Information}}}
}} }}} </h4>
+
}}}}}</div></div><p class="ambox" style="font-size:.9em;">{{{text}}}</p></div><noinclude>
  <p>{{{text}}}</p>
 
</div>
 
<noinclude>
 
 
{{pp-template}}
 
{{pp-template}}
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 08:45, 25 May 2015

Info non-talk.png
General Information

{{{text}}}

Padlock.png

This page is currently protected from editing . (protection log).
Please discuss changes on the talk page or request unprotection. You may use {{editprotected}} on the talk page to ask for an administrator to make an edit for you.

[view] [edit] [history]

Template-info.pngTemplate documentation


Functions/Features[edit]

Info non-talk.png
General Information

Documentation to be completed in the near future.

Usage[edit]

Provide examples such as ....

  • via {{tl}} for templates w/o params: {{template name}}
  • via {{tlx}} for templates with params & complex output: {{template name|foo|param=bar}}
  • via {{xpd}} for templates with simple & output: {{template name|foo|param=bar}} gives
    Info non-talk.png
    General Information

    This is a dummy template with absolutely no value except as a placeholder for demo of JDOC's templates. You should return to the page you just came from by clicking on the back button of your browser.

Parameters[edit]

Parameter Parameter description req./opt.
{{{1}}} description of unnamed parameter 1 required
{{{foobar}}} Default: "batbaz". Description of named parameter 'foobar' optional

Known Issues[edit]

Include notes about ...

  • dependencies (templates, extensions, assets)
  • limitations, technical probs, namespace restrictions
  • rendering issues

See also[edit]

Provide links to ...

  • related templates
  • supplemental documentation
  • style guides
  • example pages

Stylesheet[edit]

Provide CSS selectors ... for [[MediaWiki::joomla.css]] (or [[MediaWiki::common.css]])

some.class