Moegirlpedia:Template guidelines

From Moegirlpedia
Revision as of 21:58, 3 July 2023 by LiaMinina (talk | contribs) (Translated more sections, corrected phrases)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Translation in progress
This page is currently being translated; it may be incomplete, inaccurate or obfuscating.
Moegirlpedia hopes that you can help with translating, proofreading, or copy editing this page.
Progress:
78%
This template was placed on 16:51, 3 July 2023 (UTC). The last edit was on 21:58, 03 July 2023 (CST).

Commonly-used templates

Information templates

For fictional characters, the parameters "From Where" and "Act Range" refer to the birthplace of the character and their scope of activities, respectively, rather than the body of work they originated in/the medium they appear in.
Here are a few examples:
  • Green Dam Girl's "birthplace" and "scope of activities" can be written as "China" or "Mainland China", instead of "Internet" and "Baidu Tieba".
  • Marisa Kirisame's "birthplace" and "scope of activities" can be written as "Gensokyo", instead of "Touhou Games" or "PC".


Common page-top templates

For pages whose content isn't yet complete or perfected, and there is a clear need for editors to improve it.
Note: Do not abuse. When other editors think the content can be improved, they can edit it themselves; please try to give reasons and ways to improve the page.
This template can serve as the basis for creating your own page-top templates for certain popular works, for references: Category:Serial works page-top templates.
For articles of low quality, confusing formatting, which have an urgent need to be edited and reformatted, even blanked and rewritten.

Other notice templates

Used for articles that contain unmarked spoilers. On a case-by-case basis, input this template below the title of sections involving spoilers (i.e. above the spoiler text).
It is recommended to use {{Hide}} to hide the spoiler text, example:
Nuvola apps important blue.svg
This section may contain major spoilers!
Consider skipping these contents if you are not yet familiar with all the latest media releases.

It isn't necessary to use strikethroughs at this point.


Common functional templates

For text in Japanese or another foreign language that needs to be translated into English. This template can be input if the editor doesn't know how to translate or doesn't have the energy to do so at the moment, so that it can be translated by someone else.

Navigation templates

  • Navbox template: {{Navbox template name}}

Navigation templates for articles of the same type, also includes a list of links for such articles.

Example: {{Touhou Project}}, {{Moe points}}, {{Key}}, etc.

Template usage

Sorted by page-top templates

Note: The top template sorting method described in this paragraph is only available for pages in the Main namespace.

Template creation

Moegirlpedia has a large number of templates, the existing templates can fit most of the needs. When an existing template is not suitable, you can create a new template.

It is not recommended to copy a template directly from another wiki, because other templates, JS, CSS, or specific plugins that the template depends on, may make it impossible to use them directly.

Syntax

See MediaWiki's official description.

Style guidelines

Template width should use percentages (80%, etc.). If a fixed width is used, the template should be less than 260px wide, the image inside the template should be less than 250px (the mobile version shows an error if it is larger than this size). Icons should be smaller than 100px.

In general, the horizontal bar type uses a percentage to determine the width. Information templates on top of pages use pixels (px) to determine the width.

Documentation

To make the template easier to use, documentation is often required when writing functional templates. There are two ways to embed documentation, one is through inlining <noinclude>Template documentation</noinclude>to the template directly, the other is adding {{Documentation}}.