NoMansSky:Wiki Reference: Difference between revisions
TechAngel85 (talk | contribs) |
TechAngel85 (talk | contribs) |
||
Line 79: | Line 79: | ||
<nowiki>{{NMSPageClose}}</nowiki> | <nowiki>{{NMSPageClose}}</nowiki> | ||
</pre> | </pre> | ||
== Useful Templates == | |||
=== 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. | |||
; Notice | |||
: Code: <code><nowiki>{{Notice|text=UserTextHere}}</nowiki></code> | |||
{{Notice|text=UserTextHere}} | |||
; Notice Small | |||
: Code: <code><nowiki>{{Notice Small|text=UserTextHere}}</nowiki></code> | |||
{{Notice Small|text=UserTextHere}} | |||
=== Custom Tag === | |||
This template creates stylized, superscript text. Its use varies. | |||
; Custom Tag | |||
: 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) ) | |||
This is normal text. {{CustomTag|color=RGB(255,255,255)|tag=UserTextHere}}<br> | |||
How about a warning next time! {{CustomTag|color=red|tag=Warning}}<br> | |||
Is this thing new or old? {{CustomTag|color=#b1a9f1|tag=New!}} | |||
{{NMSPageClose}} | {{NMSPageClose}} |
Revision as of 04:50, July 28, 2020
Introduction
This is a reference for the use of the wiki in regards to No Man's Sky (NMS).
Helpful Links
Creating New Pages
There are a few necessary steps when creating a new page. No worries, they're easy! But before that, ensure the page is being created with the correct structure.
Where to Create Pages
- Namespace
- All pages created for No Man's Sky should be created within the No Man's Sky namespace. Namespaces separate content on the wiki, and the NMS: namespace designates it as No Man's Sky content.
wiki.step-project.com/NMS:
(Step 1) Opening Magic Words
Several Magic Words are available for use that control specific wiki features. They are placed at the top of the document. The following are Magic Words are for consideration:
- __NOTITLE__ required
- This Magic Word is required to maintain the theme. It will remove the page title from the wiki page, which is auto-placed by default.
- __NOTOC__
- 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 on the page.
__NOTITLE__
(Step 2) Opening Template
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.
- Opening template required
- Code:
{{NMSPage}}
- 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: {{NMSPage|contentTitle=My Super Awesome Guide!}}
This additional parameter is not required, but is highly recommended! If it's not included, it will autofill with the PageName Magic Word.
__NOTITLE__ {{NMSPage}}
(Step 3) Content
Controlling the TOC
Users can float the Table of Contents (TOC) to the right using a template. Code: {{TOC_right}}
There is one control parameter for this template, limit, which controls the headings depth displayed on the TOC. Code: {{TOC right|limit=#}}
__NOTITLE__ {{NMSPage}} {{TOC_right|limit=2}}
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: == HeaderText ==
__NOTITLE__ {{NMSPage}} {{TOC_right|limit=2}} == HeaderText ==
(Step 4) Closing Template
The second required template is the closing template, which places the bottom half of the theme. Without it, the theme will be broken.
- Closing template required
- Code:
{{NMSPageClose}}
- This template must be included at the bottom of the page following the user's content
__NOTITLE__ {{NMSPage}} {{TOC_right|limit=2}} == HeaderText == User content... {{NMSPageClose}}
Useful Templates
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.
- Notice
- Code:
{{Notice|text=UserTextHere}}
- Notice Small
- Code:
{{Notice Small|text=UserTextHere}}
Custom Tag
This template creates stylized, superscript text. Its use varies.
- Custom Tag
- Code:
{{CustomTag|color=ColorHere|tag=UserTextHere}}
- The color will accept any CSS-accepted value (e.g. #FFF, red, RGB(255,255,255) )
This is normal text. UserTextHere
How about a warning next time! Warning
Is this thing new or old? New!