Template:Album page machine/doc

From Weezerpedia
Jump to: navigation, search

I'm really stoked about this template so I'm making a big long documentation page.

Overview

Note that "substitution" (i.e. adding subst: in front the name of the template when you type it into the page) must be used for this template to function.

This template looks like an oversized infobox, but it generates the bare bones of a full album page (including an infobox). The following textbox displays what one would input into a blank Weezerpedia album page. It includes filled in responses that are mostly non-sensical. "release d" means release day (i.e. June 14), release y means release year, and number answers "what number in the artist's chronology is this?" Answers to the latter could be debut, sophomore, third, etc. the "t" values are track names, and the "l" values are track length.

Note: do not put the release year in brackets as an internal link. The template will do this for you. This is set up this way because the year you input also populates a category that gets added to pages made with this machine: [[Category:YEAR releases]]. If you add brackets, that category name will get disrupted. For example, typing [[1996]] into this slot of the template will give you [[Category:[[1996]] releases]] as the category, which disrupts the Category formatting.

Use, substitution

The idea here is not to make everything a template. The idea is to instead cut down the mundane data entry-like aspects of creating an album page, to provide an easy way for moderate-level editors to adhere to standard formatting for album pages, and to experiment around and figure out what that standard formatting should be in the first place.

To prevent this from being a template, we need to use "substitution." This basically means - instead of having a template stay a template when you hit save on a page (i.e. if you went back to edit the page, it would still say {{TEMPLATE NAME:TEMPLATE CONTENT}}), the page would save as regular wikitext like any old page. This is Wikipedia help page explanation:

Substitution is a function whereby, when an editor saves a page, an item in the wikicode is permanently replaced with its current value. In particular, templates and magic words can be substituted, as an alternative to transclusion. The difference is that when a template is substituted on a page, its appearance on that page will no longer be affected by later changes made to the template itself (as is the case in a transcluded template). Substitution is done using the subst: modifier after the double opening braces. For example, to substitute the template {{afd}}, type {{subst:afd}}. You can check the resulting wikitext before saving by clicking "Show changes" (and see what the page will look like by clicking "Show preview").

What does that shit mean

Templates are normally "transcluded," which means - like I mentioned before - that when you hit save on a page with a template, then go back to edit it, you still see the template that you used. List of Rivers Cuomo songs, like all song list pages, has two templates in its see also section:

==See also==
*[[Rivers Cuomo]]
*[[Alone series]]
{{Template:Song Lists}}
{{Template:Rivers Cuomo Discography}}

[[Category:Lists]]
[[Category:Featured article]]

Those templates are big boxes of links to other things, and the lengthy and dense code for them is "transcluded" from the template page so you don't have to deal with it on the List of Rivers Cuomo songs page. When we "substitute" the template instead of transcluding, when you hit save, you're permanently left with all that dense and length code, not the very brief code of {{Template:Song Lists}} and {{Template:Rivers Cuomo Discography}}. For reference, here's what the "substituted code" would look like if we entered {{subst:Template:Song Lists}} into a page, hit save, and then went back to edit that same section of the page:

{{clear}}
{| class="navbox" style="margin:0 auto; padding:0.2em;"
|-
! style="text-align:center;background-color:#a8e3ff;" | '''Song lists'''
|-
| style="text-align:center;font-size:11px;" |  '''By artist:''' [[List of Weezer songs]] '''{{•wrap}}''' [[List of Weezer b-sides and bonus tracks]] '''{{•wrap}}''' [[List of Ozma songs]] '''<br>''' [[List of Space Twins songs]] '''{{•wrap}}''' [[List of Space Twins demos]] '''{{•wrap}}''' [[List of The Relationship songs]] '''<br>''' [[List of Carnival Art songs]] '''{{•wrap}}''' [[List of That Dog songs]] '''{{•wrap}}''' [[List of AM Radio songs]] '''{{•wrap}}''' [[List of Supersport 2000 songs]]<br> '''By songwriter:''' [[List of Rivers Cuomo songs|Rivers Cuomo]] '''{{•wrap}}''' [[List of Brian Bell songs|Brian Bell]]  '''{{•wrap}}''' [[List of Scott Shriner songs|Scott Shriner]] '''{{•wrap}}''' [[List of Patrick Wilson songs|Patrick Wilson]] '''{{•wrap}}''' [[List of Matt Sharp songs|Matt Sharp]] '''{{•wrap}}''' [[List of Jason Cropper songs|Jason Cropper]] '''{{•wrap}}''' [[List of Mikey Welsh songs|Mikey Welsh]] '''{{•wrap}}''' [[List of Karl Koch songs|Karl Koch]]<br>'''Other:''' [[List of cover songs]] '''{{•wrap}}''' [[List of book-end tracks]] '''{{•wrap}}''' [[List of songs that sample Weezer]]
|}
<includeonly></includeonly><noinclude>[[Category:Navigation_Templates|{{PAGENAME}}]]</noinclude>
.


