Jump to content

Grigoripedia:Templates: Difference between revisions

From Grigoripedia
No edit summary
Line 63: Line 63:
* [[Grigoripedia:Stub]]
* [[Grigoripedia:Stub]]
* [[:Category:Maintenance templates]]
* [[:Category:Maintenance templates]]
[[Category:Grigoripedia maintenance]]

Revision as of 15:02, 18 June 2026

Templates are reusable pieces of wiki markup language used to format pages, display important notices, create navigation links, and automatically organize articles for maintenance purposes.

Templates are stored in the Template: namespace, and they can be added to pages by placing the template name inside double braces. For example:

{{Stub}}

Templates keep Grigoripedia consistent and professional by allowing the same message, layout, or formatting style to be reused on any page. They also make page creation and upkeep much easier.

Common templates

Article notices

  • {{Content warning}} — displays a notice that the content of the following article or subsection has been marked as mature or controversial.

These templates help readers move between related pages.

  • {{Main}} — links to the main article for a topic that has a section in another article.
  • {{See also}} — links to related articles.
  • {{Distinguish}} — notes that an article should not be confused with another topic.

Maintenance templates

Maintenance templates identify pages that need editing, expansion, cleanup, sourcing, or other work.

Examples may include:

Creating templates

To create a new template, make a new page in the Template: namespace. For example:

Template:Example

A template can then be used on another page with:

{{Example}}

Template notes or documentation should usually be placed inside tags so that the documentation appears only on the template page itself. If this is omitted, it will appear everywhere the template is used.

Categories that should apply to all pages using the template should usually be placed inside