Template:PageTitle: Difference between revisions
From Step Mods | Change The Game
m (Text replacement - "/ipb4" to "forum") |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>__NOTITLE__ | ||
{| class="pagetitle" | |||
|- | |||
| rowspan="3"" | {{#if:{{{logo|}}}|[[File:{{#switch:{{{logo}}}|delta=Delta_c.png|#default={{{logo}}} }}|105px]]| }} | |||
{{#if:{{{logo|}}}|[[File:{{#switch:{{{logo}}}|delta=Delta_c.png|#default={{{logo}}} }}|105px | | class="pagetitle-title" | {{{title}}} | ||
|- | |||
| class="pagetitle-subtitle" | {{#if:{{{subtitle|}}}|{{{subtitle}}}| }} | |||
|- | |||
| class="pagetitle-extra" | {{#if:{{{author|}}}|{{#if:{{{forumtid|}}}|''by: {{{author}}}'' {{!}} [https://stepmodifications.org/forum/topic/{{{forumtid}}}- '''Forum Topic''']|''by: {{{author}}}''}}|{{#if:{{{forumtid|}}}|[https://stepmodifications.org/forum/topic/{{{forumtid}}}- '''Forum Topic''']| }} }} | |||
|} | |||
</includeonly><noinclude>__NOTOC__ __NOTITLE__ [[Category:Formatting Templates]] | |||
==Purpose & Usage== | ==Purpose & Usage== | ||
Line 47: | Line 48: | ||
'''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}} | ||
==Example 05 (wo/subtitle or forum topic)== | |||
'''Code:''' | |||
<pre>{{PageTitle|logo=delta|title=Your Title Here|author= Team XYZ}}</pre> | |||
'''Result:''' | |||
{{PageTitle|logo=delta|title=Your Title Here|author= Team XYZ}} | |||
==Example 06 (wo/author or forum topic)== | |||
'''Code:''' | |||
<pre>{{PageTitle|logo=delta|title=Your Title Here|author= Team XYZ}}</pre> | |||
'''Result:''' | |||
{{PageTitle|logo=delta|title=Your Title Here|subtitle=Your subtitle text here}} | |||
==Example 07 (wo/author, subtitle or forum topic)== | |||
'''Code:''' | |||
<pre>{{PageTitle|logo=delta|title=Your Title Here|author= Team XYZ}}</pre> | |||
'''Result:''' | |||
{{PageTitle|logo=delta|title=Your Title Here}} | |||
</noinclude> | </noinclude> |
Revision as of 17:39, February 24, 2021
Purpose & Usage
Used at top of pages to include a standardized page-title header. This template relies upon global CSS classes.
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:
Your Title Here | |
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:
![]() |
Your Title Here |
Your subtitle text here | |
by: Team XYZ | Forum Topic |
Example 03 (all options w/custom logo)
Code:
{{PageTitle|logo=[[File:Fallout3.png|115px|left]]|title=Your Title Here|subtitle=Your subtitle text here|author= Team XYZ|forumtid=423}}
Result:
![]() |
Your Title Here |
Your subtitle text here | |
by: Team XYZ | Forum Topic |
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:
![]() |
Your Title Here |
by: Team XYZ |
Example 06 (wo/author or forum topic)
Code:
{{PageTitle|logo=delta|title=Your Title Here|author= Team XYZ}}
Result:
![]() |
Your Title Here |
Your subtitle text here | |
Example 07 (wo/author, subtitle or forum topic)
Code:
{{PageTitle|logo=delta|title=Your Title Here|author= Team XYZ}}
Result:
![]() |
Your Title Here |