Template:TableAttribute: Difference between revisions
From Seven Sages of Rome
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
| '''{{{2}}}''' || {{#switch:{{{1}}} | | '''{{{2}}}''' || {{#switch:{{{1}}} | ||
| file = {{#if:{{{3|}}}|[[File:{{{3}}}|thumbnail|{{{3}}}]]}} | | file = {{#if:{{{3|}}}|[[File:{{{3}}}|thumbnail|{{{3}}}]]}} | ||
| text = {{#if:{{{3|}}}| | | text = {{#if:{{{3|}}}|{{#set:{{{2}}}={{{3}}}}}{{{3}}}}} | ||
| attr = {{#if:{{{3|}}}| | | attr = {{#if:{{{3|}}}|{{#set:{{{4}}}={{{3}}}}}}} | ||
| list = {{#arraymap:{{{3|}}}|;|x| | | list = {{#arraymap:{{{3|}}}|;|x|{{#set:{{{2}}}=x}}|; }} | ||
| #default = {{#if:{{{3|}}}|{{{3}}}}} | | #default = {{#if:{{{3|}}}|{{{3}}}}} | ||
}} | }} | ||
</includeonly> | </includeonly> |