Template:TableAttribute: Difference between revisions

From Seven Sages of Rome
No edit summary
No edit summary
Line 7: Line 7:
| file = {{#if:{{{value|}}}|[[File:{{{value}}}|thumbnail|{{{value|}}}]]}}
| file = {{#if:{{{value|}}}|[[File:{{{value}}}|thumbnail|{{{value|}}}]]}}
| text = {{#if:{{{value|}}}|{{#set:{{{property|}}}={{{value|}}}}}{{#if:{{{form|}}}|{{#formredlink:target={{{value|}}}|form={{{form|}}}}}|{{{value|}}}}}}}
| text = {{#if:{{{value|}}}|{{#set:{{{property|}}}={{{value|}}}}}{{#if:{{{form|}}}|{{#formredlink:target={{{value|}}}|form={{{form|}}}}}|{{{value|}}}}}}}
| attr = {{#if:{{{value|}}}|[[{{{property|}}}::{{{value|}}}]]}}
| attr = {{#if:{{{value|}}}|{{#set:{{{property|}}}={{{value|}}}}}{{#if:{{{form|}}}|{{#formredlink:target={{{value|}}}|form={{{form|}}}}}|{{{value|}}}}}}}
| list = {{#arraymap:{{{value|}}}|;|x|[[{{{property|}}}::x]]|, }}
| list = {{#arraymap:{{{value|}}}|;|x|[[{{{property|}}}::x]]|, }}
| #default = {{#if:{{{value|}}}|{{{value|}}}}}
| #default = {{#if:{{{value|}}}|{{{value|}}}}}
}}
}}
</includeonly>
</includeonly>

Revision as of 14:12, 23 January 2024

Usage

{{TableAttribute|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}}