"ഫലകം:Ambox" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം
Content deleted Content added
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 {{
}}[[Category:Pages with incorrectly substituted templates]]
}}{{Ambox/{{#ifeq:{{{small}}}|left|small|core}}
|image = {{{image|}}}
|smallimage = {{#if:{{{smallimage|}}}|{{{smallimage}}}|{{{image|}}}}}
▲ |type = {{{type|}}}
|smallimageright = {{#if:{{{smallimageright|}}}|{{{smallimageright}}}|{{{imageright|}}}}}
|class =
|speedy = speedy
|delete = delete
|content = content
|move = move
|
|notice|#default = notice
▲ |style = {{{style|}}}
|textstyle =
|smalltext =
|talk =
}}
|issue = {{#switch:{{{sect|¬}}}
|
|
|¬ = <!-- No date used -->
▲ |¬ = <!-- No talk link used -->
▲ | = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}| More details and relevant discussion can be found on the [[{{TALKPAGENAME}}|talk page]].}}
▲ |{{{talk}}}
▲ }} {{{fix<includeonly>|</includeonly>}}}</span>{{#switch:{{{date|¬}}}
▲ |¬ = <!-- No date used -->
▲ | = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}| <small>''({{CURRENTMONTHNAME}} {{CURRENTYEAR}})''</small>}}
▲ |#default =  <small>''({{{date}}})''</small>
}}
}}{{Category handler
|nocat={{{nocat|<noinclude>true</noinclude>}}}
|main={{Ambox/category
|cat={{{cat|{{{category|}}}}}}
Line 66 ⟶ 53:
|date={{{date|}}}
}}
|template={{#switch:Template:{{{name|
}}
}}<noinclude>
|