Template:PageTitle: Difference between revisions
From Step Mods | Change The Game
TechAngel85 (talk | contribs) No edit summary |
mNo edit summary |
||
Line 9: | Line 9: | ||
| skyrim=Skyrim_flare.png | | skyrim=Skyrim_flare.png | ||
| skyrimse=Skyrimse_flare.png | | skyrimse=Skyrimse_flare.png | ||
| #default=Delta_c.png }}|105px|class={{{classList|}}}]]</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:{{{ | | #default=Delta_c.png }}|105px|class={{{classList|}}}]]</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:{{{forum|}}}| {{!}} [https://stepmodifications.org/forum/topic/{{{forum}}}-- '''Forum Topic''']</p>|{{#if:{{{forum|}}}|<p class="mb-0">[https://stepmodifications.org/forum/topic/{{{forum}}}-- '''Forum Topic''']</p>}}}}</div></div>{{#if: {{{breadcrumb|}}} | <div class="container-fluid mt-n3 mb-3"><i class="fas fa-chevron-left pr-2"></i> [[{{NAMESPACEE}}:{{ROOTPAGENAMEE}}|{{{breadcrumbName|{{ROOTPAGENAME}}}}}]]</div> | }}</includeonly><noinclude>__NOTOC__[[Category:Formatting Templates]] | ||
==Purpose & Usage== | ==Purpose & Usage== | ||
Line 18: | Line 18: | ||
{{GallerySimple|id=1|width=105|img=File:Morrowind_flare.png}}{{GallerySimple|id=1|width=105|img=File:Nomanssky_flare.png}}{{GallerySimple|id=1|width=105|img=File:Oblivion_flare.png}}{{GallerySimple|id=1|width=105|img=File:Skyrim_flare.png}}{{GallerySimple|id=1|width=105|img=File:Skyrimse_flare.png}} | {{GallerySimple|id=1|width=105|img=File:Morrowind_flare.png}}{{GallerySimple|id=1|width=105|img=File:Nomanssky_flare.png}}{{GallerySimple|id=1|width=105|img=File:Oblivion_flare.png}}{{GallerySimple|id=1|width=105|img=File:Skyrim_flare.png}}{{GallerySimple|id=1|width=105|img=File:Skyrimse_flare.png}} | ||
{{clear}} | {{clear}} | ||
===Parameters | === Required Parameters === | ||
= | <span class="salmontx">'''title'''</span> - Sets the title | ||
: '''Values''' | |||
:: Default: n/a, <code>title=''TitleHere''</code> | |||
: ''' | |||
=== Optional Parameters === | |||
<span class="salmontx">'''logo'''</span> - Displays a logo to the left of the content | |||
: '''Values''' | |||
: ''' | :: Default: <code>logo=delta</code> | ||
:* fo3 | |||
:* fo4 | |||
: | :* fnv | ||
: | :* nomanssky | ||
:* skyrim | |||
:* skyrimse | |||
<span class="salmontx">'''classlist'''</span> - Provide a list of predefined, Bootstrap-friently CSS classes separated by a blank space to affect display of the image. | |||
: '''Values''' | |||
: ''' | :: Default: n/a, <code>classlist=''class1 class2 p-3 rounded-circle ...''</code> | ||
: | |||
: | |||
<span class="salmontx">'''subtitle'''</span> - Sets a subtitle | |||
: '''Values''' | |||
: ''' | :: Default: n/a, <code>subtitle=''SubtitleHere''</code> | ||
<span class="salmontx">'''author'''</span> - Sets a subtitle | |||
: '''Values''' | |||
: ''' | :: Default: n/a, <code>author=''Author(s)Here''</code> | ||
<span class="salmontx">'''forum'''</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|highlight|<nowiki>https://stepmodifications.org/forum/topic/</nowiki>{{fc|yellow|'''14917'''}}<nowiki>-system-setup-guide/</nowiki>}} | |||
: '''Values''' | |||
:: Default: n/a, <code>forum=''14917''</code> | |||
: ''' | ==Examples== | ||
===Default Call=== | |||
The simplest call returns defaults for the template. | |||
: '''Code:''' <code><nowiki>{{PageTitle|title=Title Here}}</nowiki></code> | |||
: '''Result:''' | |||
:: {{PageTitle|title=Title Here}} | |||
<hr> | |||
<hr> | |||
===Example 01 (all options w/default logo)=== | ===Example 01 (all options w/default logo)=== | ||
: '''Code:''' | : '''Code:''' | ||
Line 67: | Line 64: | ||
: '''Result:''' | : '''Result:''' | ||
:: {{PageTitle|logo=delta|title=Your Title Here|subtitle=Your subtitle text here|author= Team XYZ|forumtid=423}} | :: {{PageTitle|logo=delta|title=Your Title Here|subtitle=Your subtitle text here|author= Team XYZ|forumtid=423}} | ||
<hr> | <hr> | ||
< | <hr> | ||
===Example 02 (using switches)=== | ===Example 02 (using switches)=== | ||
Line 78: | Line 74: | ||
:: {{PageTitle|logo=fo3|title=Your Title Here|subtitle=Your subtitle text here|author= Team XYZ|forumtid=423}} | :: {{PageTitle|logo=fo3|title=Your Title Here|subtitle=Your subtitle text here|author= Team XYZ|forumtid=423}} | ||
:: {{PageTitle|logo=nomanssky|title=Your Title Here|subtitle=Your subtitle text here|author= Team XYZ|forumtid=423}} | :: {{PageTitle|logo=nomanssky|title=Your Title Here|subtitle=Your subtitle text here|author= Team XYZ|forumtid=423}} | ||
<hr> | <hr> | ||
< | <hr> | ||
===Example 03 === | ===Example 03 === | ||
Line 88: | Line 83: | ||
: '''Result:''' | : '''Result:''' | ||
:: {{PageTitle|logo=delta|title=Your Title Here|author= Team XYZ|forumtid=423}} | :: {{PageTitle|logo=delta|title=Your Title Here|author= Team XYZ|forumtid=423}} | ||
</noinclude> | </noinclude> |
Revision as of 14:10, August 2, 2021
Purpose & Usage
Used at top of pages to include a standardized page-title header. This template relies upon global CSS classes.
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
- fo3
- fo4
- fnv
- nomanssky
- skyrim
- skyrimse
- Default:
classlist - Provide a list of predefined, Bootstrap-friently CSS classes separated by a blank space to affect display of the image.
- Values
- Default: n/a,
classlist=class1 class2 p-3 rounded-circle ...
- Default: n/a,
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,
forum - 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,
forum=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 w/default logo)
- Code:
{{PageTitle|logo=delta|title=Your Title Here|subtitle=Your subtitle text here|author= Team XYZ|forumtid=423}}
- Result:
Example 02 (using switches)
- Code:
{{PageTitle|logo=fo3|title=Your Title Here|subtitle=Your subtitle text here|author= Team XYZ|forumtid=423}}
{{PageTitle|logo=nomanssky|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: