For All Mankind Wiki
Documentations
Documentations
There are many templates in use on the For All Mankind Wiki.
This page introduces the most important and commonly used templates on this wiki.
Introduction
What are templates?
- Templates are pages that contain or create wikitext to be included on other pages. This can be as simple as returning "Hello World", but also very complex using parser functions, the Lua programming language, and/or other techniques to create output depending on parameters passed to the template.
- Template also provide a way to repeatedly insert the same content in different (or the same) pages, saving the hassle of duplicating the same text again and again.
- Templates also help ensure consistency by creating a layout that is then used on all pages, or within other templates.
- Templates are generally shown with the format required to use the template (e.g.
{{stub}}). - Clicking the template name takes you to the template's page, where you find its documentation, usage examples, or can look at its source code.
- Detailed instructions on the usage of each template can always be found on that template's documentation.
- For more basics about templates, see the help page on Community Central.
Where are templates?
- Templates normally reside in the "Template" namespace. Templates stored in that namespace can be called with
{{template-name}}, and are registered in the system so they will show up in auto-complete in the source editor.
- However, technically, templates can be created in any namespace. For example, many pages in the project namespace (which is where this article resides in) use templates stored on a subpage of the page. These are templates that are used only on that specific page, or a group of pages. They are stored outside the template namespace so that they are not suggested when adding templates to articles.
- Another example would be user templates used on a user's profile or its subpages only, which should be created on a subpage of the user for the same reason as explained above.
- Templates created anywhere else than in the template namespace have to be called with the full path, including the namespace.
- Examples:
{{Project:Licensing/ibox}}{{User:Oot42/t/checkmark}}{{:Timeline/top}}(for the main namespace)
- Category: Templates should contain all regular[1] templates in this wiki, organized in subcategories.
- The template namespace (found through Special:AllPages → Namespace:Template) always has all regular[1] templates in the wiki, sorted alphanumerically.
- Templates stored in the project namespace can be found in Category: Project templates.
- Templates in other namespaces are not tracked.
Infobox templates
- See also: Category:Infobox templates
Persons
Locations
- {{Location}} - generic location infobox
- {{Station}} - a more fleshed out version usable for all kind of stations, bases, etc.
- {{Space station}} - specifically for space stations
- {{Country}} - self-explanatory
- {{Celestial body}} - self-explanatory
Events
- All event infoboxes can link to each other (previous/next).
- See the template's documentation for differences to determine which one suits best.
- {{Event}}
- {{Competition}}
- {{Battle}}
Other infoboxes
- {{Spacecraft}} - for all kind of spacecraft
- {{Apollo}} - specifically for Apollo missions
- {{Mission}} - suitable for all other missions
- {{Organization}} - suitable for all kind of organizations, and also companies
- {{Presidential election}} - self-explanatory
Generic
- In case none of the above infoboxes fit, there is a generic infobox where all titles & labels can be defined through parameters:
- {{Generic infobox}}
- See also
- {{Adaptable box}}
- {{Image box}}
Link templates
- Link templates simplify the way to link to spacific pages, pages in other namespaces, or to other websites, and provide a consistent layout.
- They can be divided into
- Internal link templates - links within the wiki
- External link templates - links to external sites
- External link templates can be further divided into
- Inline link templates - link templates to be used within text
↳ External inline link templates add a tag behind the link to indicate they lead to an external page - Link template with an info icon in front - for use in lists like "See also" or "External link" sections
- Inline link templates - link templates to be used within text
Inline link templates
| Internal link templates: | |
|---|---|
| {{al}} | Internal anchor links |
| {{pl}} | Project namespace links |
| {{catl}} | Category links |
| {{fl}} | Filepage links |
| {{tpl}} | Template namespace links |
| {{ml}} | Module namespace links |
| {{mapl}} | Interactive map links |
| {{usl}} | Userpage links |
| {{spl}} | Special-page links |
| {{wlh}} | What-links-here links |
| {{sitecss}} | MediaWiki CSS-page links |
| External link templates: | Tag | |
|---|---|---|
| {{el}} | General external links (inline) | |
| {{wpl}} | Wikipedia links (inline) | W |
| {{mwl}} | MediaWiki links | MW |
| {{wmcl}} | WikiMedia Commons links | WMC |
| {{fhl}} | Fandom CC help links | FH |
| {{devl}} | Fandom developers wiki links | dev |
| {{fwl}} | Fandom wiki links | F / CC |
| {{imdbl}} | IMDB links | |
| {{ytl}} | YouTube-channel links | YT |
| {{mdnl}} | mdn web docs links | mdn |
| {{w3sl}} | w3schools.com links | w3s |
Series link templates
- See also: Category:Series link templates
- Inline templates to link to episodes, seasons, or series. For more see link above.
Link templates for lists
- These are external link templates to be used in lists, like "External links", "Trivia", or "See also" sections, which add a small icon before the link.
- General:
- {{External link}}
- Usable for all kind of external links
- Can use any icon present on the wiki. Some of them are predefined as icon templates
- Has an archive function implemented
- Specific sites:
- {{wplink}} - to link to Wikipedia articles
- {{Twitter link}} - to link to tweets, twitter accounts, or hashtags
- {{Instagram link}} - to link to Instagram profiles, posts, reels or hashtags
- {{Youtube link}} - to link to youtube videos or channels
- {{Spotify link}} - to create different types of links to Spotify
- {{Apple music link}} - to create different types of links to Apple music
Archive links
- External sources on the internet tend to disappear or be moved at some point, breaking links to them.
- Links to external sources should therefore be archived using a web archive service like archive.org.
- See also the referencing help page.
- The template used to link to archived versions of a source is {{arch}}.
- ⇨ Note that some of the external link templates above have this function implemented through a parameter.
See also
- Category: Link templates
- Category: Internal link templates
- Category: External link templates
- Category: Series link templates
Article design templates
- See also: Category:Article design templates
- This are templates used to design articles.
- This includes things like quotes, galleries, tab layouts, or box models, but also text styling tools or icon templates that can be used in other templates.
- Main subcategories:
- Some commonly used design templates are:
- {{s}} - to display small text in parentheses
- {{wpl}} - for Wikipedia links
- {{ArticleImg}} - to add images in article's "History" section
- {{Quotation}} - to add a quote to a page (formerly named "Quote")
↳ for inline quotes → {{q}} - {{-}} / {{clear}} - to clear floating elements
- {{Nation}} - for flag icons
- {{Anchor}} / {{Anchor invisible}} - to set linkable anchors
- Some other design templates:
- {{no-vid-title}}
- {{Text style}}
- {{Text color}}
- {{Text size}}
- {{Smallcaps}}
- {{Tabular-num}}
Hatnote templates
- See also: Category:Hatnote templates
- Hatnote templates are used to display additional information or to add links to other articles on top of a page or a section. The "See also" right above this text is a hatnote. Hatnotes are also used for disambiguation purposes.
- Some hatnote templates:
- {{About}} - This page is about <use-1>. For other uses, see ...
- {{For}} - For other uses, see ... or For similar terms, see ...
- {{Main}} - Main article: Main Page
- {{Distinguish}} - Not to be confused with ...
- {{RedirNotice}} - "Abc" redirects here. For other uses, see ...
- {{See also}}
Article management templates
- See also: Category:Article management templates
- This includes tools used for referencing and disambiguation.
- Often used templates are:
- {{Stub}} - used to indicate a page needs more content
- {{Section stub}} - same, but for sections only
- {{TVref}} - used to refer to episodes or seasons
- {{TVref-s}} - used to refer to episodes including a screenshot
- {{BVref}} - used to refer to bonus videos
- {{References}} - used to add a reference-list to the page
Page status indicators
- Main page: Project:Page status indicators
- Read the help page above and the main documentation for how to add the indicator icons to pages.
- Templates to use are:
Maintenance templates
- See also: Category:Maintenance templates
- Here you can find tools for maintenance, like marking something as outdated, request deletion, or ask for citation.
- Examples:
- {{Cite}} - to mark missing citation
- {{Underlinked}} - to mark aricles in need of links
- {{Outdated}} - to mark articles with outdated content
- {{Delete}} - mark an article or image as candidate for deletion
Data templates
- See also: Category:Data templates
- These templates are used to add, calculate, or manipulate all kind of data.
- Many of them are used within other templates, but some can also be used directly.
- Some examples are:
- {{SeasonEp}} - Produces season/episode text output in various formats.
- {{EpLink}} - Returns links to any episode name.
- {{Credits}} - used for credits on Actor/Crew pages.
Utility templates
- See also: Category:Utility templates
- Utility templates are mostly used within other templates, for example to substitute certain characters to be able to use them inside parser functions.
User templates
- See also: Category:Userpage templates and Category:Userbox templates
- These are templates to be used on user's profile pages or on user subpages. Use these to individualize your profile, share infos about you and your interests, or just for fun.
- We provide a {{user infobox}} and various userboxes, some of which are show, space, or sci-fi related. You can also create your own userboxes and store them in the template {{userbox custom}}.
- You may also want your own personal {{sandbox}} in your user space.
- Other individual user templates beside those mentioned above should be created in your user space. Please don't create any other userpage templates in the template namespace without asking an admin first.
Template maintenance
- See also: For All Mankind Wiki:Periodic tasks
- Some templates may need some maintenance, a few on a regular basis, others when a certain amount of seasons is reached.
Regular updates needed
The following templates need regular updates:
- {{EpTitles}}
- This template stores all episode titles. It is used by many other templates.
- It uses two subtemplates to store the data for each series, For All Mankind & Star City.
- They must be updated whenever new episode titles become known.
- {{EpData}}
- This template stores all other episode data for both series on several subtemplates. It is used by several templates on the episode and season articles.
- Its subtemplates have to be updated whenever new episode infos become available.
- {{BVtitles}}
- This template stores all bonus video titles.
- It has to be updated whenever a new bonus video series is released.
- {{Sinfo}}
- This template stores the number of currently available seasons, the number of confirmed seasons, the total number of episodes, the current year, and the last aired episode in the series. It is used by many other templates.
- It uses two subtemplates to store the data for each series, For All Mankind & Star City.
- They must be updated when a new seasons start, when any new episode is released, when the year in the series is changing, and when a new future season is confirmed.
- {{IsMainChar}}
- This template stores a list of all current and former main characters. It's used to determine if an image gallery of that character exists. It has to be updated (and a new main char category created) if new main characters are introduced in the show.
- {{MainCast}}
- This template stores a list of all current and former lead actors. It's used to determine if someone is or was part of the main cast, and in which seasons. It has to be updated if new leading actors join the cast or current ones change status, as well as with every new season.
Country-flag templates
- {{Nation/country-data}}
- This is a database kind of subtemplate used by {{Nation}}, {{Nation flag}}, and other templates using country/nation/flag-data. It stores the data about countries and their flags and links.
- If new country articles are created (currently: USA, USSR, NK, UK), this file needs to be updated.
- This file has also to be updated whenever new flags are added, so they are supported by those templates.
- Read the template's section about how to update countries for instructions.
Page status indicators
- The documentation of the {{psi}} template has its own maintenance section describing how and when to update which pages.
Other templates
- The following templates are prepared for a certain number of seasons and need to be updated or rewritten if more seasons should become a thing:
- These are essential as they are used by many other templates:
- {{Season switch}} - prepared for 7 seasons
For All Mankindand 3 seasonsStar City - {{EpSwitch}} - prepared for 9 seasons :)
- {{Season switch}} - prepared for 7 seasons
- {{Character}} (infobox) - auto-categorization prepared for 7 seasons
- {{ActorCrew}} (infobox) - auto-categorization prepared for 7 seasons
- {{Episode preamble}} - prepared for 7 seasons
- {{Catbox}} - prepared for 7 seasons
- {{Linklist}} - prepared for 7 seasons
- {{SeasonCats linklist}} - (using {{Linklist}})
- {{psi}} - prepared for 7 seasons
- {{DPL character gallery/titlematch}} - prepared for 7 seasons
- {{Patches catlist}} - prepared for 7 seasons
- {{Section stub}} - multi-cat option prepared for 7 seasons
- Finally
- Lots of data templates (and even more relying on them) that deal with episode or season infos assume 10 episodes per season for calculating things. If at some point this will change, some stuff will get broken.
- If we should ever reach a two-digit number of seasons (one can dream…), lots of stuff will get broken.
Help
- If you need help with an existing template or wish a new template, don't hesitate to ask an admin or moderator.
- Links to helpful pages about template coding: