Template:PageTitle: Difference between revisions

From Step Mods | Change The Game
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:{{{forum|}}}|&nbsp;{{!}}&nbsp;[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 mt-n4 mb-4 pl-0" style="font-size:0.9rem"><i class="fas fa-chevron-left pr-2"></i> [[{{NAMESPACEE}}:{{ROOTPAGENAMEE}}|{{{breadcrumbName|{{ROOTPAGENAME}}}}}]]</div> | }}</includeonly><noinclude>__NOTOC__[[Category:Formatting Templates]]
| #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:{{{forumtid|}}}|&nbsp;{{!}}&nbsp;[https://stepmodifications.org/forum/topic/{{{forumtid}}}-- '''Forum Topic ID''']</p>|{{#if:{{{forumtid|}}}|<p class="mb-0">[https://stepmodifications.org/forum/topic/{{{forumtid}}}-- '''Forum Topic ID''']</p>}}}}</div></div>{{#if: {{{breadcrumb|}}} | <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}}|{{{breadcrumbName|{{ROOTPAGENAME}}}}}]]</div> | }}</includeonly><noinclude>__NOTOC__[[Category:Formatting Templates]]


==Purpose & Usage==
==Purpose & Usage==
Line 46: Line 46:
:: Default: n/a, <code>author=''Author(s)Here''</code>
:: 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|dim|<nowiki>https://stepmodifications.org/forum/topic/</nowiki>{{Fc|yellow|'''14917'''}}<nowiki>-system-setup-guide/</nowiki>}}
<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>}}
: '''Values'''
: '''Values'''
:: Default: n/a, <code>forum=''14917''</code>
:: Default: n/a, <code>forumtid=''14917''</code>


<span class="salmontx">'''breadcrumb'''</span> - Use on subpages to add a link to the parent 'super' page.
<span class="salmontx">'''breadcrumb'''</span> - Use on subpages to add a link to the parent 'super' page.
Line 65: Line 65:
===Example 01 (all options)===
===Example 01 (all options)===
: '''Code:'''
: '''Code:'''
:: <code><nowiki>{{PageTitle|logo=delta|title=Your Title Here|subtitle=Your subtitle text here|author= Team XYZ|forum=423}}</nowiki></code>
:: <code><nowiki>{{PageTitle|logo=delta|title=Your Title Here|subtitle=Your subtitle text here|author= Team XYZ|forumtid=423}}</nowiki></code>
: '''Result:'''
: '''Result:'''
:: {{PageTitle|logo=delta|title=Your Title Here|subtitle=Your subtitle text here|author= Team XYZ|forum=423}}
:: {{PageTitle|logo=delta|title=Your Title Here|subtitle=Your subtitle text here|author= Team XYZ|forumtid=423}}
<hr>
<hr>
<hr>
<hr>
Line 73: Line 73:
===Example 02 (alternate logo) ===
===Example 02 (alternate logo) ===
: '''Code:'''
: '''Code:'''
:: <code><nowiki>{{PageTitle|logo=fo3|title=Your Title Here|subtitle=Your subtitle text here|author= Team XYZ|forum=423}}</nowiki></code>
:: <code><nowiki>{{PageTitle|logo=fo3|title=Your Title Here|subtitle=Your subtitle text here|author= Team XYZ|forumtid=423}}</nowiki></code>
: '''Result:'''
: '''Result:'''
:: {{PageTitle|logo=fo3|title=Your Title Here|subtitle=Your subtitle text here|author= Team XYZ|forum=423}}
:: {{PageTitle|logo=fo3|title=Your Title Here|subtitle=Your subtitle text here|author= Team XYZ|forumtid=423}}
<hr>
<hr>
<hr>
<hr>
Line 82: Line 82:
==== No Subtitle ====
==== No Subtitle ====
: '''Code:'''
: '''Code:'''
:: <code><nowiki>{{PageTitle|logo=delta|title=Your Title Here|author= Team XYZ|forum=423}}</nowiki></code><br>
:: <code><nowiki>{{PageTitle|logo=delta|title=Your Title Here|author= Team XYZ|forumtid=423}}</nowiki></code><br>
: '''Result:'''
: '''Result:'''
:: {{PageTitle|logo=delta|title=Your Title Here|author= Team XYZ|forum=423}}
:: {{PageTitle|logo=delta|title=Your Title Here|author= Team XYZ|forumtid=423}}
</noinclude>
</noinclude>

Revision as of 14:35, August 2, 2021


Purpose & Usage

Used at top of pages to include a standardized page-title header. This template relies upon global CSS classes.

Info-Logo.png

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

Optional Parameters

logo - Displays a logo to the left of the content

Values
Default: logo=delta
  • fo3
  • fo4
  • fnv
  • nomanssky
  • skyrim
  • skyrimse

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 ...

subtitle - Sets a subtitle

Values
Default: n/a, subtitle=SubtitleHere

author - Sets a subtitle

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

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

breadcrumb - Use on subpages to add a link to the parent 'super' page.

Values
Default: n/abreadcrumb=yes

Examples

Default Call

The simplest call returns defaults for the template.

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

Title Here



Example 01 (all options)

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 ID



Example 02 (alternate logo)

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 ID



Example 03

No Subtitle

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 ID