Template:PageTitle: Difference between revisions
From Step Mods | Change The Game
mNo edit summary |
mNo edit summary |
||
Line 12: | Line 12: | ||
| skyrimle=Skyrim_flare.png | | skyrimle=Skyrim_flare.png | ||
| skyrimse=Skyrimse_flare.png | | skyrimse=Skyrimse_flare.png | ||
| #default=Delta_c.png }}|105px]]</div><div class="media-body align-self-center mt-1"><p class="pagetitle-title mb-0">{{{title}}}</p>{{#if:{{{subtitle|}}}|<p class="pagetitle-subtitle mt-n2 mb-1">{{{subtitle}}}</p>}}{{#if:{{{author|}}}|<p class="mb-0">''by: {{{author}}}''}} {{#if:{{{forumtid|}}}| {{!}} [https://stepmodifications.org/forum/topic/{{{forumtid}}}-- '''Forum Topic''']</p>|{{#if:{{{forumtid|}}}|<p class="mb-0">[https://stepmodifications.org/forum/topic/{{{forumtid}}}-- '''Forum Topic''']</p>}}}}</div></div>{{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | {{FULLPAGENAME}} | | <div class="container mt-n4 mb-4 pl-0" style="font-size:0.9rem"><i class="fas fa-chevron-left pr-2"></i> [[{{NAMESPACEE}}:{{ROOTPAGENAMEE}}|{{ROOTPAGENAME}}]]</div> | }}</includeonly><noinclude>__NOTOC__[[Category:Formatting Templates]][https://stepmodifications.org/forum/topic/15978-pagetitle/ '''Forum Topic'''] | | #default=Delta_c.png }}|105px]]</div><div class="media-body align-self-center mt-1"><p class="pagetitle-title mb-0">{{{title}}}</p>{{#if:{{{subtitle|}}}|<p class="pagetitle-subtitle mt-n2 mb-1">{{{subtitle}}}</p>}}{{#if:{{{author|}}}|<p class="mb-0">''by: {{{author}}}''}} {{#if:{{{forumtid|}}}| {{!}} [https://stepmodifications.org/forum/topic/{{{forumtid}}}-- '''Forum Topic''']</p>|{{#if:{{{forumtid|}}}|<p class="mb-0">[https://stepmodifications.org/forum/topic/{{{forumtid}}}-- '''Forum Topic''']</p>}}}}</div></div>{{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | {{FULLPAGENAME}} | | <div class="container mt-n4 mb-4 pl-0" style="font-size:0.9rem"><i class="fas fa-chevron-left pr-2"></i> [[{{NAMESPACEE}}:{{ROOTPAGENAMEE}}|{{ROOTPAGENAME}}]]</div> | }}</includeonly><noinclude>__NOTOC__[[Category:Formatting Templates]][[Category:Layout Templates]][https://stepmodifications.org/forum/topic/15978-pagetitle/ '''Forum Topic'''] | ||
==Purpose & Usage== | ==Purpose & Usage== |
Revision as of 16:27, September 17, 2021
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.
NOTE
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__NOTITLE__
behavior switch by default; therefore, it's not necessary to include it on the page when the PageTitle template is used.Available images
Required Parameters
title - Sets the title
- Values
- Default: n/a,
title=TitleHere
- Default: n/a,
Optional Parameters
logo - Displays a logo to the left of the content
- Values
- Default:
logo=delta
- delta
- fo3
- fo4
- fnv
- mo, mo2
- morrowind
- nomanssky
- oblivion
- nomanssky, nms
- skyrim, skyrimle
- skyrimse
- Default:
subtitle - Sets a subtitle
- Values
- Default: n/a,
subtitle=SubtitleHere
- Default: n/a,
author - Sets a subtitle
- Values
- Default: n/a,
author=Author(s)Here
- Default: n/a,
forumtid - Sets a forum link if a support forum exists for the page. The <uniqueForumID> is found in the forum topic's URL:
https://stepmodifications.org/forum/topic/14917-system-setup-guide/
- Values
- Default: n/a,
forumtid=14917
- Default: n/a,
Examples
Default Call
The simplest call returns defaults for the template.
- Code:
{{PageTitle|title=Title Here}}
- Result:
Example 01 (all options)
- Code:
{{PageTitle|logo=delta|title=Your Title Here|subtitle=Your subtitle text here|author= Team XYZ|forumtid=423}}
- Result:
Example 02 (alternate logo)
- Code:
{{PageTitle|logo=fo3|title=Your Title Here|subtitle=Your subtitle text here|author= Team XYZ|forumtid=423}}
- Result:
Example 03
No Subtitle
- Code:
{{PageTitle|logo=delta|title=Your Title Here|author= Team XYZ|forumtid=423}}
- Result:
Your Title Here
by: Team XYZ | Forum Topic