Template:PageTitle: Difference between revisions

From Step Mods | Change The Game
(Created page with "<includeonly><div class="pagetitle"> <div style="display: table-row-group;"> <div style="display: table-row;"> <div style="display:table-cell; vertical-align:bottom; {{#if:{{{...")
 
mNo edit summary
Line 24: Line 24:
==Example 01 (title only)==
==Example 01 (title only)==
'''Code:'''
'''Code:'''
<pre>{{PageTitle|title=Your Title Here}}</pre>
<pre><nowiki>{{PageTitle|title=Your Title Here}}</nowiki></pre>
'''Result:'''
'''Result:'''
{{PageTitle|title=Your Title Here}}
{{PageTitle|title=Your Title Here}}
<br/>
<br/>
<br/>


==Example 02 (all options w/default logo)==
==Example 02 (all options w/default logo)==
'''Code:'''
'''Code:'''
<pre>{{PageTitle|logo=delta|title=Your Title Here|subtitle=Your subtitle text here|author= Team XYZ|forumtid=423}}</pre>
<pre><nowiki>{{PageTitle|logo=delta|title=Your Title Here|subtitle=Your subtitle text here|author= Team XYZ|forumtid=423}</nowiki>}</pre>
'''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}}
Line 38: Line 37:
==Example 03 (all options w/custom logo)==
==Example 03 (all options w/custom logo)==
'''Code:'''
'''Code:'''
<pre>{{PageTitle|logo=[[File:Fallout3.png|115px|left]]|title=Your Title Here|subtitle=Your subtitle text here|author= Team XYZ|forumtid=423}}</pre>
<pre><nowiki>{{PageTitle|logo=[[File:Fallout3.png|115px|left]]|title=Your Title Here|subtitle=Your subtitle text here|author= Team XYZ|forumtid=423}}</nowiki></pre>
'''Result:'''
'''Result:'''
{{PageTitle|logo=Fallout3.png|title=Your Title Here|subtitle=Your subtitle text here|author= Team XYZ|forumtid=423}}
{{PageTitle|logo=Fallout3.png|title=Your Title Here|subtitle=Your subtitle text here|author= Team XYZ|forumtid=423}}
Line 44: Line 43:
==Example 04 (wo/subtitle)==
==Example 04 (wo/subtitle)==
'''Code:'''
'''Code:'''
<pre>{{PageTitle|logo=delta|title=Your Title Here|author= Team XYZ|forumtid=423}}</pre>
<pre><nowiki>{{PageTitle|logo=delta|title=Your Title Here|author= Team XYZ|forumtid=423}}</nowiki></pre>
'''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 20:57, January 5, 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:

Delta c.png
Your Title Here
Your subtitle text here
by: Team XYZ

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:

Fallout3.png
Your Title Here
Your subtitle text here
by: Team XYZ

Example 04 (wo/subtitle)

Code:

{{PageTitle|logo=delta|title=Your Title Here|author= Team XYZ|forumtid=423}}

Result:

Delta c.png
Your Title Here
by: Team XYZ