(Imported by PageSync) Tag: Metadata slot edit |
(Imported by PageSync) Tag: wsps-content-edit-tag |
||
(One intermediate revision by one other user not shown) | |||
Line 16: | Line 16: | ||
|Tags={{{Tags|}}} |+sep=, | |Tags={{{Tags|}}} |+sep=, | ||
}}<!-- | }}<!-- | ||
− | -->{{DISPLAYTITLE:{{{Title|}}}|noerror}}<!-- | + | |
+ | // switch to prevent setting displaytitle on property pages, as this can cause unexpected behavior when using format=tree | ||
+ | -->{{#switch:{{NAMESPACENUMBER}} |102=|#default={{DISPLAYTITLE:{{{Title|}}}|noerror}} }}<!-- | ||
// version history properties | // version history properties | ||
-->{{#af_foreach:{{#invoke:VersionHistoryItems|get}} ||$data|{{#set: | -->{{#af_foreach:{{#invoke:VersionHistoryItems|get}} ||$data|{{#set: | ||
− | |Has version history={{#if:{{#af_get:{{{$data}}}|Current version number}} |true | + | |Has version history={{#if:{{#af_get:{{{$data}}}|Current version number}} |true}} |
|Version number={{#af_get:{{{$data}}}|Current version number}} | |Version number={{#af_get:{{{$data}}}|Current version number}} | ||
|Version description={{#af_get:{{{$data}}}|Current version description}} | |Version description={{#af_get:{{{$data}}}|Current version description}} | ||
ws-base-props | |||
---|---|---|---|
Line 3: | Line 3: | ||
|Title=Template:Base properties | |Title=Template:Base properties | ||
|Version history={{Version history item | |Version history={{Version history item | ||
+ | |Version number=1.1 | ||
+ | |Version description=Don't set a value to "Has version history" when there isn't one (this unnecessarily added the property to all pages) | ||
+ | |Version date=2023-2-24 10:30:20 | ||
+ | }}{{Version history item | ||
|Version number=1.0 | |Version number=1.0 | ||
|Version description=Initial version | |Version description=Initial version | ||
ws-class-props | |||
Line 1: | Line 1: | ||
− | {{ | + | {{Csp class properties |
|Type=CSP Basis Core | |Type=CSP Basis Core | ||
|Origin=CSP Basis | |Origin=CSP Basis | ||
}} | }} |
Latest revision as of 10:36, 15 July 2025
{{Base properties |Class= (text) |Title= (text) |Is tag= (optional: true) |Tags= (optional: comma-separated pages) for example "Tag/1, Tag/2, Tag/3" |Version history= (multiple instance templates) {{Version history item |Version number=.. |Version description=.. |Version date=..}} }}