NoMansSky:Wiki Reference: Difference between revisions

From Step Mods | Change The Game
 
(155 intermediate revisions by 3 users not shown)
Line 1: Line 1:
__NOTITLE__
{{#set:
{{NMSPage|contentTitle=NMS Wiki Reference}}
NMSIndex=Wiki
{{TOC_right}}
}}{{PageTitle|logo=nomanssky|title=NMS Wiki Reference}}
{{NMSPage}}
{{TOC}}
== Introduction ==
== Introduction ==
This is a reference for the use of the wiki in regards to No Man's Sky (NMS). Below are helpful links, as well as, information regarding creating new pages.
This is a reference specific to No Man's Sky wiki to show examples of how to edit on the Step wiki, as well as, helpful information around text formatting and available templates.


== Creating New Pages ==
First for foremost, there is an invaluable reason that Step has put together to editing the wiki in general, as well as, some specifics. This should be the main informational reference when something comes up that is unfamiliar in regards to working on the wiki. Another excellent source for information is the MediaWiki website, though one must be verse in using search to find anything.
There are a few necessary steps when creating a new page. No worries, they're easy! It looks like a lot of steps below, but really there aren't. The information below is simply providing a lot of detail! But before users can create pages, lets ensure the page is being created with the correct structure. Continue below...
* [[Guide:Wiki_Maintenance|Step Wiki User Guide]]
* [https://www.mediawiki.org/wiki/MediaWiki MediaWiki Website]


=== Where to Create Pages ===
== Where to Create Pages ==
It's important to create pages with the correct URL structure to help maintain organization of the content. The first item that all No Man's Sky URL structures will begin with is the Namespace. Namespaces separate content and data structures on the wiki, and the '''NMS:''' namespace designates pages as No Man's Sky content. Thus, all pages created for NMS should be created within the No Man's Sky Namespace.  
It's important to create pages with the correct URL structure to help maintain organization of content. To identify NMS pages on the Step wiki, look for the NMS Namespace. All NMS pages must start with the same Namespace, '''NoMansSky''':
: <code>stepmodifications.org/wiki/NoMansSky:</code>


; Namespace: '''NMS:'''
Most pages can and should be created at the root of the namespace: <code>../wiki/NoMansSky:PageName</code>
: <code>wiki.step-project.com/NMS:</code>
: '''Example:''' <code>../wiki/NoMansSky:AMUMSS</code>


Next users should determine the type of content that is being added. Is it a tutorial? A reference for a file or file type? A modding tool? Something else?
Pages should only be made a subpage when the content is directly related to the root page: <code>../wiki/NoMansSky:PageName/SubPageName</code>
* '''Tutorials''' should use the following URL structure:
: '''Example:''' <code>../wiki/NoMansSky:AMUMSS/Making Combined Mods</code>
*: <code>wiki.step-project.com/NMS:Tutorials/PageName</code>
* '''References''' should use the following URL structure:
*: <code>wiki.step-project.com/NMS:Reference_Guides/PageName</code>
* '''Modding Tools''' should use the following URL structure:
*: <code>wiki.step-project.com/NMS:Modding_Tools/PageName</code>
* All content that doesn't fit into a specified structure above, can use the following:
*: <code>wiki.step-project.com/NMS:PageName</code>
*: This content can remain or be moved (sorted) later, when necessary.


=== Creating a Page ===
''{{AlertSmall|type=notice|text=Note that pages can be relocated later, when necessary. However, this adds to maintenance.}}''
To create a new page:
# Copy and paste the URL structure from above
# Change '''PageName'' to the name of page being added (must be unique/can't already exist), and hit Enter/Return on your keyboard.
# Users will be presented with a page stating the content doesn't exist and a couple options. Select, the '''edit this page''' link.
# Users will be taken to the editor for content creation. Continue to the steps below...
 
==== Opening Magic Words ====
Once at the editor, there are a few things that must be included for the NMS theme to work correctly. First, are the Magic Words that control specific wiki features. They are placed at the top of the document. There is one Magic Word that is required and the other is optional:


; <nowiki>__NOTITLE__</nowiki> {{CustomTag|color=red|tag=required}}
== Creating a New Page ==
: This one is required to maintain the theme. It prevents the page title from being displayed at the top of the page, which is auto-placed by default.
{{Sidebox|float=right|title=Side Notes|text=&nbsp;
==== Magic Words ====
; <nowiki>__NOTITLE__</nowiki>
: Don't use this Magic Word. It is already included in the PageTitle template.


; <nowiki>__NOTOC__</nowiki> {{CustomTag|color=#DDD|tag=optional}}
; <nowiki>__NOTOC__</nowiki>
: This Magic Word is optional. Including it will disable the Table of Contents from displaying on the page, which is auto-placed when at least 4 headers are used.
: This Magic Word is optional. Including it will disable the Table of Contents from displaying on the page, which is auto-placed when at least 4 headers are used.


<pre>__NOTITLE__</pre>
==== Controlling the TOC ====
There is one control parameter for this template, '''limit''', which controls the headings depth displayed on the TOC.<br>Code: <code><nowiki>{{TOC|limit=#}}</nowiki></code>}}


=== (Step 2) Opening Template ===
To create a new page:
For the time being, the "theme" for NMS is managed and implemented using templates. There are two templates that must be included. The first is the opening template, which places the top half of the theme.
# Copy and paste one of the URL structures from above
# Change '''PageName''' to the name of page being added (must be unique/can't already exist), and hit Enter/Return on your keyboard.
; [[Template:NMSPage|Opening template]] {{CustomTag|color=red|tag=required}}
# Users will be presented with a page stating the content doesn't exist and a couple options. Select, the '''edit this page''' link.
: Code: <code><nowiki>{{NMSPage}}</nowiki></code>
# Users will be taken to the editor for content creation.
: This template must be included at the top of the page following the opening Magic Words


This template has one control parameter, '''contentTitle''', which places the title of the content/page within the themed headers at the top. Code: <code><nowiki>{{NMSPage|contentTitle=My Super Awesome Guide!}}</nowiki></code><br>
This additional parameter is not required, but is highly recommended! If it's not included, it will autofill with the PageName Magic Word.


Once at the editor, there are a few things that must be included for the NMS theme to work correctly.<br>
Here is the template for a standard page that you can copy/paste in the editor of your new page :
<pre>
<pre>
__NOTITLE__
<nowiki>{{PageTitle|logo=nomanssky|title=Modding Tools|subtitle=optional|author=optional|forumid=optional}}</nowiki>
<nowiki>{{NMSPage}}</nowiki>
<nowiki>{{NMSPage}}</nowiki>
<nowiki>{{TOC}}</nowiki>
<nowiki>[[Catergory:CategoryName]]</nowiki>
<nowiki>== HeaderText ==</nowiki>
Page content here...
</pre>
</pre>


=== (Step 3) Content ===
Here are more informations about each line :
==== Controlling the TOC ====
* PageTitle Template places the standard page title element. The "optional" parameters do not need to be included, but can be.
Users can float the Table of Contents (TOC) to the right using a template. Code: <code><nowiki>{{TOC_right}}</nowiki></code>
* NMSPage Template places the NMS navbar below the page title.
* Table of Contents (TOC): if the TOC isn't desired, skip it and ensure the '''<nowiki>__NOTOC__</nowiki>''' Magic Word is included, see Side Notes.
* Categories: add appropriated categories so that page will be sorted for users. See the [[NoMansSky:Category_Reference|Category Reference]] for a list a available categories.
* Content: add the content below everything else. It's highly recommended to begin any content with a level two heading: <code><nowiki>== HeaderText ==</nowiki></code>
 
==Linking Pages ==
Pages can use internal or external links.


There is one control parameter for this template, '''limit''', which controls the headings depth displayed on the TOC. Code: <code><nowiki>{{TOC right|limit=#}}</nowiki></code>
=== Internal Links ===
To link to an internal wiki page and display it in the current tab, use the follow syntax:
: Note the Magic Word '''<nowiki>{{NAMESPACE}}</nowiki>''' ([https://www.mediawiki.org/wiki/Help:Magic_words see MediaWiki]). This Word fills in the "NoMansSky" portion of the local URL, called the ''Namespace''. Use this rather than the actually typing out "NoMansSky" as it will auto-update the link with any changes to that internal portion of the URL.
:: '''Example:''' <code><nowiki>[[{{NAMESPACE}}:Tutorials|Show Tutorials in the current tab]]</nowiki></code>
::: '''Result:''' [[{{NAMESPACE}}:Tutorials|Show Tutorials in the current tab]]
:: '''Example:''' <code><nowiki>[[{{NAMESPACE}}:Game_Structure/METADATA/GAMESTATE|GAMESTATE Folder]]</nowiki></code>
::: '''Result:''' [[{{NAMESPACE}}:Game_Structure/METADATA/GAMESTATE|GAMESTATE Folder]]


<pre>
=== External Links ===
__NOTITLE__
To link a page in a new tab, use single brackets, the full url, a space and the name displayed :<br>
<nowiki>{{NMSPage}}</nowiki>
:: '''Example:''' <code><nowiki>[https://stepmodifications.org/wiki/NoMansSky:Tutorials Show Tutorials in a new tab]</nowiki></code><br>
{{TOC_right|limit=2}}
::: '''Result:''' [https://stepmodifications.org/wiki/NoMansSky:Tutorials Show Tutorials in a new tab]
</pre>


Users can now fill the page with the content they desire. However, is it highly recommended to begin the content with a level two heading: <code><nowiki>== HeaderText ==</nowiki></code>
=== Page Anchor Links (links to page sections) ===
To link to a header within a page, simply add <code>#</code> to the end of the page URL followed by the header title (case sensitive!); replacing spaces with <code>_</code>.
:: '''Example:''' <code><nowiki>[[{{NAMESPACE}}:Game_Structure#FONTS|Link to Fonts heading]]</nowiki></code>
::: '''Result:''' [[{{NAMESPACE}}:Game_Structure#FONTS|Link to Fonts heading]]


<pre>
== Content Formatting ==
__NOTITLE__
==== General formatting rules ====
<nowiki>{{NMSPage}}</nowiki>
First point of reference is the [[Guide:Wiki_Maintenance|Step Wiki User Guide]] where we explain a great about the use of the Step Wiki, including how to format pages, the use of many of our templates, etc. Second is the [https://www.mediawiki.org/wiki/Help:Formatting general wiki formatting document] is found on the MediaWiki page.
<nowiki>{{TOC_right|limit=2}}</nowiki>
<nowiki>== HeaderText ==</nowiki>
</pre>


=== (Step 4) Closing Template ===
==== Avoid auto parsing ====
The second required template is the closing template, which places the bottom half of the theme. Without it, the theme will be broken.
Sometimes the wiki will parse text into code that isn't desired to be parsed. This can be overcome a few different ways.
   
   
; [[Template:NMSPageClose|Closing template]] {{CustomTag|color=red|tag=required}}
# No parsing, standard text : use '''<nowiki><nowiki></nowiki></nowiki>''' tags.
: Code: <code><nowiki>{{NMSPageClose}}</nowiki></code>
#: nowiki tags will tell the parser to output whatever is between the tags as plain text. This is handy to print out markup on the page.
: This template must be included at the bottom of the page following the user's content
#: '''Example:''' <code><nowiki><nowiki><div style="color:#EEE;">My text is colored #EEE!</div></nowiki></nowiki></code>
 
#: '''Result:''' <nowiki><div style="color:#EEE;">My text is colored #EEE!</div></nowiki>
#:
# No parsing, citation of a single line of text : Use '''<nowiki><code>TextHere</code></nowiki>''' tags.
#: Code tags will envelop text within preformatted text.
#: '''Example:''' <code><nowiki><code>TextHere</code></nowiki></code>
#: '''Result:''' <code>TextHere</code>
#:
# No parsing, citation of multiple lines of text, no markups : Use '''<nowiki><pre></pre></nowiki>''' tags.
#: Preformatted tags will block out the text between them on the page, exactly as inputted (including spacing).
#: '''Result:'''
<pre>
<pre>
__NOTITLE__
            <Property value="TkSceneNodeAttributeData.xml">
<nowiki>{{NMSPage}}</nowiki>
              <Property name="Name" value="MATERIAL" />
<nowiki>{{TOC_right|limit=2}}</nowiki>
              <Property name="AltID" value="" />
<nowiki>== HeaderText ==</nowiki>
              <Property name="Value" value="MATERIALS/LIGHT.MATERIAL.MBIN" />
 
            </Property>
User content...
 
<nowiki>{{NMSPageClose}}</nowiki>
</pre>
</pre>
# No parsing, citation of multiple lines of text, with markups : Just be sure each of your lines start with a space.
#: Any line of text starting with a space will be indented as copied and you keep any markup or content formatting ability.
#: '''Result:'''
            <Property value="TkSceneNodeAttributeData.xml">
              <Property name="{{fc|#FFF|Name}}" value="'''MATERIAL'''" />
              <Property name="{{fc|#FFF|AltID}}" value="" />
              <Property name="{{fc|#FFF|Value}}" value="''MATERIALS/LIGHT.MATERIAL.MBIN''" />
            </Property>


== Helpful Links ==
* [https://www.mediawiki.org/wiki/Help:Formatting Content Formatting]


== Useful Templates ==
== Useful Templates ==


=== Images ===
=== Images ===
Images can be included in a multitude of way. For all the default options see [https://www.mediawiki.org/wiki/Help:Images this document]. Else, users can include them with a template that creates a stylized instance of an image on the page. This template is explained below:
Images can be included in a multitude of way as [https://www.mediawiki.org/wiki/Help:Images extensively described here]. <br>
But users can also easily include them with a template that creates a stylized instance of an image on the page.
 
 
; GallerySimple Template :
: Code: <code><nowiki>{{GallerySimple|id=galleryID|width=250|img=(Image:UploadedImage)|caption=UserText}} {{clear}}</nowiki></code>
: or
: Code: <code><nowiki>{{GallerySimple|id=galleryID|width=250|img=(ImageURL)|caption=UserText}} {{clear}}</nowiki></code>
 
This template has several parameters that can be set. See [https://stepmodifications.org/wiki/Template:GallerySimple this page] to learn what they are and what they accept.


; GallerySimple
: The '''img''' parameter accepts URLs (use "direct links"), however, it's recommended to upload the images to the wiki. To do so:
: Code: <code><nowiki>{{GallerySimple|id=galleryID|width=250|img=(Image:UploadedImage) or (ImageURL)|caption=UserText}} {{clear}}</nowiki></code>
:# On the top navigation bar, hover over '''TOOLBOX''' and select '''UPLOAD FILE'''.
: This template has several parameters that can be set. See [https://wiki.step-project.com/Template:GallerySimple this page] to learn what they are and what they accept.
: The '''img''' parameter accepts URLs (use "direct links"), however, it's recommended to upload the images to the wiki To do so:
:# On the top navigation bar, hover over '''TOOLBOX''' and select {{ui|UPLOAD FILE}}.
:# Once uploaded, use the image name from the browser's address bar (e.g. <s>wiki.step-project.com/File:</s>'''Explorer_2017-08-17_15-49-40.png''' )
:# Once uploaded, use the image name from the browser's address bar (e.g. <s>wiki.step-project.com/File:</s>'''Explorer_2017-08-17_15-49-40.png''' )
: '''Example - Uploaded Image:''' <code><nowiki>{{GallerySimple|id=ImageSet1|width=144|img=Image:Explorer_2017-08-17_15-49-40.png|caption=Do this now!}} {{clear}}</nowiki></code>
 
: '''Example - URL:''' <code><nowiki>{{GallerySimple|id=ImageSet1|width=144|img=https://i.postimg.cc/4yR0dMSR/SWTOR-Guide-Logo.png|caption=Star Wars!<br>wait...wrong wiki...}} {{clear}}</nowiki></code>
: '''Example code for an Uploaded Image:'''
:: <code><nowiki>{{GallerySimple|id=ImageSet1|width=144|img=Image:Explorer_2017-08-17_15-49-40.png|caption=Do this now!}} {{clear}}</nowiki></code>
: '''Example code for an URL:'''
:: <code><nowiki>{{GallerySimple|id=ImageSet1|width=144|img=https://i.postimg.cc/4yR0dMSR/SWTOR-Guide-Logo.png|caption=Star Wars!<br>wait...wrong wiki...}} {{clear}}</nowiki></code>
{{GallerySimple|id=ImageSet1|width=144|img=Image:Explorer_2017-08-17_15-49-40.png|caption=Do this now!}}
{{GallerySimple|id=ImageSet1|width=144|img=Image:Explorer_2017-08-17_15-49-40.png|caption=Do this now!}}
{{GallerySimple|id=ImageSet2|width=250|img=https://i.postimg.cc/4yR0dMSR/SWTOR-Guide-Logo.png|caption=Star Wars!<br>wait...wrong wiki...}} {{clear}}
{{GallerySimple|id=ImageSet2|width=250|img=https://i.postimg.cc/4yR0dMSR/SWTOR-Guide-Logo.png|caption=Star Wars!<br>wait...wrong wiki...}} {{clear}}


=== Custom Tag ===
=== Custom colors ===
When you need to highlight some text, it could be handy to only change its color.
This can be done with the fc template :
: Code: <code><nowiki>{{fc|YourColor|YourText}}</nowiki></code>
: The color variables accepts any [[:Template:Fc|keyword]] that is available.
 
Actually, the 2 main highlight color used on the NMS wiki are :
* {{fc|highlight|highlight}}
* {{fc|red|red}}
<br>
 
=== Custom Tags ===
This template creates stylized, superscript text. Its use varies.
This template creates stylized, superscript text. Its use varies.


; Custom Tag
: Code: <code><nowiki>{{CustomTag|color=ColorHere|tag=UserTextHere}}</nowiki></code>
: Code: <code><nowiki>{{CustomTag|color=ColorHere|tag=UserTextHere}}</nowiki></code>
: The color will accept any [https://www.w3schools.com/cssref/pr_text_color.asp CSS-accepted value] (e.g. #FFF, red, RGB(255,255,255) )
: The color variable accepts any [https://www.w3schools.com/cssref/pr_text_color.asp CSS-accepted value] (e.g. #FFF, #FFFFFF, white, RGB(255,255,255)
This is normal text. {{CustomTag|color=RGB(255,255,255)|tag=UserTextHere}}<br>
 
 
; Exemples
This is some info {{CustomTag|color=RGB(255,255,255)|tag=Info!}}
: Code: <code><nowiki>{{CustomTag|color=RGB(255,255,255)|tag=Info!}}</nowiki></code>
 
How about a warning next time! {{CustomTag|color=red|tag=Warning}}<br>
How about a warning next time! {{CustomTag|color=red|tag=Warning}}<br>
: Code: <code><nowiki>{{CustomTag|color=red|tag=Warning}}</nowiki></code>
Is this thing new or old? {{CustomTag|color=#b1a9f1|tag=New!}}
Is this thing new or old? {{CustomTag|color=#b1a9f1|tag=New!}}
: Code: <code><nowiki>{{CustomTag|color=#b1a9f1|tag=New!}}</nowiki></code>
<br>
=== Lists ===
You can use at least 2 kind of lists :
; Dots
: If you want a list where each line is preceded with a dot, use a * before your lines :
: Code: <code><nowiki>* first line</nowiki></code>
: Code: <code><nowiki>* second line</nowiki></code>
* first line
* second line
; Numbers
: To make each line preceded with an incremented number, use a # before your lines
: Code: <code><nowiki># first line</nowiki></code>
: Code: <code><nowiki># second line</nowiki></code>
# first line
# second line


=== Notices ===
=== Notices ===
There are two templates here. Both display notice blocks on page. The ''Notice'' template will display a large notice centered on the page. The ''Notice Small'' displays a smaller notice and can be used in lists.
The ''Notice'' templates will display some useful information.  
 
; Small Notice
: Code: <code><nowiki>{{AlertSmall|type=notice|text=This is QUITE useful}}</nowiki></code>
{{AlertSmall|type=notice|text=This is QUITE useful}}
<br>
 
; Notice
; Notice
: Code: <code><nowiki>{{Notice|text=UserTextHere}}</nowiki></code>
: Code: <code><nowiki>{{alert|type=notice|text=UserTextHere}}</nowiki></code>
{{Notice|text=UserTextHere}}
{{alert|type=notice|text=This is VERY useful}}


; Notice Small
=== Warnings ===
: Code: <code><nowiki>{{Notice Small|text=UserTextHere}}</nowiki></code>
For very important notices, you can use the warning templates
{{Notice Small|text=UserTextHere}}
 
; Small Warning
: Code: <code><nowiki>{{AlertSmall‏‎|type=warning|text=This is QUITE important !}}</nowiki></code>
{{AlertSmall‏‎|type=warning|text=This is QUITE important !}}
<br>
 
; Warning
: Code: <code><nowiki>{{alert|type=warning|text=UserTextHere}}</nowiki></code>
{{alert|type=warning|text=This is VERY important}}
 
=== Info boxes ===
 
Info boxes can be created using a simple template like this one :
<pre>
{{InfoboxNMSRef
|float = left
|title = GCSPACESHIPGLOBALS.GLOBAL
|suffix = MBIN
|templateName =
|directory = /
|knowledge = partial
|summary = Handles spaceship settings.
}}
{{clear}}
</pre>


{{NMSPageClose}}
{{InfoboxNMSRef
|float = left
|title = GCSPACESHIPGLOBALS.GLOBAL
|suffix = MBIN
|templateName =
|directory = /
|knowledge = partial
|summary = Handles spaceship settings.
}}
{{clear}}

Latest revision as of 18:05, January 10, 2023

Nomanssky flare.png

NMS Wiki Reference

Introduction[edit | edit source]

This is a reference specific to No Man's Sky wiki to show examples of how to edit on the Step wiki, as well as, helpful information around text formatting and available templates.

First for foremost, there is an invaluable reason that Step has put together to editing the wiki in general, as well as, some specifics. This should be the main informational reference when something comes up that is unfamiliar in regards to working on the wiki. Another excellent source for information is the MediaWiki website, though one must be verse in using search to find anything.

Where to Create Pages[edit | edit source]

It's important to create pages with the correct URL structure to help maintain organization of content. To identify NMS pages on the Step wiki, look for the NMS Namespace. All NMS pages must start with the same Namespace, NoMansSky:

stepmodifications.org/wiki/NoMansSky:

Most pages can and should be created at the root of the namespace: ../wiki/NoMansSky:PageName

Example: ../wiki/NoMansSky:AMUMSS

Pages should only be made a subpage when the content is directly related to the root page: ../wiki/NoMansSky:PageName/SubPageName

Example: ../wiki/NoMansSky:AMUMSS/Making Combined Mods
Info-Logo.png
NOTE:
Note that pages can be relocated later, when necessary. However, this adds to maintenance.

Creating a New Page[edit | edit source]

To create a new page:

  1. Copy and paste one of the URL structures from above
  2. Change PageName to the name of page being added (must be unique/can't already exist), and hit Enter/Return on your keyboard.
  3. Users will be presented with a page stating the content doesn't exist and a couple options. Select, the edit this page link.
  4. Users will be taken to the editor for content creation.


Once at the editor, there are a few things that must be included for the NMS theme to work correctly.
Here is the template for a standard page that you can copy/paste in the editor of your new page :

{{PageTitle|logo=nomanssky|title=Modding Tools|subtitle=optional|author=optional|forumid=optional}}
{{NMSPage}}
{{TOC}}
[[Catergory:CategoryName]]
== HeaderText ==

Page content here...

Here are more informations about each line :

  • PageTitle Template places the standard page title element. The "optional" parameters do not need to be included, but can be.
  • NMSPage Template places the NMS navbar below the page title.
  • Table of Contents (TOC): if the TOC isn't desired, skip it and ensure the __NOTOC__ Magic Word is included, see Side Notes.
  • Categories: add appropriated categories so that page will be sorted for users. See the Category Reference for a list a available categories.
  • Content: add the content below everything else. It's highly recommended to begin any content with a level two heading: == HeaderText ==

Linking Pages[edit | edit source]

Pages can use internal or external links.

Internal Links[edit | edit source]

To link to an internal wiki page and display it in the current tab, use the follow syntax:

Note the Magic Word {{NAMESPACE}} (see MediaWiki). This Word fills in the "NoMansSky" portion of the local URL, called the Namespace. Use this rather than the actually typing out "NoMansSky" as it will auto-update the link with any changes to that internal portion of the URL.
Example: [[{{NAMESPACE}}:Tutorials|Show Tutorials in the current tab]]
Result: Show Tutorials in the current tab
Example: [[{{NAMESPACE}}:Game_Structure/METADATA/GAMESTATE|GAMESTATE Folder]]
Result: GAMESTATE Folder

External Links[edit | edit source]

To link a page in a new tab, use single brackets, the full url, a space and the name displayed :

Example: [https://stepmodifications.org/wiki/NoMansSky:Tutorials Show Tutorials in a new tab]
Result: Show Tutorials in a new tab

Page Anchor Links (links to page sections)[edit | edit source]

To link to a header within a page, simply add # to the end of the page URL followed by the header title (case sensitive!); replacing spaces with _.

Example: [[{{NAMESPACE}}:Game_Structure#FONTS|Link to Fonts heading]]
Result: Link to Fonts heading

Content Formatting[edit | edit source]

General formatting rules[edit | edit source]

First point of reference is the Step Wiki User Guide where we explain a great about the use of the Step Wiki, including how to format pages, the use of many of our templates, etc. Second is the general wiki formatting document is found on the MediaWiki page.

Avoid auto parsing[edit | edit source]

Sometimes the wiki will parse text into code that isn't desired to be parsed. This can be overcome a few different ways.

  1. No parsing, standard text : use <nowiki></nowiki> tags.
    nowiki tags will tell the parser to output whatever is between the tags as plain text. This is handy to print out markup on the page.
    Example: <nowiki><div style="color:#EEE;">My text is colored #EEE!</div></nowiki>
    Result: <div style="color:#EEE;">My text is colored #EEE!</div>
  2. No parsing, citation of a single line of text : Use <code>TextHere</code> tags.
    Code tags will envelop text within preformatted text.
    Example: <code>TextHere</code>
    Result: TextHere
  3. No parsing, citation of multiple lines of text, no markups : Use <pre></pre> tags.
    Preformatted tags will block out the text between them on the page, exactly as inputted (including spacing).
    Result:
            <Property value="TkSceneNodeAttributeData.xml">
              <Property name="Name" value="MATERIAL" />
              <Property name="AltID" value="" />
              <Property name="Value" value="MATERIALS/LIGHT.MATERIAL.MBIN" />
            </Property>
  1. No parsing, citation of multiple lines of text, with markups : Just be sure each of your lines start with a space.
    Any line of text starting with a space will be indented as copied and you keep any markup or content formatting ability.
    Result:
           <Property value="TkSceneNodeAttributeData.xml">
             <Property name="Name" value="MATERIAL" />
             <Property name="AltID" value="" />
             <Property name="Value" value="MATERIALS/LIGHT.MATERIAL.MBIN" />
           </Property>


Useful Templates[edit | edit source]

Images[edit | edit source]

Images can be included in a multitude of way as extensively described here.
But users can also easily include them with a template that creates a stylized instance of an image on the page.


GallerySimple Template
Code: {{GallerySimple|id=galleryID|width=250|img=(Image:UploadedImage)|caption=UserText}} {{clear}}
or
Code: {{GallerySimple|id=galleryID|width=250|img=(ImageURL)|caption=UserText}} {{clear}}

This template has several parameters that can be set. See this page to learn what they are and what they accept.

The img parameter accepts URLs (use "direct links"), however, it's recommended to upload the images to the wiki. To do so:
  1. On the top navigation bar, hover over TOOLBOX and select UPLOAD FILE.
  2. Once uploaded, use the image name from the browser's address bar (e.g. wiki.step-project.com/File:Explorer_2017-08-17_15-49-40.png )
Example code for an Uploaded Image:
{{GallerySimple|id=ImageSet1|width=144|img=Image:Explorer_2017-08-17_15-49-40.png|caption=Do this now!}} {{clear}}
Example code for an URL:
{{GallerySimple|id=ImageSet1|width=144|img=https://i.postimg.cc/4yR0dMSR/SWTOR-Guide-Logo.png|caption=Star Wars!<br>wait...wrong wiki...}} {{clear}}

Custom colors[edit | edit source]

When you need to highlight some text, it could be handy to only change its color. This can be done with the fc template :

Code: {{fc|YourColor|YourText}}
The color variables accepts any keyword that is available.

Actually, the 2 main highlight color used on the NMS wiki are :

  • highlight
  • red


Custom Tags[edit | edit source]

This template creates stylized, superscript text. Its use varies.

Code: {{CustomTag|color=ColorHere|tag=UserTextHere}}
The color variable accepts any CSS-accepted value (e.g. #FFF, #FFFFFF, white, RGB(255,255,255)


Exemples

This is some info Info!

Code: {{CustomTag|color=RGB(255,255,255)|tag=Info!}}

How about a warning next time! Warning

Code: {{CustomTag|color=red|tag=Warning}}

Is this thing new or old? New!

Code: {{CustomTag|color=#b1a9f1|tag=New!}}


Lists[edit | edit source]

You can use at least 2 kind of lists :

Dots
If you want a list where each line is preceded with a dot, use a * before your lines :
Code: * first line
Code: * second line
  • first line
  • second line


Numbers
To make each line preceded with an incremented number, use a # before your lines
Code: # first line
Code: # second line
  1. first line
  2. second line

Notices[edit | edit source]

The Notice templates will display some useful information.

Small Notice
Code: {{AlertSmall|type=notice|text=This is QUITE useful}}
Info-Logo.png
NOTE:
This is QUITE useful


Notice
Code: {{alert|type=notice|text=UserTextHere}}
Info-Logo.png

NOTE

This is VERY useful

Warnings[edit | edit source]

For very important notices, you can use the warning templates

Small Warning
Code: {{AlertSmall‏‎|type=warning|text=This is QUITE important !}}
Warning-Logo.png
WARNING:
This is QUITE important !


Warning
Code: {{alert|type=warning|text=UserTextHere}}
Warning-Logo.png

WARNING

This is VERY important

Info boxes[edit | edit source]

Info boxes can be created using a simple template like this one :

 {{InfoboxNMSRef
 |float = left
 |title = GCSPACESHIPGLOBALS.GLOBAL
 |suffix = MBIN
 |templateName = 
 |directory = /
 |knowledge = partial
 |summary = Handles spaceship settings.
 }}
{{clear}}
GCSPACESHIPGLOBALS.GLOBAL
File Suffix: MBIN
Template Name:
Directory: /
Knowledge State: Partially Understood
Summary: Handles spaceship settings.