"ഫലകം:Ambox" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

only show talk page link if talk page exists, add info parameter for additional information, make nocat=true work, tracking category adjustments
major rewrite, splitting code for small ambox, add section parameter
വരി 1:
{{#ifeq:{{{subst}}}|SUBST
|{{#if:{{{name|}}}
|{{Error|Template {{Tlxtlx|{{{name}}}}} has been incorrectly substituted.}}
}}[[Category:Pages with incorrectly substituted templates]]
}}{{Ambox/{{#ifeq:{{{small}}}|left|small|core}}
|type = {{{type|}}}
|{{Ambox/core
|image = {{{image|}}}
|small = left
|smallimage = {{#if:{{{smallimage|}}}|{{{smallimage}}}|{{{image|}}}}}
|type = {{{type|}}}
|image imageright = {{#if:{{{smallimageimageright|}}}
|smallimageright = {{#if:{{{smallimageright|}}}|{{{smallimageright}}}|{{{imageright|}}}}}
|{{{smallimage}}}
|class = |ambox-{{#switch:{{{imagetype|}}}
|speedy = speedy
}}
|delete = delete
|imageright = {{#if:{{{smallimageright|}}}
|content = content
|{{{smallimageright}}}
|style = {{{style|}}}
|{{{imageright|}}}
|move = move
}}
|class protection = {{{class|}}}protection
|notice|#default = notice
|style = {{{style|}}}
|textstyle = }} {{{textstyleclass|}}}
|text style = {{#if:{{{smalltextstyle|}}}
|textstyle = |{{{smalltexttextstyle|}}}
|smalltext = |{{#if:{{{issuesmalltext|}}}
|talk = |{{#switch:{issue{{talk|¬}}}
|¬ = <!-- No talk link used -->
|{{{text}}}
| = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|&#32;<small>''({{CURRENTMONTHNAME}} {{CURRENTYEAR}})''</small>}}
}}
|#default = |{{{talk}}}
}}
}}
|issue = {{#switch:{{{sect|¬}}}
|{{Ambox/core
= <!-- No datesection parameter used -->
|type = {{{type|}}}
|image = This = {{{image|}}}article
|imageright =This {{{imageright|sect}}}
}} {{{fixissue<includeonly>|</includeonly>}}}</span>{{#switch: {{{datetext|¬}}}
|class = {{{class|}}}
|style fix = {{{stylefix<includeonly>|</includeonly>}}}
|textstyle date = {{#switch:{{{textstyledate|¬}}}
|¬ = <!-- No date used -->
|text = {{{text|}}} {{{issue<includeonly>|</includeonly>}}}<span class="hide-when-compact"> {{#switch:{{{talk|¬}}}
| = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|&#32;More{{CURRENTMONTHNAME}} details and relevant discussion can be found on the [[{{TALKPAGENAMECURRENTYEAR}}|talk page]].}}
|¬ = <!-- No talk link used -->
|#default = &#32;<small>''({{{date}}})''</small>
| = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|&#32;More details and relevant discussion can be found on the [[{{TALKPAGENAME}}|talk page]].}}
|#default = {{#ifexist:{{#ifeq:{{TALKPAGENAME:{{{talk}}}}}|{{FULLPAGENAME:{{{talk}}}}}
|{{{talk}}}
|{{TALKPAGENAME}}
}}
|&#32;More details and relevant discussion may be found on {{#ifeq:{{TALKPAGENAME:{{{talk}}}}}|{{FULLPAGENAME:{{{talk}}}}}
|[[{{{talk}}}|{{FULLPAGENAME:{{{talk}}}}}]]
|the [[{{TALKPAGENAME}}#{{{talk}}}|talk page]]
}}.
}}
}} {{{fix<includeonly>|</includeonly>}}}</span>{{#switch:{{{date|¬}}}
|¬ = <!-- No date used -->
| = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|&#32;<small>''({{CURRENTMONTHNAME}} {{CURRENTYEAR}})''</small>}}
|#default = &#32;<small>''({{{date}}})''</small>
}}<span class="hide-when-compact"> {{{info|}}}</span>
}}
|type info = {{{typeinfo|}}}
}}{{Category handler
|nocat={{{nocat|<noinclude>true</noinclude>}}}
|main={{Ambox/category
|cat={{{cat|{{{category|}}}}}}
Line 66 ⟶ 53:
|date={{{date|}}}
}}
|template={{#switch:Template:{{{name|<noinclude>Ambox</noinclude>}}}
|{{FULLPAGENAME}} = [[Category:Article message templates]]{{#ifexpr:{{#ifeq:{{{issue|¬}}}|¬|1|0}}+{{#ifeq:{{{fix|¬}}}|¬|1|0}}+{{#ifeq:{{{subst|¬}}}|¬|1|0}}
|[[Category:Article message templates with missing parameters|{{#expr:{{#ifeq:{{{issue|¬}}}|¬|1|0}}+{{#ifeq:{{{fix|¬}}}|¬|1|0}}+{{#ifeq:{{{subst|¬}}}|¬|1|0}}}}]]
}}{{#if:{{{category|}}}{{{category2|}}}{{{category3|}}}
|[[Category:Article message templates with missing parameters|C]]
}}
|Template: = {{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|[[Category:Article message templates with missing parameters]]}}
}}
}}<noinclude>
"https://ml.wikipedia.org/wiki/ഫലകം:Ambox" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്