Jump to content

Form:Asset: Difference between revisions

From Costa Sano MediaWiki
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
Form for creating and editing Asset pages (v2)
Form for creating and editing Asset pages (v2.3 – Phase A, Phase-B-ready)
</noinclude>
</noinclude>


{{{info
{{{info
|page name=Asset:<Asset[Label]>
|no summary
|no summary
|no preview
|no preview
Line 14: Line 15:


{| class="formtable"
{| class="formtable"
! Status
| {{{field|Status|readonly|default=DRAFT}}}
|-


! Chapter (*)
! Chapter (*)
Line 87: Line 92:
|}
|}


{{{standard input|save}}}
<!-- Phase A trigger -->
 
{{#ifeq: {{{Status|DRAFT}}} | DRAFT |
 
{{{standard input|save|label=Save Draft}}}
}}


{{#tag:html|
<!-- Phase B trigger (visible only later, logic added in next step) -->
<script>
{{#ifeq: {{{Status|}}} | READY |
mw.loader.load(
{{{standard input|save|label=🔒 Finalize Asset (irreversible)}}}
  mw.util.getUrl(
}}
    'MediaWiki:Asset.js',
    { action: 'raw', ctype: 'text/javascript' }
  )
);
</script>
|}}


{{{end template}}}
{{{end template}}}

Latest revision as of 20:04, 22 February 2026

Form for creating and editing Asset pages (v2.3 – Phase A, Phase-B-ready)


page name=Asset:<Asset[Label]>


Asset

Status Status
Chapter (*) Chapter
Place Place
Organisation Organisation
Identifier Label
Sequence Sequence
File File
Original filename OriginalFilename
Asset type AssetType
Parent asset Parent
Description Description
Notes Notes

save


{{{end template}}}