Template

Difference between revisions of "Deprecated"

From Joomla! Documentation

m (oops, meant expr)
m (hopeful fix)
Line 1: Line 1:
<includeonly>{{version/until|{{{1|{{{when|}}}}}}|platform={{{platform|}}}|alt={{{from|}}}|altlink={{{link|}}}|alttitle={{{new|{{{link|}}}}}}|deprecated={{{old|}}}}}{{#ifeq:{{NAMESPACE}}|Template| |{{#ifexpr:{{{from|}}} < 11 |[[Category:Joomla! {{{from|}}} deprecated{{!}}{{PAGENAME}}]]|[[Category:Joomla! Platform {{{from|}}} deprecated{{!}}{{PAGENAME}}]]}}{{#if:{{{platform|}}}| [[Category:Joomla! Platform {{{from|}}} deprecated{{!}}{{PAGENAME}}]]|}}}}</includeonly><noinclude>{{documentation}}</noinclude>
+
<includeonly>{{version/until|{{{1|{{{when|}}}}}}|platform={{{platform|}}}|alt={{{from|}}}|altlink={{{link|}}}|alttitle={{{new|{{{link|}}}}}}|deprecated={{{old|}}}}}{{#ifeq:{{NAMESPACE}}|Template| |{{#arraydefine:FromVersion|{{{from|}}}}}{{#arrayprint:FromVersion| |@@@@|{{#ifexpr:@@@@ < 11 |[[Category:Joomla! @@@@ deprecated{{!}}{{PAGENAME}}]]|[[Category:Joomla! Platform @@@@ deprecated{{!}}{{PAGENAME}}]]}}}}{{#arrayreset:FromVersion}}{{#if:{{{platform|}}}| [[Category:Joomla! Platform {{{from|}}} deprecated{{!}}{{PAGENAME}}]]|}}}}</includeonly><noinclude>{{documentation}}</noinclude>

Revision as of 15:04, 10 September 2012

[view] [edit] [history]

Template-info.pngTemplate documentation

For placing a notice at the top of an article(page) for notification of a Joomla! deprecated function or method.

Functions/Features[edit]

For placing a notice at the top of an article(page) for notification of a Joomla! deprecated function or method. This will also add an automatic categorisation to the page it is placed on using the parsed Version and or Platform, and pagename.

Usage[edit]

{{deprecated|when=1.5|from=2.5|link=API16:JHtmlTabs|old=JPane|new=JHtmlTabs}}
{{deprecated|platform=11.2|from=11.3|link=API16:JHtmlTabs|old=JPane|new=JHtmlTabs}}
{{deprecated|when=1.5|from=2.5,11.1|link=API16:JHtmlTabs|old=JPane|new=JHtmlTabs}}
{{deprecated|when=1.5|from=2.5|link=Category|old=Section|new=Categories}}


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]

  • You must supply a link and method.

See also[edit]

  • {{version}} Joomla! CMS or Platform Version notice.
  • {{version/tutor}} Joomla! CMS or Platform Version, tutorial notice