Empty template (expandable)

Here's a fill-in-the-blank version (with the subst: prefix attached).

{{subst:Album page machine
|album=
|artist=
|number=
|album art=
|release d=
|release y=
|recorded=
|format=
|genre=
|length=
|label=
|producer=
|lastalbum=
|lastalbumy=
|nextalbum=
|nextalbumy=
|track list=
{{Track listing
| total_length    = 
| title1          =
| length1         = 
| title2          =
| length2         = 
| title3          =
| length3         = 
| title4          = 
| length4         = 
| title5          = 
| length5         = 
| title6          = 
| length6         = 
| title7          = 
| length7         = 
| title8          = 
| length8         = 
| title9          =
| length9         = 
| title10         = 
| length10        =
}}
|personnel=
*
|external links=
*
|Navbox=
}}

Example with filled-in text

{{subst:Album page machine
|album=Weezer (The Blue Album)
|artist=Weezer
|album art=Weezer Pinkerton.jpg
|release d=September 1
|release y=1996 ---> do not put this in brackets i.e. ''[[1996]]''
|recorded= Jan-Feb 1992 in Los Angeles, CA
|format= CD, vinyl
|genre=Alt rock
|length=25:45
|label=Geffen Records
|producer=Ric Ocasek
|lastalbum=Weezer (The Green Album)
|lastalbumy=2001
|nextalbum=Weezer (The Red Album)
|nextalbumy=2008
|track list=
{{Track listing
| total_length    = 34:32
| all_writing     = Rivers Cuomo
| title1          = [[Tired of Sex]]
| length1         = 3:01
| title2          = [[Getchoo]]
| length2         = 2:52
| title3          = [[No Other One]]
| length3         = 3:01
| title4          = [[Why Bother?]]
| length4         = 2:08
| title5          = [[Across the Sea]]
| length5         = 4:32
| title6          = [[The Good Life]]
| length6         = 4:17
| title7          = [[El Scorcho]]
| length7         = 4:03
| title8          = [[Pink Triangle]]
| length8         = 3:58
| title9          = [[Falling for You]]
| length9         = 3:47
| title10          = [[Butterfly]]
| length10         = 2:53
}}
|personnel=
*[[Rivers Cuomo]] - guitar
*[[Matt Sharp]] - bass
*[[Pat Wilson]] - drums
*[[Brian Bell]] - guitar
|external links=
*''[https://www.discogs.com/release/8770905-Rachel-Haden-July-6 July 6]'' at Discogs
*Stream ''[https://rachelhaden.bandcamp.com/album/july-6 July 6]'' on Bandcamp
*''[https://shop.greenwayrecords.com/products/rachel-haden-july-6?_pos=1&_sid=2c3f823da&_ss=r July 6]'' at Greenway Records
|Navbox=Scott Shriner
}}

What the above code gives you

Weezer (The Blue Album)
Weezer (The Blue Album) cover
Studio album by Weezer
Released September 1, 1996
Format CD, vinyl
Recorded Jan-Feb 1992 in Los Angeles, CA
Genre Alt rock
Length 25:45
Label Geffen Records
Producer(s) Ric Ocasek
Weezer chronology
Weezer (The Green Album)
2001
Weezer (The Blue Album)
1996
Weezer (The Red Album)
2008

Weezer (The Blue Album) is the {{{number}}} album by Weezer. It was released on September 1, 1996.

Overview

Icon - 3 books.png This section requires expansion.


Track listing

All songs written and composed by Rivers Cuomo. 
No. Title Length
1. "Tired of Sex"   3:01
2. "Getchoo"   2:52
3. "No Other One"   3:01
4. "Why Bother?"   2:08
5. "Across the Sea"   4:32
6. "The Good Life"   4:17
7. "El Scorcho"   4:03
8. "Pink Triangle"   3:58
9. "Falling for You"   3:47
10. "Butterfly"   2:53
Total length:
34:32

Personnel

See also

External links

References


Footnotes