mNo edit summary |
mNo edit summary |
||
Line 35: | Line 35: | ||
|Escapes wiki markup (such as '''bolding''' to <nowiki>'''bolding'''<nowiki>) | |Escapes wiki markup (such as '''bolding''' to <nowiki>'''bolding'''<nowiki>) | ||
|- | |- | ||
|<pre><pre>text< | |<pre><pre>text<∕pre></pre> | ||
|<pre>text</pre> | |<pre>text</pre> | ||
|Completely preformats text. All wiki markup, template calls, links, parser functions, HTML codes, and comments are completely ignored and are treated as raw text. | |Completely preformats text. All wiki markup, template calls, links, parser functions, HTML codes, and comments are completely ignored and are treated as raw text. | ||
|- | |- | ||
|<pre><pre style="color: red">text< | |<pre><pre style="color: red">text<∕pre></pre> | ||
|<pre style="color: red">text</pre> | |<pre style="color: red">text</pre> | ||
|You can add HTML styles to preformatted text, like divs. | |You can add HTML styles to preformatted text, like divs. |
Revision as of 07:36, 8 July 2023
Guides
Helpful Formatting
Character or Code | Usage |
---|---|
∕ |
Appears to be a forward slash. Since it has the same appearance but no function, it can help with presenting HTML. |
→ |
Rightwards arrow as one character. Used when listing directions on location pages. |
← |
Leftwards arrow as one character. |
<br> |
Forces a line break in text. |
<br clear=all> |
Forces a line break, but also blocks all following text from appearing until elements such as images are completely visible. For example, this can stop an image from appearing next to multiple headers by forcing one of the headers to only appear below the full image. |
<span id="text"></span> |
Include anywhere on the page to create an invisible link anchor. For example, using "Blop" for the text will allow you to link to Page#Blop. These links work exactly as normal header links do and can even be placed within a header (inside of the equal signs) to have alternate header links. |
Formatting Code | Output | Explanation | |||||
---|---|---|---|---|---|---|---|
<nowiki>text<nowiki> |
text<nowiki>
|Escapes wiki markup (such as '''bolding''' to <nowiki>'''bolding'''<nowiki>)
|-
|<pre><pre>text<∕pre></pre>
|<pre>text</pre>
|Completely preformats text. All wiki markup, template calls, links, parser functions, HTML codes, and comments are completely ignored and are treated as raw text.
|-
|<pre><pre style="color: red">text<∕pre></pre>
|<pre style="color: red">text</pre>
|You can add HTML styles to preformatted text, like divs.
|-
|<pre><code>text</code></pre>
|<code>text</code>
|Fixes the width of text (no text wrapping) and applies a background like with the <pre><pre></pre><pre> tags.
|-
|<pre><big>text</big></pre>
|<big>text</big>
|Makes text bigger.
|-
|<pre><span class="spoiler">text</span></pre>
|<span class="spoiler">text</span>
|Hides text underneath a spoiler. Visible when selecting it on PC or tapping it on mobile. May not work when using certain wiki skins.
|-
|<pre><div class="toccolours mw-collapsible mw-collapsed">text<div class="mw-collapsible-content"></div></div></pre>
|<div class="toccolours mw-collapsible mw-collapsed">text1<div class="mw-collapsible-content">text2</div></div>
|Adds a header with a button to reveal a collapsed section. Both the header and section can have other formatting. Remove <code>mw-collapsed</code> to have the section expanded by default.
|-
|<pre><div style="-webkit-column-count:2;column-count:2;">text1
text2
text3</div></pre>
|<div style="-webkit-column-count:2;column-count:2;">text1
text2
text3</div>
|Formats text into the specified number of columns.
|}
<!--
Maybe add:
https://www.mediawiki.org/wiki/Special:MyLanguage/Help:TemplateStyles
https://www.mediawiki.org/wiki/Help:HTML_in_wikitext
for DPL usage resultsheader=«pre»«nowiki»|resultsfooter=«/nowiki»«/pre»
-->
==Template Documentation<span id="templatedoc"></span><span id="Templatedoc"></span><span id="TemplateDoc"></span><span id="Template documentation"></span>==
This block of text can be inserted into a <code>Template:(name)/doc</code> page to provide a guide on how to fill it out. Since most of the guide notes are in comments they can technically be left in, though that would be really lazy and would bloat the page.
<div class="toccolours mw-collapsible mw-collapsed">
Template Documentation guide (copy and paste)
<div class="mw-collapsible-content">
<pre>
==Description==
<!--Short summary of what the main function of the template is-->
INSERT_TEXT_HERE
==Syntax==
<!--Explain how the template is included in a page. Best to include the recommended use cases.
For example, in Template:Listloc:
Copy/Paste the code shown below into a cell on the table then fill in the information.
<pre>
{{Listloc
|name =
|image =
|aka = AKA: [Line can be deleted if inapplicable]
|description = }}
<∕pre>
Another example, this time from Template:Documentation:
Add <code><nowiki><noinclude>{{Documentation}}</noinclude> at the end of the template page.
Add UsageINSERT_TEXT_HERE ParametersINSERT_TEXT_HERE SampleINSERT_TEXT_HERE Face Any DirectionYou can face any direction you want on any tile in Yume Nikki's dream worlds, using the power of glitches. This guide outlines how to face whichever direction you want on any given tile assuming you can't do it manually by walking into it and/or sitting down. Dream World
Using Towel after equipping it in the chair can force you to face UP or LEFT as well, but it's hard to get to a state where you aren't also sitting down, so it's best to use one of the explained methods instead. FC World
Real World
Test SpaceLocationThumb TestsFollowing is a list with images presented in-line and the links next to them, similar to the DPL output of LocationThumb. Visual List
column test List with thumbnail images RecentlyEdited TestsTesting of what became the RecentlyEdited template (originally was going to be TrendingPages) Visual List
Plan was to recreate the above using a DPL function below, but the above section became a test space for when I was trying to figure out how to format it without ListChar breaking the whole thing (WHY DO THEY PUT THE File: NAMESPACE IN THAT TEMPLATE BUT NO OTHERS???) Code used <div class="toccolours mw-collapsible" style='text-align: center;'> <big>'''Recently Edited'''</big> <div class="mw-collapsible-content"> {{#dpl:category=Yume Nikki Events{{!}}Yume 2kki Characters|uses=Template:ListChar{{!}}Template:Locationbox{{!}}Template:NPCBox{{!}}Template:Listloc|count=15|include={ListChar}:image,{Locationbox}:image,{NPCBox}:image,{Listloc}:image|format=<div style{{=}}'text-align: center;'><ul>,<li style{{=}}"display: inline-block; vertical-align: bottom; width: 135px;">[[,{{!}}none{{!}}135x101px{{!}}%PAGE%]]<div style{{=}}'max-width: 135px; text-align: center;'>[[%PAGE%{{!}}%TITLE%]]</div></li>\n,</ul></div>|secseparators=,,File:,,,,,|multisecseparators={{!}}aa,,,|dominantsection=1|ordermethod=lastedit|order=descending|cacheperiod=604800}} </div></div> Unformatted output ClaimClaim Useful TextCurrent timestamp 20241123021831
Claim TestingA
B
C
F This page is missing information and is in need of editing or expansion. You can help YumeWiki by inserting the needed information via editing.
To do: details
G
Countdown02:18 0218 0 020300 $timestamp = strtotime("20230120171222"); |