RTGame:Templates: Difference between revisions
RTGame>Alistair3149 (→Navigation: add new navplate) |
No edit summary Tag: 2017 source edit |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{TOC|limit=3}} | {{TOC|limit=3}} | ||
{{About|available templates|a list of all templates|Category:Templates}} | {{About|available templates|a list of all templates|Category:Templates}} | ||
{{Shortcut| | {{Shortcut|RT:T|RT:TMP|RT:TEMP}} | ||
'''Templates''' are used to duplicate the same content across more than one page, reducing maintenance and work needed on creating and updating pages. Changing a template in one place will immediately apply the changes to all the pages that use it. | '''Templates''' are used to duplicate the same content across more than one page, reducing maintenance and work needed on creating and updating pages. Changing a template in one place will immediately apply the changes to all the pages that use it. | ||
This page lists templates of this wiki | This page lists templates of this wiki. For more information on templates, check out [https://en.wikipedia.org/wiki/Wikipedia:Template_namespace Wikipedia's template page] or [https://meta.wikimedia.org/wiki/Help:Template Wikimedia's template page]. If you are interested in: | ||
{{Card | {{Cards|{{Card | ||
|column=3 | |column=3 | ||
| | |title=Creating a template | ||
| | |text=Create a prototype on your user page or/and propose your idea in the [[{{TALKPAGENAME}}|discussion]] page.}}{{Card | ||
| | |column=3 | ||
| | |title=Requesting a template | ||
| | |text=Propose your request in the [[{{TALKPAGENAME}}|discussion]] page.}}{{Card | ||
| | |column=3 | ||
}} | |title=Improving a template | ||
|text=Propose your suggestions in the relevant template talk page or this [[{{TALKPAGENAME}}|discussion]] page. | |||
}}}} | |||
Alternatively, you can request template permission by asking in the [[{{TALKPAGENAME}}|discussion]] page or messaging us on [ | Alternatively, you can request template permission by asking in the [[{{TALKPAGENAME}}|discussion]] page or messaging us on [{{Discord}} Discord]. | ||
A list of all | A list of all RTGame Wiki templates is available at <span class="plainlinks">[{{SERVER}}/api.php?action=query&list=allpages&apnamespace=10 All pages (Template namespace)]</span>. For a list of templates, see [[Special:Allpages/Template:|this page]]. Unused templates can be found at [[Special:Unusedtemplates]]. | ||
To insert a template into a page, type <code><nowiki>{{TemplateName}}</nowiki></code> (this is known as a ''tag'') somewhere on the page, whether it be at the top or at the bottom or in a certain section. Every page with that tag in it will display the template text. TemplateName is the name after the colon symbol, e.g. the TemplateName for [[Template:In use]] is In use, so typing <code><nowiki>{{In use}}</nowiki></code> will add that tag to a page. | To insert a template into a page, type <code><nowiki>{{TemplateName}}</nowiki></code> (this is known as a ''tag'') somewhere on the page, whether it be at the top or at the bottom or in a certain section. Every page with that tag in it will display the template text. TemplateName is the name after the colon symbol, e.g. the TemplateName for [[Template:In use]] is In use, so typing <code><nowiki>{{In use}}</nowiki></code> will add that tag to a page. | ||
Line 31: | Line 33: | ||
!Use | !Use | ||
!Where to put it | !Where to put it | ||
|- | |- | ||
|{{tl|Fact}} | |{{tl|Fact}} | ||
Line 50: | Line 44: | ||
=== Related articles === | === Related articles === | ||
Use these templates to link relevant articles of the page or section. They must be at the very top of the page or section. Nothing should be above them (except [[ | Use these templates to link relevant articles of the page or section. They must be at the very top of the page or section. Nothing should be above them (except [[RTGame:Short description|short description]]). | ||
==== More pages on the same topic ==== | ==== More pages on the same topic ==== | ||
Line 169: | Line 163: | ||
!Template | !Template | ||
!Use | !Use | ||
|- | |- | ||
|{{tl|SDA}} | |{{tl|SDA}} | ||
|Display the date of an entity started | |Display the date of an entity started | ||
|- | |- | ||
|{{tl|SIZECNV}} | |{{tl|SIZECNV}} | ||
|Convert size shorthand to the full word | |Convert size shorthand to the full word | ||
|} | |} | ||
Line 214: | Line 181: | ||
|Generate a navplate of products from the same manufacturer | |Generate a navplate of products from the same manufacturer | ||
|After the references section in manufacturer and manufacturer product pages | |After the references section in manufacturer and manufacturer product pages | ||
|} | |} | ||
Line 320: | Line 243: | ||
|} | |} | ||
{{Credit_SC}} | |||
{{ | |||
{{Wiki navplate}} | {{Wiki navplate}} | ||
{{SHORTDESC|Template usage on the | {{SHORTDESC|Template usage on the RTGame Wiki}} | ||
[[Category:Policies]] | [[Category:Policies]] |
Latest revision as of 20:52, 7 May 2021
Templates are used to duplicate the same content across more than one page, reducing maintenance and work needed on creating and updating pages. Changing a template in one place will immediately apply the changes to all the pages that use it.
This page lists templates of this wiki. For more information on templates, check out Wikipedia's template page or Wikimedia's template page. If you are interested in:
Alternatively, you can request template permission by asking in the discussion page or messaging us on Discord.
A list of all RTGame Wiki templates is available at All pages (Template namespace). For a list of templates, see this page. Unused templates can be found at Special:Unusedtemplates.
To insert a template into a page, type {{TemplateName}}
(this is known as a tag) somewhere on the page, whether it be at the top or at the bottom or in a certain section. Every page with that tag in it will display the template text. TemplateName is the name after the colon symbol, e.g. the TemplateName for Template:In use is In use, so typing {{In use}}
will add that tag to a page.
Below are a summary of most templates on the wiki. Please refer to the relevant documentation page for more details. Note that some templates are listed by their shorthand, and depreciated and fallback templates are not included in the list below.
Article namespace
Citation
Use these templates to reference information.
Template | Use | Where to put it |
---|---|---|
{{Fact}}
|
Statements needs a reliable source cited | Inline after the statement |
{{Reflist}}
|
Show the list of reference | Under the reference header == References ==
|
Related articles
Use these templates to link relevant articles of the page or section. They must be at the very top of the page or section. Nothing should be above them (except short description).
More pages on the same topic
Template | Use | Where to put it |
---|---|---|
{{Main}}
|
Section is a summary or snippet of another article | Under section header |
{{See also}}
|
Section has a related article | Under section header |
Other uses of the same title
Template | Use | Where to put it |
---|---|---|
{{About}}
|
Noting other uses for a page or section | Top or under section header |
{{For}}
|
Noting other uses for a section or page, and not to display This page is about... | Top or under section header |
{{Redirect}}
|
Noting other pages that users intended to visit but redirected | Top |
Maintenance
Use these templates to mark page or section for maintenance. Some of these templates mark pages in lists that can be founded at the top of the recent changes page under other review tools.
Template | Use | Where to put it |
---|---|---|
{{Cleanup}}
|
Page or section needs attention for various reasons | Top or under section header |
{{Review}}
|
Page needs review in copy editing | Top |
{{Outdated}}
|
Page or section contains outdated information more than two years old | Top or under section header |
{{Stub}}
|
Page only contains basic information and there is unknown vital information to add | Bottom |
{{Delete}}
|
Requesting a page to be deleted | Top |
{{In use}}
|
Page is undergoing a major edit | Top |
Content
Use inside the article and with a new line.
Template | Use | Where to put it |
---|---|---|
{{Quote}}
|
Create a blockquote | Wherever needed |
{{Note}}
|
Post editorial notes in articles | Before the content that the note refers to |
{{Gallery}}
|
Include a gallery section in the page | The end of the article but before see also and references |
Formatting
Should be placed inline.
Layout
Template | Use |
---|---|
{{Nbsp}}
|
Intentional non-breaking spaces |
{{=}}
|
Literal "=" to avoid interpretation as syntax |
{{Nowrap}}
|
Keeps text on a single line |
{{Em}}
|
Put strong emphasis on the text |
{{Ubl}}
|
Create unbulleted lists |
{{Blist}}
|
Create bulleted lists when wikitext does not work |
Conversion
Template | Use |
---|---|
{{SDA}}
|
Display the date of an entity started |
{{SIZECNV}}
|
Convert size shorthand to the full word |
WIP. Generate navigation blocks.
Template | Use | Where to put it |
---|---|---|
{{Navplate manufacturer}}
|
Generate a navplate of products from the same manufacturer | After the references section in manufacturer and manufacturer product pages |
Infoboxes
WIP
Template | Use | Where to put it |
---|---|---|
Data tables
WIP
Template | Use | Where to put it |
---|---|---|
Template and Module namespace
WIP
Template | Use | Where to put it |
---|---|---|
File namespace
WIP
Template | Use | Where to put it |
---|---|---|
Licensing
WIP
Template | Use | Where to put it |
---|---|---|
RTGame Wiki community | ||
---|---|---|
Projects | Search Engine Optimization • | |
Policies | Application programming interface • Copyrights • Lua • Policies • Redirect • Short description • Shortcut • Style guide • Templates • | |
Editing guides | Advanced editing • Cheat sheet • Source mode basics • VisualEditor advanced • VisualEditor basics • Your first edit • |