Help:Compact Guide for Editors/Wikitext basics

From Moegirlpedia
Revision as of 15:16, 18 July 2024 by LiaMinina (talk | contribs) (Created page with "{{NoSubpage}} {{Translation in progress|1=July 18, 2024, 11:15 AM|progress=93%|source=zhmoe:Help:萌百编辑简明指南/wikitext语法基础}} {{Help:Compact guide/tab}}...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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).
A Compact Guide for Editors of Moegirlpedia

WelcomeFirst editTemplate basicsCommunity


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.

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]
  1. Moegirlpe-tan
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]
  1. The combination <code><nowiki></nowiki></code> is often used to show formatted code.

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

#Chapter&Subsection</nowiki>

animation#Introduction

#Chapter&Subsection

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 Cite error: Invalid <ref> tag; refs with no name must have content.

[[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:萌娘百科
  1. If there are more than one of the same title, add an ordinal number to link to the specified one. For example, if there are 3 headings in a page named "Sample heading" and you want to jump to the third one, use [[#Sample heading 3]].
  2. Not effective in references.
  3. Note the colon leftmost.
  4. You can link to other wikis including our sister project, Wikipedia, etc., see Special:Interwiki for details.

Headings, lists and discussion

Description and display What you get
====Heading====

2nd level heading

3rd level heading

4th level heading

5th level heading
6th level heading

== 2nd level heading ==
=== 3rd level heading ===
==== 4th level heading ====
===== 5th level heading =====
====== 6th 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.


  • The semicolon at the beginning of the line will not be displayed, but there will be a line break effect.
    • The colon in this line will not be displayed, but it will have the effect of line wrapping and indentation.
  • Wrapping the text directily can improve the readability of the text.
    • But it could cause more trouble in the future.
  • When using a list, line breaks will affect the display output.
-{}-
<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.
** Number indicates its level.
You can break it up.
* And then start over.

  • Add asterisks before content.
    • Number indicates its level.

You can break it up.

  • And then start over.
Ordered (numbered) list

# Replace asterisks with number signs.
## Content will be automatically numbered.
After you break it up.
# It starts from one again.

  1. Replace asterisks with number signs.
    1. Content will be automatically numbered.

After you break it up.

  1. It starts from one again.
Mixed list
  • You can even do mixed lists
    1. Just nest it
      • or line break
-{}-* You can even do mixed lists
*# Just nest it
*#* or line break<br>
Definition list
Semicolons before terms,
colons before descriptions.
One row per item,
a colon can follow a space.
-{}-; 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,
Add one colon to reply.
Same to its every paragraph.
Until someone replies to you.

  • Often used on talk pages and discussion board.
  • It's actually the description of the definition list above, so if a paragraph starts with a semicolon, the text after the first colon in it will be in the next row indented, even if the colon is not at the beginning of the row.
-{}-: 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
Make an entire paragraph bold.

A new line starts a new paragraph.


  • Often used for short paragraphs (sometimes even a sentence), as a convenience compared to regular bolding.
  • In essence, it is the definition part of the above #definition table, relying on the CSS of MediaWiki skin to implement bolding.
; 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

  • It is usually displayed in a fixed-width font and retains all newlines, spaces and other whitespace characters, so it is more suitable for displaying code and other content.
  • In the syntax with a space at the beginning of the line, the internal wikitext will be parsed (except for the syntax that requires a top space), as if {{Note}} it is parsed into "(i)Note " and '''wikitext''' displayed in bold.
  • In <pre>, all wikitext syntax in the text will not be parsed. This is why the source code can be displayed in the right column of this table.
Depending on whether the internal wikitext needs to be parsed, select the leading space syntax or <pre>. Usually used
</code>.
|<pre>-{}-If the start of a line is a space
 , then it will appear in its original form
 *;:#abc
 == 1 ==
 {{Note}} But the internal '''wikitext''' will be parsed

<pre>-{}-
* Can also be wrapped with pre tag
* {{Note}} internal '''wikitext''' will not be parsed
<pre>
Center

<center>Moegirlpe-tan</center>

Moegirlpe-tan
Dividing line

----


Signature

--~~~~

Click me to learn template basics!