Template:Link fields: Difference between revisions
From PC Gaming Shelter
No edit summary |
No edit summary |
||
| Line 23: | Line 23: | ||
-->{{{field <!-- | -->{{{field <!-- | ||
-->{{!}} Link group <!-- | -->{{!}} Link group <!-- | ||
-->{{!}} default={{{1|}}} <!-- | -->{{!}} default={{{1|Links}}} <!-- | ||
-->{{!}} show on select=Download links=>filesize<!-- | -->{{!}} show on select=Download links=>filesize<!-- | ||
-->{{!}} hidden <!-- | -->{{!}} hidden <!-- | ||
Revision as of 19:18, 17 June 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).
Fields
URLLink textLink groupFile size(for Download links)
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.
