Template:Link fields/doc: Difference between revisions
From PC Gaming Shelter
Created page with "Creates a set of reusable field definitions for PageForms in pair with Template:Link and its ''aliases''. It is to be used in the form annotations, usually is a multiple instance template. The first unnamed parameter will be used as a value for the Link group property. == Example == <pre> {{{for template|Event link|multiple|embed in field=Event[Event links]|add button text=Add event link}}} {{Link fields|Event links}} {{{end template}}} </pre..." |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
Creates a set of reusable field definitions for PageForms in pair with [[Template:Link]] and its ''aliases''. It is to be used in the form annotations, usually is a multiple instance template. The first unnamed parameter will be used as a value for the [[Property: | Creates a set of reusable field definitions for PageForms in pair with [[Template:Link]] and its ''aliases''. It is to be used in the form annotations, usually is a multiple instance template. The first unnamed parameter will be used as a value for the link group ([[Property:Belongs to group]]). | ||
== Example == | == Example == | ||
| Line 11: | Line 11: | ||
* <code>Event link</code> — name of the alias to [[Template:Link]]. | * <code>Event link</code> — name of the alias to [[Template:Link]]. | ||
* <code>Event[Event links]</code> — names of the parent template (''Event'') and the field that holds instances of a multi-instance template (''Event links''). | * <code>Event[Event links]</code> — names of the parent template (''Event'') and the field that holds instances of a multi-instance template (''Event links''). | ||
* <code>Event links</code> — name of a group the link belongs to. | * <code>Event links</code> — name of a group the link [[Property:Belongs to group|belongs to]]. | ||
Latest revision as of 11:39, 26 March 2026
Creates a set of reusable field definitions for PageForms in pair with Template:Link and its aliases. It is to be used in the form annotations, usually is a multiple instance template. The first unnamed parameter will be used as a value for the link group (Property:Belongs to group).
Example
{{{for template|Event link|multiple|embed in field=Event[Event links]|add button text=Add event link}}}
{{Link fields|Event links}}
{{{end template}}}
where:
Event link— name of the alias to Template:Link.Event[Event links]— names of the parent template (Event) and the field that holds instances of a multi-instance template (Event links).Event links— name of a group the link belongs to.
