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|}}}}}{{{value|}}}}}
| text = {{#if:{{{value|}}}|{{#set:{{{property}}}={{{value|}}}}}{{{value|}}}}}
| attr = {{#if:{{{value|}}}|{{#if:{{{form|}}}|x|[[{{{property|}}}::{{{value|}}}]]|}}
| attr = {{#if:{{{value|}}}|[[{{{property|}}}::{{{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 09:38, 22 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}}