Form:PageCreationEditing: Difference between revisions

From Accessibility Wiki
Jump to navigationJump to search
m Maybe this time we'll stop seeing stray section headers. A curse upon Chat GPT.
Tag: Reverted
Undo revision 89 by Garrett (talk)
Tag: Undo
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>{{#forminput:form=PageCreationEditing}}</noinclude>
  {{#forminput:
    | form=PageCreationEditing
    | holds=Section
  }}
</noinclude>
 
{{{info
{{{info
   | create title = Create a page
   | create title = Create a page
Line 12: Line 6:


{{{for template
{{{for template
  | PageCreationEditing
  | PageCreationEditing
  | label = Page
  | label = Page
}}}
<!-- Title box -->
{{{field
  | DISPLAYTITLE
  | input type = text
  | label      = Page title
  | mandatory
}}}
<!-- Description box -->
{{{field
  | Description
  | input type = text
  | label      = Description
  | mandatory
}}}
<!-- Optional Wikipedia link -->
{{{field
  | WikiURL
  | input type = text
  | label      = Wikipedia URL
  | placeholder= https://en.wikipedia.org/wiki/…
}}}
}}}
  {{{field
    | DISPLAYTITLE
    | input type = text
    | label      = Page title
    | mandatory
  }}}
  {{{field
    | Description
    | input type = text
    | label      = Description
    | mandatory
  }}}
  {{{field
    | WikiURL
    | input type = text
    | label      = Wikipedia URL
    | placeholder= https://en.wikipedia.org/wiki/…
  }}}
  <!-- This tells PF “this is where the Section templates go” -->
  {{{field
    | Section
    | holds template
  }}}
{{{end template}}}
{{{end template}}}


<!-- Now define your repeatable Section block, embedding it into the Section field -->
<!-- Repeatable sections -->
{{{for template
{{{for template
   | Section
   | Section
Line 46: Line 38:
   | multiple
   | multiple
   | add button text = Add section
   | add button text = Add section
  | embed in field  = PageCreationEditing[Section]
}}}
}}}
=== {{{field
=== {{{field

Latest revision as of 00:55, 28 July 2025

create title = Create a page
 
PageCreationEditing
 
DISPLAYTITLE
 
Description
 
WikiURL
 

{{{end template}}}

Section
 

=== Heading

      ===
Body
    

{{{end template}}}

summary minor edit watch save