Jump to content

Template:DiscussionConcernImporter/doc

From SpongeBob Wiki
Revision as of 21:04, 18 January 2021 by imported>AMK152Bot (Editing: category sorting)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

Used for importing and helping with creation of "ESB:Discussion/<title>/Concern<num>" subpages. To include all current and future concerns in a discussion page, you just put this code at "Concerns" section of a discussion page: {{DiscussionConcernImporter}}.

Concept

Read the source code of this template like this:

if Concern1:
     import Concern1
     if Concern2:
          import Concern2
          if Concern3:
               import Concern3
          else:
               create Concern3
     else:
          create Concern2
else:
     create Concern1

Editing

If you want to edit the template, note that there are three different group of codes, "first", "middle" and "last", and that you need to create "Template:CreateNewConcernButton/Concern<num>" preload subpage for N pages that you import in the template.