Moegirlpedia:Template guidelines
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 (UTC). |
Contents
Commonly-used templates
Information templates
- Character information template: {{Characterinfo}}
- 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: |
---|
|
Common page-top templates
- Edit-welcoming template: {{Welcome participation}}
- 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.
- Urgent improvement template: {{Urgent improvement}}
- For articles of low quality, confusing formatting, which have an urgent need to be edited and reformatted, even blanked and rewritten.
Other notice templates
- Spoiler alert template: {{SpoilerBar}}
- 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:
class="common-box " style="margin: 0 auto; width:80%; background: #f8f9fa; border-left: 10px solid #009af2; box-shadow:0 1px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12),0 2px 1px -2px rgba(0,0,0,.2)" | |
---|---|
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
- Template for translation requests: {{NeedsTranslating}}
- 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.
- 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.
- {{Work in progress}}/{{Edit war}}
- Disambiguation templates (except for ({{Disambiguation}})
- Topic navigation templates (e.g. {{Touhou Project navbar}})
- {{Smallnav}}
- Edit/maintenance related templates
- Special maintenance templates
- {{Welcome participation}} (including topic templates and customized templates that play a similar role, templates in the category Category:Serial works page-top templates), {{Urgent improvement}}
- Welcome participation/Urgent improvement/Topic top templates are not to be reused.
- Other templates
- Quote templates similar to {{Cquote}}, and other templates that play a similar quoting role.
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}}
.
|