Template:PageTitle: Difference between revisions
From Step Mods | Change The Game
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>__NOTITLE__ | <includeonly>__NOTITLE__<div class="media pagetitle mt-1"><div class="align-self-center mr-3">[[File:{{#switch:{{{logo|}}}| delta=Delta_c.png | ||
| fnv=Fnv_flare.png | |||
| fo3=Fo3_flare.png | |||
| fo4=Fo4_flare.png | |||
| morrowind=Morrowind_flare.png | |||
| nomanssky=Nomanssky_flare.png | |||
| oblivion=Oblivion_flare.png | |||
| skyrim=Skyrim_flare.png | |||
| skyrimse=Skyrimse_flare.png | |||
| #default=Delta_c.png }}|{{#ifexpr:{{{width|105}}}>105|105|105}}px|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-1 mb-3">{{{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></includeonly><noinclude>__NOTOC__ __NOTITLE__ [[Category:Formatting Templates]] | |||
</includeonly><noinclude>__NOTOC__ __NOTITLE__ [[Category:Formatting Templates]] | |||
==Purpose & Usage== | ==Purpose & Usage== |
Revision as of 03:03, June 19, 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](/wiki/images/thumb/4/40/Info-Logo.png/35px-Info-Logo.png)
NOTE
The format for image icons is 105+ px X 105+ px with 5px transparency on the right (PNG). This template also includes the__NOTITLE__
by default, therefore, it's not necessary to include it on the page when the PageTitle template is used.Parameters:
- logo: (optional) Displays a logo to the left of the content
- fill with the file name (with extension) of an uploaded image (e.g. Delta_c.png )
- if logo=delta, then the Step delta logo will be displayed
- title: is the text for the title
- subtitle: (optional) this is this the text that appears below the title.
- author: (optional) field for the author(s)
- forumtid: (optional) use a forum topic's ID to include a link to related forum topic
Example 01 (title only)
Code:
{{PageTitle|title=Your Title Here}}
Result:
Example 02 (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 03 (all options w/custom logo)
Code:
{{PageTitle|logo=Fallout3.png|title=Your Title Here|subtitle=Your subtitle text here|author=Team XYZ|forumtid=423}}
Result:
Code:
{{PageTitle|logo=TechGuideImage.png|title=Your Title Here|subtitle=Your subtitle text here|author=Team XYZ|forumtid=423}}
Result:
Example 04 (wo/subtitle)
Code:
{{PageTitle|logo=delta|title=Your Title Here|author= Team XYZ|forumtid=423}}
Result:
Your Title Here
by: Team XYZ | Forum Topic
Example 05 (wo/subtitle or forum topic)
Code:
{{PageTitle|logo=delta|title=Your Title Here|author= Team XYZ}}
Result:
Example 06 (wo/author or forum topic)
Code:
{{PageTitle|logo=delta|title=Your Title Here|author= Team XYZ}}
Result:
Example 07 (wo/author, subtitle or forum topic)
Code:
{{PageTitle|logo=delta|title=Your Title Here|author= Team XYZ}}
Result: