For All Mankind Wiki

Hi Bob! Find your place in the universe and leave your legacy. Join Helios today as your destiny awaits.

  • This wiki contains spoilers for all published episodes.
  • This wiki is designed for dark mode.
    For best experience please consider switching mode.

READ MORE

For All Mankind Wiki
For All Mankind Wiki

This article is about preload templates, what they are, and how they can be used on the For All Mankind Wiki.

General information

Preload templates, also preloaded templates, are templates that provide content to be incuded into other pages when creating or editing them. This can be just certain parts, like the code for an infobox, certain sections, or fully predefined page layouts. Basically, preload templates are pages holding code that can be used to create new pages more easily and more efficiently by adding predefined code, elements, and structures, as well as adding such predefined parts to existing pages.
Preload templates can be used in different ways:
  1. A special page can be set up where new pages can be created from an input-box, loading a given preload template into that new page, ready to be filled with content.
  2. A special formatted link can be created, which when clicked creates a new page at a given location, with a given name, using a given preload template.
  3. A dev-script can be used to add a drowdown menu to the user's editor, where available preload templates can be chosen from, which then adds the code from that template to the page they are editing.
  4. Finally, it is also possible to just copy/paste the predefined code from a preload template into a new or existing article.
More general info about this can be found on the Fandom help page.

Preload templates on the FAM wiki

All of the four above-mentioned methods are available on the FAM wiki to some extend (however, point 3 needs the installation of the dev-script).
  1. There is a page where new articles can be created from input-forms:
    New page
    Four types of pages can be created with this method, pre-populated with the common structure and templates used for that page:
    1. New character article
    2. New actor article
    3. New crew article
    4. New episode article
All you have to do is enter the page title and click the button, and you will get a predefined page layout ready to fill.
  1. Method 2 is used for the following two things:
    • To create a personal sandbox in your user-space.
      Clicking on this link will create your personal sandbox at the location User:<username>/Sandbox.
    • To create template sandboxes and testcases from the links seen in template documentation headers.
  1. Beside the preload templates for the four article types described in point 1, and the ones in point 2, some preload templates exist that are used for template documentations only. Also, there are preload templates that can be used to add a comment header to any CSS file, which is also used to categorize that file and is mandatory for TemplateStyles CSS files, but recommended for personal CSS files as well.
    To access these pages as preload templates, the dev-script PreloadTemplates needs to be installed and configured in your personal javascript file.
    More about this in the section about that script below.
  1. Alternatively, the preload templates mentioned in point 3 can also just be copy/pasted.
    The documentation templates can be found on the subpages of the template PreloadDocs.
    The CSS file templates can be found here.
Note
All preload templates are collected in the category Preload templates and its subcategories.

Dev script

The dropdown menu of the dev script

The dropdown menu of the dev script

The script PreloadTemplates from the Fandom Developers Wiki can be used to add all (or some) of the preload templates mentioned above to a drowdown menu available in the wiki editor. They can then be added while editing any page by choosing the given template from the list.
The list has to be defined by the user and can therefore be arranged as desired, including which templates to include, in what order, and with what name.
The script is not installed site-wide but has to be installed individually, either into your local JS file on this wiki, or your global JS file on Community Central. Instructions for how to do so can be found on the script's page.
After installing, the script needs some local configuration:
  1. Configuration of the script
To work properly for the FAM wiki preload templates, the following configuration has to be added to your local JS file before the script import code:
preloadTemplates_list = "User:<username>/CustomPreloadTemplatesList";
preloadTemplates_subpage = "case-by-case";
preloadTemplates_namespace = "";
preloadTemplates_list sets the path to your personal list of preload templates to be displayed in the dropdown menu.
  • Replace <username> with your username.
  • CustomPreloadTemplatesList can be changed to whatever you wish the page with your list be named.
  • The other two lines need to be unchanged to make it work on this wiki.
  1. Set up your personal list of preload templates
The syntax for that ist is basically a wikitext bullet list using *
  • Every line starting with * is considered to be a link. The link must include the namespace.
  • After the link, a custom name can be added after a pipe |.
  • A line not starting with * will be displayed in the dropdown menu as not clickable section-title.
  • All available preload templates can be found in the category Preload templates and its subcategories.
  • An example list configuration can be seen here: Oot42/CustomPreloadTemplatesList

See also