Template:Saints: Difference between revisions

Jump to navigation Jump to search
no edit summary
(update some fields as list of items)
Tag: Reverted
No edit summary
Tag: Reverted
Line 192: Line 192:
| #default = [[Category:AI-Generated]]}}
| #default = [[Category:AI-Generated]]}}
</includeonly>
</includeonly>
 
<noinclude>
=== Notes ===
=== Notes ===
* The Cargo table `Saints` must be redefined to apply these changes. If the table already exists, use `Special:CreateCargoTable` with the updated `#cargo_declare` code or drop and recreate the table (ensure to back up existing data).
* The Cargo table `Saints` must be redefined to apply these changes. If the table already exists, use `Special:CreateCargoTable` with the updated `#cargo_declare` code or drop and recreate the table (ensure to back up existing data).
* The `#arraymap` parser function is used in the infobox to format list fields:
* The `#arraymap` parser function is used in the infobox to format list fields:
  - For `Profession` and `ReligiousAffiliation` (type `List (,) of Page`), each value is wrapped in `[[x]]` to create wiki links.
* For `Profession` and `ReligiousAffiliation` (type `List (,) of Page`), each value is wrapped in `[[x]]` to create wiki links.
  - For `Patronage`, `Attributes`, and `AdditionalVeneration` (type `List (,) of String`), values are displayed as plain text, separated by commas.
* For `Patronage`, `Attributes`, and `AdditionalVeneration` (type `List (,) of String`), values are displayed as plain text, separated by commas.
* If using a form (e.g., `Form:Saints`), update the form definition to use `tokens` input type for these fields to allow multiple values with autocompletion (for `Page` fields) or free text (for `String` fields).
* If using a form (e.g., `Form:Saints`), update the form definition to use `tokens` input type for these fields to allow multiple values with autocompletion (for `Page` fields) or free text (for `String` fields).
* Example usage:
 
  ```mediawiki
Example usage:
<pre>
   {{Saints
   {{Saints
   |SaintName=St. Francis of Assisi
   |SaintName=St. Francis of Assisi
Line 214: Line 215:
   |ReviewLevel=3
   |ReviewLevel=3
   }}
   }}
</pre></noinclude>

Navigation menu