Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Track: Difference between revisions

Template page
mNo edit summary
No edit summary
Line 33: Line 33:
<td width="60%">{{{duration}}}</td>
<td width="60%">{{{duration}}}</td>
</tr>}}
</tr>}}
</table>[[Category:{{FULLPAGENAME}}]] [[Category:Tracks]] {{DISPLAYTITLE:"{{{title}}}"}}<templatestyles src="Template:Game/styles.css" /></includeonly>
</table>[[Category:{{FULLPAGENAME}}]] [[Category:Tracks]] {{DISPLAYTITLE:"{{{title}}}"}} Parameters
 
Hooks used
 
The ShortDescription extension allows wikis to add short descriptions to wikitext pages, similar to the implementation on Wikipedia and Wikibase. On top of that, it replaces the site tagline with short description on pages with short description.
Installation
 
Note that the latest version is located in the GitHub repo instead of Gerrit.
 
    Download and place the file(s) in a directory called ShortDescription in your extensions/ folder.
    Add the following code at the bottom of your LocalSettings.php file:
 
    wfLoadExtension( 'ShortDescription' );
 
    Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
 
Features
 
    Define short description on the page with the magic word {{SHORTDESC}}, same as the implementation on Wikipedia
    Retrieve short description on any wiki pages with the magic word {{GETSHORTDESC}}
    Add short description underneath the page title on most skins, if the skin supports site tagline (#siteSub)
        Note that the short description will replace the default site tagline message on pages with short description
        Does not apply to Skin:Citizen and Skin:Minerva Neue, as they have native support
    Allow short description to be accessed through the Action API
    Provide description to the REST API search endpoint
    Add short description to page information (&action=info)
    Provide description for extensions such as MobileFrontend, RelatedArticles
 
Configurations
 
The extension works out of the box without any configurations. The config flags allow more customization on the specific features in the extension.
Name Description Values Default
$wgShortDescriptionEnableTagline Enables short description in site tagline true - enable; false - disable true
$wgShortDescriptionExtendOpenSearchXml Provide short description to the Opensearch API module true - enable; false - disable false
Usage
Add short descriptionTo add Bacon ipsum dolor amet turkey as short description, simply add {{SHORTDESC:from {{{origin}}}}}<templatestyles src="Template:Game/styles.css" /></includeonly>

Revision as of 21:03, 29 October 2025

This is the "Track" template.

It should be called in the following format:

{{Track
|title=
|key=
|image=
|duration=
|bpm=
|camelot=
|time_signature=
|origin=
}}

Edit the page to see the template text.

This template defines the table "tracks". View table.