BattleTechWiki:Project Templates

Project Templates
Project Information
Type Maintenance
Hexcode #B2BEB5
Senior Editor(s) Deadfire
Area(s) Templates & Automation
Discord Sarna Discord Community
Project Resources
Related Projects BattleTechWiki:Project Cleanup

Description[edit]

This WikiProject was formed to better manage the BattleTechWiki's myriad templates. This page contains their many useful suggestions, and it is hoped that this project will help to focus the efforts of other editors. If you would like to help, please inquire on the project's talk page and see the to-do list.

Goals[edit]

The main goal of this WikiProject is:

To help manage the template namespace of the BattleTechWiki.

Scope[edit]

  1. Conducting efforts to better organize, document and display all templates in the template namespace, including: navigation templates, infobox templates, inline templates, image copyright tags and much more.
  2. Solving specific templates issues, such as standardisation of content and categorization.
  3. Improving the general documentation on how to create and use templates, in addition to improving the documentation pages of the individual templates.
  4. Clean-up of the unused, unneeded and/or redundant templates.
  5. Providing help and guidance in creating, updating, correcting and testing templates.
  6. Improving template accessibility


Participants[edit]

Please feel free to add yourself here, and to indicate any areas of particular interest.

Open tasks[edit]

Requests[edit]

Requested Template imports[edit]

Requested Template changes[edit]

  • {{Large category TOC}} As per request from User:Dmon, increase the threshold of where this kicks in to something like 3000 as the simple starting letter is sufficient most of the time at 1200.

Featured Content[edit]

Internal-linking templates for the "See also" sections or at the bottom of template documentation[edit]

Most of the example boxes you see here are in Category:Documentation see also templates

Help templates[edit]

Images[edit]

[[File: | thumb | upright | right | alt= | caption ]]

Cite web[edit]

<ref>{{cite web
 |url= 
 |title= 
 |author= 
 |date= 
 |website= 
 |publisher= 
 |access-date= 
}}</ref>

Cite book (short)[edit]

<ref>{{cite book
 |last= 
 |first= 
 |author-link= 
 |title= 
 |publisher= 
 |series= 
 |year=  
 |doi= 
 |isbn= 
}}</ref>

Cite book (extended)[edit]

<ref>{{cite book
 |last1       = 
 |first1      = 
 |last2       = 
 |first2      = 
 |author-link = 
 |coauthors   = 
 |editor      = 
 |title       = 
 |trans-title = 
 |url         = 
 |access-date = 
 |edition     = 
 |series      = 
 |volume      = 
 |date        = 
 |year        = 
 |publisher   = 
 |location    = 
 |isbn        = 
 |doi         = 
 |page        = 
 |pages       = 
 |chapter     = 
}}</ref>

Metric conversions[edit]

Single input:
{{convert|original_value|original_unit|conversion_unit|abbr=on}}
Range of values:
{{convert|orig_val1|range|orig_val2|original_unit|conversion_unit|abbr=on}}
Examples:
{{convert|60|and|170|kg|lb|abbr=on}}
{{convert|18|°C|°F}}
{{convert|3.21|kg|lb}}

Variables[edit]

Code Effect
{{CURRENTWEEK}} 17
{{CURRENTDOW}} 2
{{CURRENTMONTH}} 04
{{CURRENTMONTHNAME}} April
{{CURRENTMONTHNAMEGEN}} April
{{CURRENTDAY}} 23
{{CURRENTDAYNAME}} Tuesday
{{CURRENTYEAR}} 2024
{{CURRENTTIME}} 00:12
{{NUMBEROFARTICLES}} 54,769
{{NUMBEROFPAGES}} 133,760
{{NUMBEROFUSERS}} 13,793
{{PAGENAME}} Project Templates
{{NAMESPACE}} BattleTechWiki
{{REVISIONID}} 1045658
{{REVISIONUSER}} Deadfire
{{localurl:pagename}} /wiki/Pagename
{{localurl:Wikipedia:Sandbox|action=edit}} /wiki/index.php?title=Wikipedia:Sandbox&action=edit
{{fullurl:pagename}} https://www.sarna.net/wiki/Pagename
{{fullurl:pagename|query_string}} https://www.sarna.net/wiki/index.php?title=Pagename&query_string
{{SERVER}} https://www.sarna.net
{{ns:index}} e.g. '{{ns:1}}' fullname of namespace e.g 'Talk'
{{SITENAME}} BattleTechWiki

Recalling named reference[edit]

<ref name="NAMEOFREF" />

Quotes[edit]

{{blockquote |text= |sign= }}

Blockquotes[edit]

<blockquote>
<p>QUOTED PARAGRAPH</p>
<p>NAME, SOURCE, REFERENCE</p>
</blockquote>

About[edit]

(This page is about USE1. For other uses, see About (disambiguation).)
{{About|USE1}}
(This page is about USE1. For other uses, see PAGE2.)
{{About|USE1||PAGE2}}
(This page is about USE1. For USE2, see PAGE2.)
{{About|USE1|USE2|PAGE2}}
(This page is about USE1. For USE2, see PAGE2. For USE3, see PAGE3. For USE4, see PAGE4. For USE5, see PAGE5.)
{{About|USE1|USE2|PAGE2|USE3|PAGE3|USE4|PAGE4|USE5|PAGE5}}

Tables (borderless)[edit]

{|
|-
! scope="col" |COLUMN1
! scope="col" |COLUMN2
|-
|ROW1
|ROW1/COL2
|-
|ROW2
|ROW2/COL2
|}

Tables (wikitable)[edit]

{| class="wikitable"
|-
! scope="col" |COLUMN1
! scope="col" |COLUMN2
|-
|ROW1
|ROW1/COL2
|-
|ROW2
|ROW2/COL2
|}

Collapsible tables (Default: collapsed)[edit]

{| class="wikitable mw-collapsible mw-collapsed" style="text-align: left;margin:0px;"
|- 
! style="width:20em;" |COLUMN1
! style="width:20em;" |COLUMN2
|- 
|ROW1
|ROW1/COL2
|-
|ROW2
|ROW2/COL2
|-
|}

Columns[edit]

{{col-begin|width=100%}}
{{col-break|width=}} 
{{col-end}}

Interwiki links[edit]

Wiki Shortcut
Wikimedia Commons [[commons:]]
Wikipedia [[w:]]
Wiktionary [[wikt:]]
Wikibooks [[b:]]
Wikisource [[s:]]
Wikispecies [[species:]]
Metawiki [[m:]]
MediaWiki [[mw:]]

Special Pages[edit]

Templates[edit]

Others to check[edit]

Extensions[edit]

  • Work with the following Mediawiki extensions:
    • Extension:TemplateStyles (an extension that allows to specify that a stylesheet should be loaded from a wiki page, allowing the template to have custom styles without having to modify the site's main CSS file).
    • Extension:TemplateData (an extension that provides the information about templates).
    • Extension:TemplateWizard (an extension that adds a popup dialog box for adding template code to wikitext).
    • Extension:WikiEditor (an extension that provides the editing toolbar).
    • Extension: Page Forms (an extension allows you to have forms for creating and editing pages on your wiki, as well as for querying data, all without any programming).

Related WikiProjects[edit]

Related

Child projects[edit]