No categories assigned

PortalFlex

< Templates download
Revision as of 17:04, 18 June 2021 by Mlink-rodrigue (talk | contribs) (Created page with "<div class="downloadarea"> <span class="getButton">Download</span> 450x450px </div>The template ''Portal flex'...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The template Portal flex allows you to create pages based on a 2 or 3 column layout. In addition, each page can contain an intro section.

Individual pages that were created using this Portal flex template can be combined into one portal page using transclusion. (as shown in the example image on this page).

The layout is responsive and shown optimized for different devices.

Importing the template

The import file is included in the archive fileHW-PortalFlex.zip. Unpack the zip file first.

On the page Special:Import follow these steps:

  1. Select file and choose HW-PortalFlex-de.xml.
  2. Enter an Interwiki prefix. Since this field is required, simply add hw (for hallowelt).
  3. Keep the selection Import to default locations.
  4. Click Sie Upload file... .

The form-based template is now available in your wiki.

Creating portal pages

To create a portal page, open the page Form:Portal flex.

Note: You an add the form field {{#forminput:form=Portal flex}}on any wiki page and create new portal pages from there.


  1. Enter a new page name in the form field and click Create or edit. The form for the new portal page will open.
  2. Select the desired layout settings. Each setting needs to be selected.
  3. Create the first box by clicking New box and add your content. You can move the boxes up or down in order once you have multiple boxes. verweis=https://de.wiki.bluespice.com/wiki/Datei:HW-PortalFlex-boxverschieben.png|alternativtext=Box verschieben oder löschen|zentriert|mini|650x650px|Boxen verschieben (1), löschen (2) oder neue Box über der aktuellen Box einfügen (3)
  4. Choose, if necessary, the number of placeholders (1). If, for example, you have chosen a 2-column layout, but you have 3 boxes on the page, then the 3rd box, by default, is shown in full page width. If you select 1 empty placeholder box, then the 3rd box will use only 1/2 of the page width. alt=Platzhalter-Boxen für ungenützte Spalten (1), Vorschau-Schaltfläche (2)|zentriert|mini|650x650px|Platzhalter-Boxen für ungenützte Spalten
  5. Click Show preview (2). Here you can check your previous settings. Then scroll to the bottom of the page to get back to the form.
  6. Click Save page when you have finished your edits.

Combining portal pages

Each page created with Portal flex can only have one layout (e.g., 2 columns, green, without headings). If you want to combine several layouts, simply create an empty page and transclude the portal pages into this page.

The main page created in this way can also conveniently contain other elements (additional templates or page sections).

Important! If a portal page is a combination of multiple transcluded pages that were created using Portal flex, you cannot use the menu link Edit with form although it is available on the page. You can only edit the page in regular edit mode to add additional content if needed.. The transcluded Portal flex" have to be edited directly, as is true with every transcluded page in a wiki.

Pages included in the import

The xml import creates the following files in your wiki:

  • Template:Portal flex/Start
  • Template:Portal flex/Box
  • Template:Portal flex/End
  • Template:Portal flex/styles.css
  • Form:Portal flex

Attachments

Discussions