Form:PageCreationEditing: Difference between revisions

m Attempted to fixed stray section header issue.
Tag: Reverted
m Maybe this time we'll stop seeing stray section headers. A curse upon Chat GPT.
Tag: Reverted
Line 1: Line 1:
<noinclude>{{#forminput:
<noinclude>
  | form=PageCreationEditing
  {{#forminput:
  | holds=Section
    | form=PageCreationEditing
}}</noinclude>
    | holds=Section
  }}
</noinclude>


{{{info
{{{info
Line 10: Line 12:


{{{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}}}


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