Template:PageTitle: Difference between revisions
From Step Mods | Change The Game
TechAngel85 (talk | contribs) |
TechAngel85 (talk | contribs) No edit summary |
||
Line 57: | Line 57: | ||
: '''How to use:''' <code>forumtid=<uniqueForumID></code> (e.g. <code>forumtid=14917</code> ) | : '''How to use:''' <code>forumtid=<uniqueForumID></code> (e.g. <code>forumtid=14917</code> ) | ||
==Example 01 ( | ==Usage Examples== | ||
'''Code:''' | ===Example 01 (all options w/default logo)=== | ||
< | : '''Code:''' | ||
'''Result:''' | :: <code><nowiki>{{PageTitle|logo=delta|title=Your Title Here|subtitle=Your subtitle text here|author= Team XYZ|forumtid=423}}</nowiki></code> | ||
{{PageTitle|title=Your Title Here}} | : '''Result:''' | ||
<br | :: {{PageTitle|logo=delta|title=Your Title Here|subtitle=Your subtitle text here|author= Team XYZ|forumtid=423}} | ||
< | <br> | ||
<hr> | |||
<hr> | |||
==Example 02 ( | ===Example 02 (using switches)=== | ||
'''Code:''' | : '''Code:''' | ||
< | :: <code><nowiki>{{PageTitle|logo=fo3|title=Your Title Here|subtitle=Your subtitle text here|author= Team XYZ|forumtid=423}}</nowiki></code> | ||
'''Result:''' | :: <code><nowiki>{{PageTitle|logo=nomanssky|title=Your Title Here|subtitle=Your subtitle text here|author= Team XYZ|forumtid=423}}</nowiki></code> | ||
{{PageTitle|logo= | : '''Result:''' | ||
:: {{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}} | |||
<br> | |||
<hr> | |||
<hr> | |||
==Example 03 | ===Example 03 === | ||
==== No Subtitle ==== | |||
: '''Code:''' | |||
:: <code><nowiki>{{PageTitle|logo=delta|title=Your Title Here|author= Team XYZ|forumtid=423}}</nowiki></code><br> | |||
: '''Result:''' | |||
:: {{PageTitle|logo=delta|title=Your Title Here|author= Team XYZ|forumtid=423}} | |||
'''Code:''' | |||
< | |||
{{PageTitle|logo=delta|title=Your Title Here|author= Team XYZ|forumtid=423}} | |||
'''Result:''' | |||
==== Title Only ==== | |||
: '''Code:''' | |||
:: <code><nowiki>{{PageTitle|title=Your Title Here}}</nowiki></code><br> | |||
: '''Result:''' | |||
:: {{PageTitle|title=Your Title Here}} | |||
<br> | |||
</noinclude> | </noinclude> |
Revision as of 15:13, 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:
Required
- title=
- This is the text that displays for the title and is a required parameter.
- How to use:
title=text
Optional
- logo=
- (optional) Displays a logo to the left of the content
- Notes:
- Logos are constrained to a minimum of 105px in width. Images with H > W work best.
- User should upload logo images used in combination with this template to the wiki.
- If this parameter is left out, then the Step delta logo will be displayed.
- How to use:
logo=<uploadedFileName> or <switch>
(e.g.logo=Delta_c.png
orlogo=fo3
)- Available switches:
- fo3
- fo4
- fnv
- nomanssky
- skyrim
- skyrimse
- Available switches:
- classList=
- (optional) This is used to provide a list of classes that are applied to the image.
- Notes:
- Will only work with classes that are pre-defined and those that work on images.
- Multiple classes are separated by a blank space.
- How to use:
classList=p-3 rounded-circle
- subtitle=
- (optional) This is the text that displays for the subtitle.
- How to use:
subtitle=text
- author=
- (optional) field for the author(s)
- How to use:
author=text
- forumtid=
- (optional) use a forum topic's ID to include a link to related forum topic
- Notes:
- The <uniqueForumID> is found in the forum topic's URL:
https://stepmodifications.org/forum/topic/14917-system-setup-guide/
- The <uniqueForumID> is found in the forum topic's URL:
- How to use:
forumtid=<uniqueForumID>
(e.g.forumtid=14917
)
Usage Examples
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:
Your Title Here
by: Team XYZ | Forum Topic
Title Only
- Code:
{{PageTitle|title=Your Title Here}}
- Result: