Jump to content

Template:DiscussionConcernImporter

From SpongeBob Wiki
Create New ConcernRefresh This DiscussionMonitor This Discussion


Documentation (for the above template or database, sometimes hidden or invisible)

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.