Music
 

Help:Templates

From LyricWiki

Image:Image - HelpBook.png Help - The LyricWiki Documentation
Getting Started Editing Non-English Songs Uploading content Page ranking Reference
Templates, Categories, Index
Additional Help Integration with other projects Policy Getting Involved About us

Contents


General Information

Templates are provided to reduce the amount of repetitive wikitext in pages. Templates are a sort of shorthand, to make creating and editing wiki pages easier. Templates also help to make LyricWiki visually more uniform. Templates are placed within two sets of curly brackets, or braces, {{}} and contain one or more divisions of information.

If the template has more than one division, each division is separated by a vertical line, or pipe |. The first division contains the name of the template, followed by any number of divisions containing information that are used to complete the template. More often, the template uses named parameters to make the order irrelevant and the parameters optional.

This page contains a listing of all frequently used and useful templates available on LyricWiki. If you find a template to be missing, please insert it at the appropriate location in the list. For documentation and use of the template, please refer to the template page.

Templates without much information are usually formatted as:

{{Name|Division Two|Division Three}}

Templates containing more information are usually formatted as:

{{Name
|Division Two 
|Division Three 
|Division Four 
|Named Parameter One = value 
|Named Parameter Two = value 
}}

NOTE: Like all pages on LyricWiki, templates are case-sensitive, except the first letter of the template name. Therefore, {{Wikipedia}} and {{wikipedia}} will produce the same result, but {{WikiPedia}} won't.


Wikipedia

All LyricWiki articles for which a Wikipedia page exists should include a link to that page. The {{ArtistHeader}}, {{Album}} and {{SongFooter}} templates have parameters for producing such a link. Here are some additional options:

Floating Box

A floating box containing the article link and the Wikipedia graphic.

For example, the Wikipedia template:

{{Wikipedia|Country (film)|Country}}

produces:

Wikipedia
Wikipedia has an article on

In this example, the first division holds the template's name (in this case, Wikipedia), followed by two divisions that specify information for completing the template. The second division specifies the name of the Wikipedia article being linked to. In this case, "Country" wouldn't be specific enough to link to the film's article, so "Country (film)" must be used. The final division specifies the title that LyricWiki users will see, i.e. "Country".

See the template documentation for more information.

NOTE:

Simple Text

A simple text link to a Wikipedia page can be created using the {{wp}} template:

{{wp|Article name|display text}}

All parameters of the {{wp}} are the same as for the {{Wikipedia}} template. For example, this text...

Read about {{wp|Country (film)|Country}} on Wikipedia.

...produces the following result:

Read about Country on Wikipedia.

Simple Text with Icon

The template {{wpi}} is similar to the simple text link above but is preceded by a Wikipedia icon:

Read about {{wpi|Country (film)|Country}} on Wikipedia.

...produces the following result:

Read about Wikipedia Country on Wikipedia.

Song Flagging

Multiple Languages

In the case that a song is released in more than one language, it is recommended that links to the other versions of the lyrics be added. The {{MultipleLanguages}} template makes this task easier.

{{MultipleLanguages
|English Song Title/en
|Spanish Song Title/es
|...
}}

See David Bowie:"Heroes" for a working example.

Common language codes are:

  • de (German)
  • en (English)
  • es (Spanish)
  • fr (French)
  • ja (Japanese)
  • ko (Korean)
  • pl (Polish)
  • ru (Russian)
  • zh (Chinese)

A complete Wikipedia list of ISO 639-1 language codes can be found here.

Instrumental Tracks

Tracks that are instrumentals should be marked with the {{Instrumental}} template inside the lyric tags:

<lyrics>{{Instrumental}}</lyrics>

This template only has one division, its name. It produces the following: