Help:Compact Guide for Editors/Wikitext basics
Translation in progress This help page is currently being translated from zhmoe:Help:萌百编辑简明指南/wikitext语法基础; it may be incomplete, inaccurate or obfuscating. Moegirlpedia hopes that you can help with translating, proofreading, or copy editing this help page. Progress:
93% This template was placed on July 18, 2024, 11:15 AM. The last edit was on 15:16, 18 July 2024 (UTC). |
When editing Moegirlpedia, we often need to implement various effects through wikitext or HTML syntax. The most basic are here for you to memorize and review, however you don't have to master them all at once, and can always come back and review the unfamiliar parts. You can choose to bookmark this chapter for later use. As a reminder, the help button in the editor is also useful.
Contents
Introductory markup
Basic Wikitext font syntax | ||
---|---|---|
Description | What you type | What you get |
Italic | ''Italic'' | Italic |
Bold | '''Bold''' | Bold |
Bold & Italic | '''''Bold & Italic''''' | Bold & Italic |
Elementary wikitext and HTML syntax | ||
---|---|---|
Start a new paragraph | (Press "Enter" twice) | Paragraph 1
Paragraph 2 |
Start a new line | <br> | Line 1 Line 2 |
Strikethrough | <s>Flat-tan</s> | Flat-tan |
Reference | <ref>Moegirlpe-tan</ref> | Flat-tan[1]
|
Keep source formatting, that is, keep extra spaces and line breaks (used when enclountering poems, songs, and large sections of texts that need to be typeset). Not for usual text in an article. | <poem></poem> | |
Show code | Display a piece of Wiki or HTML code. Also used to display certain characters that have special meaning in Wiki code or HTML.| <nowiki></nowiki> or <pre></pre> or <code></code>[a 1] | |
|
Links
Baski wikitext link syntax | |||
---|---|---|---|
Internal link | [[Moegirlpe-tan]] [[Moegirlpe-tan|Flat-tan]] [[Moegirlpe-tan#Character settings]][b 1] [[MGP:About|]][b 2] |
Moegirlpe-tan Flat-tan Moegirlpe-tan#Character settings About | |
External link | [https://zh.moegirl.org.cn] | ||
External link within the site | [https://zh.moegirl.org.cn Chinese Moegirlpedia] | [1] Chinese Moegirlpedia | |
Page paragraph title | If the paragraph title does not exist, the link will jump to the top of the page. [b 1]
If there are multiple identical titles, add a sequence number to link to the specific title. (For example: If there are 3 titles on a page all titled "Example Title" and you want to jump to the third one, use #Example Title 3.) |
</nowiki>animation#Introduction
|
animation#Introduction |
Specify displayed text
Use the pipe symbol " | " to create a label link |
</nowiki>Touhou</nowiki>
|
Touhou | |
"Empty" pipe character
To hide extra characters, leave blank after the pipe symbol | and the server will automatically fill in the link label. Note that it does not have any effect in |
[[Land of the Lustrous:Phosphophyllite|]]<br>
[[StarOcean (Luo Tianyi)|]]
|
[[Land of the Lustrous:Phosphophyllite|]]<br>
[[StarOcean (Luo Tianyi)|]]
| |
Redirect | #Redirect [[Page name]] | ||
Link to a category | [[Category:Help]] | ||
Cite a category | [[:Category:Help]][b 3] | Category:Help | |
Interwiki link[b 4] | [[library:Mainpage]] [[commons:Mainpage]] [[zhwp:萌娘百科]] (Interwiki link to the article "Moegirlpedia" on Chinese Wikipedia) |
library:Mainpage commons:Mainpage zhwp:萌娘百科 | |
|
Headings, lists and discussion
Description and display | What you get | |
---|---|---|
====Heading====
2nd level heading3rd level heading4th level heading5th level heading6th level heading |
== 2nd level heading == | |
New line
A single newline has little effect when displayed. but a blank line will start a new paragraph, Either end a list or indent.
|
-{}- <p>A single newline has little effect when displayed.</p> <p>but a blank line</p> <p>will start a new paragraph,</p> <p>Either end a list or indent.</p> | |
Unordered (bulleted) list
* Add asterisks before content. |
You can break it up.
| |
Ordered (numbered) list
# Replace asterisks with number signs. |
After you break it up.
| |
Mixed list
|
-{}-* You can even do mixed lists *# Just nest it *#* or line break<br> | |
Definition list
|
-{}-; Semicolons before terms,</nowiki><br>: colons before descriptions.<br>; One row per item,<br><nowiki>: a colon can follow a space. | |
Indent
|
-{}-: Replace asterisks with colons.</nowiki><br>:: Add one colon to reply.<br>:: Same to its every paragraph.<br><nowiki>::: Until someone replies to you. | |
Bold paragraph
A new line starts a new paragraph.
|
; Make an entire paragraph bold. A new line starts a new paragraph. | |
Preformatted text
If the start of a line is a space, then it will appear in its original form *;:#abc == 1 ==
(i)Note But the internal wikitext will be parsed
-{}- * Can also be wrapped with pre tag * {{Note}} internal '''wikitext''' will not be parsed
<pre> . Usually used
| ||
Center
<center>Moegirlpe-tan</center> |
| |
Dividing line
---- |
| |
Signature
--~~~~ |
||