Jump to content

Grigoripedia:Templates: Difference between revisions

From Grigoripedia
No edit summary
No edit summary
 
(40 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''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.
[[:Category:Templates|'''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 <code>Template:</code> namespace, and they can be added to pages by placing the template name inside double braces. For example:
Templates are stored in the <code>Template:</code> namespace, and they can be added to pages by placing the template name inside double braces. For example:
Line 9: Line 9:
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.
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 ==
== Box templates ==


=== Article notices ===
=== [[:Category:Notice templates|Notice templates]] ===
* {{tl|Content warning}} — displays a notice that the content of the following article or subsection has been marked as mature or controversial.
Notice templates display important notices on an article. They should usually not be removed.


=== Navigation templates ===
Article notices may be content warnings or other notices.
These templates help readers move between related pages.
 
[[:Category:Content warning templates|Content warning templates]] include:
* {{tl|Mature content}} — a warning that an article or section contains mature content with significant sexual themes.
* {{tl|Sensitive content}} — a warning that an article or section contains content that is sensitive or potentially disturbing to some people.
* {{tl|Other content warning}} — a customizable content warning about an article or section.
 
General notice templates include:
* {{tl|External scholarship}} — a notice that an article or section is primarily about a topic external to [[Satano-Grigorism]].
* {{tl|Specialized terminology}} — a notice that an article heavily contains specialized Satano-Grigorist terminology.
 
=== [[:Category:Navigation templates|Navigation templates]] ===
Navigation (nav) templates help readers move between related pages.


* {{tl|Main}} — links to the main article for a topic that has a section in another article.
* {{tl|Main}} — links to the main article for a topic that has a section in another article.
* {{tl|See also}} — links to related articles.
* {{tl|See also}} — links to related articles.
* {{tl|Distinguish}} — notes that an article should not be confused with another topic.
* {{tl|Distinguish}} — notes that an article should not be confused with another topic.
* {{tl|Hatnote}} — a fully custom hatnote/navnote whose contents must be written by the editor.


=== Maintenance templates ===
=== [[:Category:Work templates|Work templates]] ===
Maintenance templates identify pages that need editing, expansion, cleanup, sourcing, or other work.
Work templates identify pages that need editing, expansion, cleanup, sourcing, or other maintenance work. They usually add articles to their corresponding maintenance categories when applied. All articles with work templates applied can be found by navigating the category tree in [[:Category:Needs work]].
 
Examples may include:


Regular work templates include:
* {{tl|Stub}}
* {{tl|Stub}}
* {{tl|Needs expansion}}
* {{tl|Needs expansion}}
* {{tl|Needs cleanup}}
* {{tl|Needs sources}}
* {{tl|Needs sources}}
* {{tl|Needs cleanup}}
* {{tl|Needs other work}}
 
Page element work templates include:
* {{tl|Needs images}}
* {{tl|Needs infobox}}
 
Priority work templates include:
* {{tl|High priority}}
 
Serious issue work templates include:
* {{tl|Accuracy disputed}}
* {{tl|Outdated information}}
 
Other work templates include:
* {{tl|Placeholder}} (also usable as {{tl|Plc}} or, for simple version, {{tl|Plcs}})
 
== Utility templates ==
Utility templates are used to make formatting, documentation, and similar tasks simpler and easier.
 
Text formatting templates include:
* {{tl|Scripture quote}}
* {{tl|Slim scripture quote}} (also usable as {{tl|Ssq}})
* {{tl|FAQ entry}} (also usable as {{tl|Qa}})
* {{tl|Smallcaps}} (also usable as {{tl|Sc}})
* {{tl|Ellipsis}} (also usable as {{tl|Ell}})
* {{tl|Insertion}} (also usable as {{tl|Ins}}
* {{tl|Quiet}}
* {{tl|Quiet same size}} (also usable as {{tl|Qss}})
* {{tl|Quiet brackets}} (also usable as {{tl|Brac}} or {{tl|Qb}})
 
Documentation templates include:
* {{tl|Tl}}
* {{tl|Para}}
* {{tl|SEO}}
 
== Page element templates ==
Page element templates create elements such as images, galleries, and infoboxes.
 
Page element templates include:
* {{tl|Infobox being}}
* {{tl|Infobox Watcher}}


== Creating templates ==
== Creating templates ==
Line 45: Line 97:
</pre>
</pre>


Template notes or documentation should usually be placed inside <code><noinclude></code> tags so that the documentation appears only on the template page itself. If this is omitted, it will appear everywhere the template is used.
Template notes or documentation should usually be placed inside <code>&lt;noinclude&gt;</code> 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 <code><includeonly></code> tags.
Categories that should apply to all pages using the template should usually be placed inside <code>&lt;includeonly&gt;</code> tags.


== Template documentation ==
== Template documentation ==


Basic template documentation should at least explain:
Basic template documentation should at least explain what the template does, where and how it should be used, what category or categories it adds, any parameters it accepts, and what kind of template it is.
 
* what the template does;
* where it should be used;
* what category or categories it adds, if any;
* any parameters the template accepts.


== See also ==
== See also ==
Line 62: Line 109:
* [[Grigoripedia:Maintenance]]
* [[Grigoripedia:Maintenance]]
* [[Grigoripedia:Stub]]
* [[Grigoripedia:Stub]]
* [[:Category:Maintenance templates]]
* [[:Category:Templates]]
 
[[Category:Project pages]]

Latest revision as of 21:53, 28 August 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.

Box templates

Notice templates display important notices on an article. They should usually not be removed.

Article notices may be content warnings or other notices.

Content warning templates include:

  • {{Mature content}} — a warning that an article or section contains mature content with significant sexual themes.
  • {{Sensitive content}} — a warning that an article or section contains content that is sensitive or potentially disturbing to some people.
  • {{Other content warning}} — a customizable content warning about an article or section.

General notice templates include:

Navigation (nav) 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.
  • {{Hatnote}} — a fully custom hatnote/navnote whose contents must be written by the editor.

Work templates identify pages that need editing, expansion, cleanup, sourcing, or other maintenance work. They usually add articles to their corresponding maintenance categories when applied. All articles with work templates applied can be found by navigating the category tree in Category:Needs work.

Regular work templates include:

Page element work templates include:

Priority work templates include:

Serious issue work templates include:

Other work templates include:

Utility templates

Utility templates are used to make formatting, documentation, and similar tasks simpler and easier.

Text formatting templates include:

Documentation templates include:

Page element templates

Page element templates create elements such as images, galleries, and infoboxes.

Page element templates 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 <noinclude> 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 <includeonly> tags.

Template documentation

Basic template documentation should at least explain what the template does, where and how it should be used, what category or categories it adds, any parameters it accepts, and what kind of template it is.

See also