Template:CatalogueAttribute: Difference between revisions
From The Seven Sages of Rome
Created page with "<noinclude> == Usage == Replacement for TableAttribute for the Catalogue field. Handles internal catalogue links (semicolon-separated) and external catalogue links stored as subobjects. <nowiki> {{CatalogueAttribute |internal_value=semicolon separated internal catalogue values |page=the full page name to query subobjects from }} </nowiki> </noinclude> <includeonly> | '''Catalogue''' | {{#arraymap:{{{internal_value|}}}|;|x|{{#set:Has Catalogue=x}}{{#formredlink:target=x..." |
No edit summary |
||
| Line 13: | Line 13: | ||
<includeonly> | <includeonly> | ||
| '''Catalogue''' | | '''Catalogue''' | ||
| {{#arraymap:{{{internal_value|}}}|;|x|{{#set:Has Catalogue=x}}{{#formredlink:target=x|form=Modern Research Literature}}|, }}{{#ask:[[-Has subobject::{{{page|}}}]] | | {{#if:{{{internal_value|}}}|{{#arraymap:{{{internal_value|}}}|;|x|{{#set:Has Catalogue=x}}{{#formredlink:target=x|form=Modern Research Literature}}|, }}}}{{#ask:[[-Has subobject::{{{page|}}}]] | ||
|?Has External Catalogue Title=title | |?Has External Catalogue Title=title | ||
|?Has External Catalogue Link=link | |?Has External Catalogue Link=link | ||
Revision as of 12:56, 25 February 2026
Usage
Replacement for TableAttribute for the Catalogue field. Handles internal catalogue links (semicolon-separated) and external catalogue links stored as subobjects.
{{CatalogueAttribute |internal_value=semicolon separated internal catalogue values |page=the full page name to query subobjects from }}