mNo edit summary |
mNo edit summary |
||
Line 2: | Line 2: | ||
== Please test below ==<!--DO NOT DELETE NOR CHANGE ANYTHING ABOVE THIS LINE, INCLUDING THIS LINE!--> | == Please test below ==<!--DO NOT DELETE NOR CHANGE ANYTHING ABOVE THIS LINE, INCLUDING THIS LINE!--> | ||
< | Some templates quote parameters that don't use "=" but numbers like "1" and "2" (so-called "anonymous parameters"), like: '''<nowiki>{{color|white|You can't see me!}}</nowiki>'''. In the example, "white" and "You can't see me!" are the parameter values of the template. These parameters can also be written in their equivalent: '''<nowiki>{{color|1=white|2=You can't see me!}}</nowiki>'''. In fact, changing to a named parameter can solve the error caused when the parameter value contains HTML tags or "=". | ||
|color = red | |||
|size = 20px | Still confused? It doesn't matter, because templates are the most complex and difficult part to understand when getting started with Wikitext, and this section is just a general introduction of templates. We believe you will gradually understand in later study and practice. If you see a templates or parameter that you don't understand anywhere, to prevent errors in the call, please search for the template page typing its name like "Template:name" and check its documentation, to learn its parameters and how to use, otherwise do not use the template or parameters lightly. | ||
|Welcome to Moegirlpedia! | |||
}}</ | == Common templates == | ||
The following will only introduce the basic usage of a few common templates. You can also click the template link and check their documentation to master advanced usage. | |||
* '''{{[[Template:Color|Color]]}}''': Colored text. Parameter 1 for the color (HTML colors supported, see [[Help:List of colors]]), and parameter 2 for the text, both of which are mandatory. | |||
** Example: <code><nowiki>{{color|red|It is red.}}</nowiki></code> → {{color|red|It is red.}} | |||
* '''{{[[Template:Font|Font]]}}''': Text with various font effects. It has many parameters. '''Size''' specifies the size of the text; '''color''' for its color (similar to [[Template:color]]); '''bgcolor''' for its background color; '''shadowcolor''' for its shadow color; and '''title''' specifies the prompt when the mouse hovered on the text. | |||
** Example: <code><nowiki>{{font|color=red|size=20px|title=Welcome to Moegirlpedia!|Welcome!}}</nowiki></code> → {{font|color=red|size=20px|title=Welcome to Moegirlpedia!|Welcome!}} | |||
* '''{{[[Template:Ruby|Ruby]]}}''': Denoting phonetics. Parameter 1 for the text, parameter 2 for its phonetics, both of which are mandatory. Parameters 3 and 4 are optional. | |||
** Example: <code><nowiki>{{ruby|注|zhù}}{{ruby|音|yīn}}</nowiki></code> <small>(Chinese characters to Pinyin)</small> → {{ruby|注|zhù}}{{ruby|音|yīn}} | |||
* '''{{[[Template:lj|lj]]}}''', '''{{[[Template:lang-ja|lang-ja]]}}''': Denoting Japanese, usually to distinguish similar characters from Chinese. Just one parameter for the text and <nowiki>{{lang-ja}}</nowiki> would bring an additional "Japanese: " before it. | |||
** Example: <code><nowiki>The sentence "Good morning" in Japanese is {{lj|おはよう}}, and "Good afternoon" {{lj|こんにちは}}, while "Good evening" in {{lang-ja|こんばんは}}.</nowiki></code> → The sentence "Good morning" in Japanese is {{lj|おはよう}}, and "Good afternoon" {{lj|こんにちは}}, while "Good evening" in {{lang-ja|こんばんは}}. | |||
* '''{{[[Template:Spoiler|Spoiler]]}}''': Text cover. The first mandatory parameter for the text covered, and the optional second for the prompt when the mouse hovered. However, '''do not''' use '''spoiler''' and '''strikethrough''' at the same time. | |||
** Example: <code><nowiki>{{Spoiler|Flat-tan is so cute!|Jeez...who allowed you to hover on it.}}</nowiki></code> → {{Spoiler|Flat-tan is so cute!|Jeez...who allowed you to hover on it.}} | |||
* '''{{[[Template:Hide|Hide]]}}''': Collapsed text. Parameter '''Title''' for the title, and '''Text''' for the text to hide. | |||
** Example: <code><nowiki>{{Hide|Title=Click the "Expand" on the right.|Text=The text hidden would be shown.}}</nowiki></code> ↓ | |||
{{Hide|Title=Click the "Expand" on the right.|Text=The text hidden would be shown.}} | |||
More templates are listed on page [[:Category:Templates]], and you can seek [[Help:Templates]] or [[MGP:Template guidelines]] for more help, like how to create a template. | |||
== Layout of articles == | |||
Moegirlpedia has consensus on the layout, and entries not meeting it need to be localized to conform to the layout regulations. | |||
* '''Naming of articles'''. Please follow these priority principles, to make their names '''official, common, English, full-named, and special-symbols avoided'''. For detailed requirements and other special cases, please refer to the [[MGP:Article naming guidelines|article naming guidelines]]. | |||
* '''Before preface'''. A preface refers to the summary of an article above the first 2nd level heading, which should follow the below: | |||
** '''[[MGP:Disambiguation policy#Disambiguation navigation templates|Disambiguation templates]]'''. Names of some articles may be confusing to readers because of polysemy or their high similarity, so when this ambiguity occurs, a disambiguation template is needed to eliminate it. The most common templates are {{tl|About}}, {{tl|Distinguish}}, {{tl|Otheruseslist}}, etc. | |||
** '''Infobox templates''', also known as "infoboxes", are musts for all articles. Each of them typically contains a basic profile and relavant picture for an article, to help readers quickly identify the topic. | |||
* '''The bottoms of articles''' in Moegirlpedia, according to the convention, should generally consist of these parts: "Navigation boxes" (or "Navbox"), "Notes", "References" and "External links". The Navbox should be above the others without an exclusive 2nd level heading, while the remaining could be splitted or merged into "references" depending on how much the content is. | |||
<center>{{Clickable Button|bgcolor=#A5E4A5|Help:Compact guide/Community|A bit tired? Just one more step!}}</center> | |||
{{Template:Moegirlpedia help}} | |||
[[Category:Help]] |
![]() |
|
Some templates quote parameters that don't use "=" but numbers like "1" and "2" (so-called "anonymous parameters"), like: {{color|white|You can't see me!}}. In the example, "white" and "You can't see me!" are the parameter values of the template. These parameters can also be written in their equivalent: {{color|1=white|2=You can't see me!}}. In fact, changing to a named parameter can solve the error caused when the parameter value contains HTML tags or "=".
Still confused? It doesn't matter, because templates are the most complex and difficult part to understand when getting started with Wikitext, and this section is just a general introduction of templates. We believe you will gradually understand in later study and practice. If you see a templates or parameter that you don't understand anywhere, to prevent errors in the call, please search for the template page typing its name like "Template:name" and check its documentation, to learn its parameters and how to use, otherwise do not use the template or parameters lightly.
The following will only introduce the basic usage of a few common templates. You can also click the template link and check their documentation to master advanced usage.
{{color|red|It is red.}}
→ It is red.{{font|color=red|size=20px|title=Welcome to Moegirlpedia!|Welcome!}}
→ Welcome!{{ruby|注|zhù}}{{ruby|音|yīn}}
(Chinese characters to Pinyin) → The sentence "Good morning" in Japanese is {{lj|おはよう}}, and "Good afternoon" {{lj|こんにちは}}, while "Good evening" in {{lang-ja|こんばんは}}.
→ The sentence "Good morning" in Japanese is おはよう, and "Good afternoon" こんにちは, while "Good evening" in Japanese: こんばんは.{{Spoiler|Flat-tan is so cute!|Jeez...who allowed you to hover on it.}}
→ Flat-tan is so cute!{{Hide|Title=Click the "Expand" on the right.|Text=The text hidden would be shown.}}
↓Click the "Expand" on the right. |
---|
The text hidden would be shown. |
More templates are listed on page Category:Templates, and you can seek Help:Templates or MGP:Template guidelines for more help, like how to create a template.
Moegirlpedia has consensus on the layout, and entries not meeting it need to be localized to conform to the layout regulations.