User:KockaAdmiralac/Formatting
Formatting in the wikitext of wiki pages does not significantly impact the actual content, but does help keeping the wiki article content from constantly being changed simply for formatting changes. It makes the article more readable for users using the source editor, and adhering to consistent standards of formatting makes doing massive changes via automation easier.
In addition to these spacing standards, individual templates contain information on how they are meant to be formatted in their template documentation.
| Bad | Good |
|---|---|
*Bullet
**Point
***List
#Numbered
##List
==Header 2==
===Header 3 ===
Paragraph text.
==== Header 4====
;Bolded
:Indent
<gallery>File1.png|Caption 1
File_2.png|Caption 2
</gallery>
{|
!Column
!Column
|-
|class="test"|Data
|Data
|}
|
* Bullet
** Point
*** List
# Numbered
## List
== Header 2 ==
=== Header 3 ===
Paragraph text.
==== Header 4 ====
; Bolded
: Indent
<gallery>
File1.png | Caption 1
File 2.png | Caption 2
</gallery>
{| class="wikitable"
! Column
! Column
|-
| class="test" | Data
| Data
|}
|
Content on the wiki can be styled using CSS. This is generally done by using gadgets to define site-wide styles, or TemplateStyles to define styles specific to certain templates or pages. Styling using CSS is available only to wiki administrators (even in the case of TemplateStyles), so to propose changes you can contact a staff member of the wiki.
When styling content used inside wiki articles (for example, coloring dialogue text the way it appears in-game), it is possible to use either use inline CSS (the style="" attribute) to write out the CSS rules themselves, or use a CSS class (the class="" attribute) and then write sitewide styles applying to that element. The latter is always preferred, because it uses simpler syntax, allows for reusable styles, and makes changing behavior across themes simpler.
To assign a class to an element, use the class attribute. For example, <span class="red">this</span> wikitext results in this result. Classes can also be combined in one tag. For example, <span class="yellow papyrus">Yellow Papyrus</span> gives Yellow Papyrus.
In context of certain templates, such as {{Quote}} and {{Cite game}}, instead of using <span class="red"></span> it is preferred to use <red></red>, as they have special handling of such tags and convert them to appropriate classes.
redorangeyellowgreencyanbluepurplelightgreen(R-Action)violet(S-Action)lightyellow(N-Action)
- Comic Sans (
sans) - Papyrus (
papyrus) - Determination Mono (
dt)
The wikitable class is meant to be assigned to most tables on the wiki.
| Column 1 | Column 2 | Column 3 | Column 4 |
|---|---|---|---|
| Row 1 Column 1 | Row 1 Column 2 | Row 1 Column 3 | Row 1 Column 4 |
| Row 2 Column 1 | Row 2 Column 2 | Row 2 Column 3 | Row 2 Column 4 |
If a table row is wrapping too early, the nowrap class can be used to prevent it from wrapping. For example:
| Column 1 that has a very long name and wraps around because of that | Column 2 | Column 3 | Column 4 |
|---|---|---|---|
| Row 1 Column 1 | Row 1 Column 2 | Row 1 Column 3 | Row 1 Column 4 |
| Row 2 Column 1 | Row 2 Column 2 | Row 2 Column 3 | Row 2 Column 4 |
| Column 1 that has a very long name but does not wrap around because of the class | Column 2 | Column 3 | Column 4 |
|---|---|---|---|
| Row 1 Column 1 | Row 1 Column 2 | Row 1 Column 3 | Row 1 Column 4 |
| Row 2 Column 1 | Row 2 Column 2 | Row 2 Column 3 | Row 2 Column 4 |
If you need to display an image in an article that is horizontally flipped, you can assign the class flip-image to that file. For example,
[[File:Spriters Resource logo.png|32px|Spriters Resource logo]] [[File:Spriters Resource logo.png|32px|Spriters Resource logo flipped|class=flip-image]] gives...
A single line break in wikitext does not create a paragraph break, and two line breaks have to be used for that. This is inappropriate for content such as song lyrics, which should be wrapped in <poem></poem> tags. For example, Mad Mew Mew's Super Secret Song would be formatted like this:
ooo ooo oooo
ooo ooo oooo
oo oo ooo oo ooo
oo oo oo oo oo oo oo oo
oo oo oo oo ooo
ooo
- Oxford comma should be used for listings. Example: "Kris, Susie, and Ralsei".
- Logical quotation should be used for quotes outside of citations and choice prompts to preserve the original text. Dumb quote is the preferred quotation mark. Italics must also be used for a quote. Example: "apple-scented shampoo".
- Ending punctuation is omitted for captions such as in infoboxes and image descriptions.
Links should not be placed in section headers, because they are important navigational elements that should not be obstructed by links. Links also have no place within quoted content, unless the original text being quoted also contains the same link.
Links should generally not repeat within the same main section of the article. A "main section" is generally defined as a section delineated by level two headings (== ==), but if a section is frequently linked to (for example, a developer on Deltarune developers or an NPC on Hometown/NPCs), it is useful to allow link repetition within such sections as users may land directly on that section instead of reading through the article in order. Conversely, item and soundtrack pages are treated as a single main section as they are generally short. Additional exceptions to this rule are:
- Infoboxes are treated as separate sections regardless of page type. Navboxes are not counted for purposes of this rule.
- When links are placed in lists, such as on the Leitmotifs or Introduction articles, it would look odd if some links were excluded from lists just because they were used earlier in the article. In such cases all links are kept for consistency.
- When links are pointing towards different sections of the same page, they are counted as different links.
It is always preferred to use internal links ([[ ]]) as opposed to external links ([ ]). For example, instead of linking to [https://undertale.wiki/w/Sans Sans] on the Deltarune Wiki, or [https://deltarune.wiki/w/Sans Sans] on the Undertale Wiki, the preferred way is to link to [[ut:Sans|Sans]] and [[dr:Sans|Sans]], respectively. Available interwiki prefixes are listed on Special:Interwiki.
Punctuation should go inside external links. Example: "YouTube." instead of "YouTube."