Template:TableAttributeNew: Difference between revisions
From The Seven Sages of Rome
No edit summary |
m Text replacement - "ms-" to "cc-" |
||
| Line 13: | Line 13: | ||
Renamed from TableAttribute for scoped testing. | Renamed from TableAttribute for scoped testing. | ||
</noinclude><includeonly>{{#if:{{{value|}}}|<div class=" | </noinclude><includeonly>{{#if:{{{value|}}}|<div class="cc-attr-row{{#if:{{{padding|}}}| cc-attr-row--child cc-depth-{{{padding}}}}}"><div class="cc-attr-label"><span class="cc-attr-label-inner">{{{display_name|}}}</span></div><div class="cc-attr-value">{{#switch:{{{type|}}}|file=[[File:{{{value}}}|thumbnail|{{{value}}}]]|text={{#set:{{{property|}}}={{{value|}}}}}{{#if:{{{form|}}}|{{#formredlink:target={{{value|}}}|form={{{form|}}}}}|{{{value|}}}}}|attr={{#set:{{{property|}}}={{{value|}}}}}{{#if:{{{form|}}}|{{#formredlink:target={{{value|}}}|form={{{form|}}}}}|[[{{{value|}}}]]}}|list={{#arraymap:{{{value|}}}|;|x|{{#set:{{{property|}}}=x}}{{#if:{{{form|}}}|{{#formredlink:target=x|form={{{form|}}}}}|x}}|, }}|#default={{{value|}}}}}</div></div>}}</includeonly> | ||
Revision as of 19:43, 25 February 2026
Usage
{{TableAttributeNew |type=[file,text,attr,list] |display_name=the displayed name |value=the value to set |property=the property name |form=the form to link to |padding=padding depth (1,2,3,4) }}
Renamed from TableAttribute for scoped testing.