finiki:Global templates effort/Needed templates
This essay contains the advice or opinions of one or more wiki contributors. Essays may represent widespread norms or minority viewpoints. Consider these views with discretion. Essays are not policies or guidelines. |
Needed templates is an outdated part of MediaWiki's Template repository project. It has been copied here as it provides a somewhat useful dependency diagram for some key (core) underlying templates (and modules). It is based on MediaWiki's implementation, which does differ from Wikipedia's versions of some (most?) of the templates/modules, so care must be taken to not use it too literally.
Wikipedia vs MediaWiki for importing
There are primarily two reasons we import templates/modules from Wikipedia, NOT MediaWiki.
- First and foremost, wiki readers are used to the 'look and feel' of Wikipedia, generally only editors and admins read on MediaWiki. Many templates on MediaWiki look very different than Wikipedia's. You can see the difference if you compare Wikipedia's Template:Documentation with MediaWiki's Template:Documentation.
- The other reason is how languages and translation is handled. Since we are an English language wiki, all Wikipedia references are to the English version of Wikipedia, i.e. https://en.wikipedia.org/wiki/Main_Page so the coding for the most part does not have any language or translation dependencies. This particularly applies to the {{Documentation subpage}}.
Needed templates
Corresponding Existing MW Templates
This Wikipedia page needs to be updated. Please help update this Wikipedia page to reflect recent events or newly available information. |
This is a list of existing MW templates that would probably be included along with their required dependencies.
Type | Template | Description | Dependencies | Images |
---|---|---|---|---|
Mbox | ||||
{{ambox}}
|
Article message box. | |||
{{cmbox}}
|
Category message box. | |||
{{imbox}}
|
Image message box. | |||
{{ombox}}
|
Other pages message box. | |||
{{tmbox}}
|
Talk page message box. | |||
{{Mbox templates}}
|
||||
{{asbox}}
|
Article stub box (Unused Template). | |||
{{dmbox}}
|
Disambiguation footer message box. |
| ||
{{fmbox}}
|
Footer & Header message box | |||
Wikipedia:Template:Navboxes | {{Navbox_suite}}
|
|||
{{Navbar}}
|
Adds navbar navigational functionality. | |||
{{Navbox_subgroup}}
|
Allows the creation of subgroups that can be assigned to a list item within {{Navbox}} . A subgroup may contain up to 20 list items.
|
|||
{{Navbox_with_collapsible_groups}}
|
Produces a navigation template that has groups of relevant articles on a certain topic. All groups are hidden by default. However, with a parameter call, an individual group can be shown that has the other articles in the same group. | |||
{{Navbox_with_columns}}
|
Presents its content in columns. | |||
Template:Documentation |
Dependencies
There needs to a difference between whether the dependency is required for the template itself or rather the template documentation. If it is for the template documentation, is it necessary?
Template name | Description |
---|---|
Template:! | |
Template:Badge | |
Template:Border-radius | This template is a shortcut for producing rounded corners. It generates the CSS for various browsers. Supported browsers are the current versions of Opera, Firefox, Safari, Chrome and Internet Explorer 9. |
Template:Category handler | This is the {{category handler}} meta-template.
It helps other templates to automate both categorization and category suppression. |
Template:Category handler/blacklist | |
Template:Category handler/numbered | |
Template:Clear | |
Template:High-risk | "This template is used on a very large number of pages." |
Template:If pagename | Helps other templates detect what page they are on. It uses pattern matching on the pagename. |
Template:Mbox templates | |
Template:Namespace detect | Helps other templates detect what type of page they are on. |
Template:Nowrap | |
Template:Shortcut | |
Template:Shortcut/layout | |
Template:Tl | Redirects to Template:Tlx |
Template:Tlx | This template creates example usage syntax for a template, and links the name to the template page. The "SISTER" parameter specifies an interwiki prefix to link to another wiki. |
Template:Yesno | Normalises an input to be a yes/no output. |
Template:File_other | |
Template:File_title | |
Template:TOC | |
Template:Template other | |
Template:Information |
- Warning
- One variable.
- Ambox
- AKA cleanup/article message box. Could be same as warning?
- No variables
- Tip
- One variable
- User welcome
- For user talk pages
- No variables (put names external to template)?
- Edit request
- For protected pages - put on talk page
- No variables - acts as a "tag" and people put their request below.
- Inline
- aka "citation needed"
- no variables.
- Licenses
- no variables.
- Ratings
- Like WikiProject talk page templates
- a small number of variables.
- Userboxes
- No variables.
- Pedagogical templates
- to develop Open Educational Resources (OERs)
- Documentation
- no variables; include { {SUBJECTPAGENAME} }/doc, and allow editing it
Template dependencies
These are templates and images that exist solely as variable dependencies for the above Templates. Without these, the above templates would not work.
Variables
TBD