Template:PageTitle: Difference between revisions

From Step Mods | Change The Game
(Added Starfield to the template)
Line 16: Line 16:


==Purpose & Usage==
==Purpose & Usage==
Used at top of pages to include a standardized page-title header. Transclusion of this template onto a subpage will preserve the breadcrumb link to the parent 'super' page.
Used at top of pages to include a standardized page-title header. Transclusion of this template onto a subpage will preserve the breadcrumb link to the parent root page.
{{Alert|type=notice|text=EDITORS: This template will allow any image uploaded to the wiki. PM an administrator to add an image to this template if it does not exist. The format for image icons is 105+ px X 105+ px. This template also includes the <code><nowiki>__NOTITLE__</nowiki></code> behavior switch by default; therefore, it's not necessary to include it on the page when the PageTitle template is used.}}
{{Alert|type=notice|text=This template allows the use of any image uploaded to the wiki. DM an administrator to add an image to this template if it does not exist. The format for image icons is 105+ px X 105+ px. This template also includes the <code><nowiki>__NOTITLE__</nowiki></code> behavior switch by default; therefore, it's not necessary to include it on the page when the PageTitle template is used.}}
====Available images====
 
=====General=====
{{GallerySimple|id=1|width=95|img=File:Delta_c.png|caption=Default}}{{GallerySimple|id=1|width=95|img=File:Moicon.png}}
{{clear}}
=====Games=====
{{GallerySimple|id=1|width=95|img=File:Fo3_flare.png}}{{GallerySimple|id=1|width=95|img=File:Fo4_flare.png}}{{GallerySimple|id=1|width=95|img=File:Fnv_flare.png}}{{GallerySimple|id=1|width=95|img=File:Morrowind_flare.png}}{{GallerySimple|id=1|width=95|img=File:Nomanssky_flare.png}}{{GallerySimple|id=1|width=95|img=File:Oblivion_flare.png}}{{GallerySimple|id=1|width=95|img=File:Skyrim_flare.png}}{{GallerySimple|id=1|width=95|img=File:Skyrimse_flare.png}}{{GallerySimple|id=1|width=95|img=File:Starfield_flare.png}}
{{clear}}
=== Required Parameters ===
=== Required Parameters ===
<span class="salmontx">'''title'''</span> - Sets the title
<span class="salmontx">'''title'''</span> - Sets the title
Line 34: Line 28:
: '''Values'''
: '''Values'''
:: Default: <code>logo=delta</code>
:: Default: <code>logo=delta</code>
:* ''delta''
====General Logos====
:* fo3
: {{GallerySimple|id=1|width=95|img=File:Delta_c.png|caption=delta}}{{GallerySimple|id=1|width=95|img=File:Moicon.png|caption=mo, mo2}}
:* fo4
{{clear}}
:* fnv
====Game Logos====
:* mo, mo2
: {{GallerySimple|id=1|width=95|img=File:Fo3_flare.png|caption=fo3}}{{GallerySimple|id=1|width=95|img=File:Fo4_flare.png|caption=fo4}}{{GallerySimple|id=1|width=95|img=File:Fnv_flare.png|caption=fnv}}{{GallerySimple|id=1|width=95|img=File:Morrowind_flare.png|caption=morrowind}}{{GallerySimple|id=1|width=95|img=File:Nomanssky_flare.png|caption=nomanssky, nms}}{{GallerySimple|id=1|width=95|img=File:Oblivion_flare.png|caption=oblivion}}{{GallerySimple|id=1|width=95|img=File:Skyrim_flare.png|caption=skyrimle}}{{GallerySimple|id=1|width=95|img=File:Skyrimse_flare.png|caption=skyrimse}}{{GallerySimple|id=1|width=95|img=File:Starfield_flare.png|caption=starfield}}
:* morrowind
{{clear}}
:* nomanssky
:* oblivion
:* nomanssky, nms
:* skyrim, skyrimle
:* skyrimse
:* starfield


<span class="salmontx">'''subtitle'''</span> - Sets a subtitle
<span class="salmontx">'''subtitle'''</span> - Activates and sets a subtitle line displayed below the '''title'''
: '''Values'''
: '''Values'''
:: Default: n/a, <code>subtitle=''SubtitleHere''</code>
:: Default: n/a, <code>subtitle=''SubtitleHere''</code>


<span class="salmontx">'''author'''</span> - Sets a subtitle
<span class="salmontx">'''author'''</span> - Activates and sets an author line displayed below the '''title''' or '''subtitle'''
: '''Values'''
: '''Values'''
:: Default: n/a, <code>author=''Author(s)Here''</code>
:: Default: n/a, <code>author=''Author(s)Here''</code>


<span class="salmontx">'''forumtid'''</span> - Sets a forum link if a support forum exists for the page. The <uniqueForumID> is found in the forum topic's URL:<br>{{Fc|dim|<nowiki>https://stepmodifications.org/forum/topic/</nowiki>{{Fc|yellow|'''14917'''}}<nowiki>-system-setup-guide/</nowiki>}}
<span class="salmontx">'''forumtid'''</span> - Activates and sets a forum link for the page. The '''ForumTopicID''' is found in the topic's URL:<br>
: {{Fc|dim|<nowiki>https://stepmodifications.org/forum/topic/</nowiki>{{Fc|instruction|'''14917'''}}<nowiki>-system-setup-guide/</nowiki>}}
: '''Values'''
: '''Values'''
:: Default: n/a, <code>forumtid=''14917''</code>
:: Default: n/a, <code>forumtid=''14917''</code>

Revision as of 22:49, October 4, 2023

Forum Topic

Purpose & Usage[edit source]

Used at top of pages to include a standardized page-title header. Transclusion of this template onto a subpage will preserve the breadcrumb link to the parent root page.

Info-Logo.png

NOTE

This template allows the use of any image uploaded to the wiki. DM an administrator to add an image to this template if it does not exist. The format for image icons is 105+ px X 105+ px. This template also includes the __NOTITLE__ behavior switch by default; therefore, it's not necessary to include it on the page when the PageTitle template is used.

Required Parameters[edit source]

title - Sets the title

Values
Default: n/a, title=TitleHere

Optional Parameters[edit source]

logo - Displays a logo to the left of the content

Values
Default: logo=delta

General Logos[edit source]

Game Logos[edit source]

subtitle - Activates and sets a subtitle line displayed below the title

Values
Default: n/a, subtitle=SubtitleHere

author - Activates and sets an author line displayed below the title or subtitle

Values
Default: n/a, author=Author(s)Here

forumtid - Activates and sets a forum link for the page. The ForumTopicID is found in the topic's URL:

https://stepmodifications.org/forum/topic/14917-system-setup-guide/
Values
Default: n/a, forumtid=14917

Examples[edit source]

Default Call[edit source]

The simplest call returns defaults for the template.

Code: {{PageTitle|title=Title Here}}
Result:
Delta c.png

Title Here



Example 01 (all options)[edit source]

Code:
{{PageTitle|logo=delta|title=Your Title Here|subtitle=Your subtitle text here|author= Team XYZ|forumtid=423}}
Result:
Delta c.png

Your Title Here

Your subtitle text here

by: Team XYZ  | Forum Topic



Example 02 (alternate logo)[edit source]

Code:
{{PageTitle|logo=fo3|title=Your Title Here|subtitle=Your subtitle text here|author= Team XYZ|forumtid=423}}
Result:
Fo3 flare.png

Your Title Here

Your subtitle text here

by: Team XYZ  | Forum Topic



Example 03[edit source]

No Subtitle[edit source]

Code:
{{PageTitle|logo=delta|title=Your Title Here|author= Team XYZ|forumtid=423}}
Result:
Delta c.png

Your Title Here

by: Team XYZ  | Forum Topic