Template:Album page machine/doc: Difference between revisions
Template:Album page machine/doc (view source)
Revision as of 01:51, 28 November 2022
, 28 November 2022this page is a bit of mess
mNo edit summary |
(this page is a bit of mess) |
||
| Line 1: | Line 1: | ||
I'm really stoked about this template so I'm making a big long documentation page. | 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 [[:Category:Albums|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. | 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 [[:Category:Albums|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: <nowiki>[[Category:YEAR releases]]</nowiki>. If you add brackets, that category name will get disrupted. For example, typing <nowiki>[[1996]]</nowiki> into this slot of the template will give you <nowiki>[[Category:[[1996]] releases]]</nowiki> as the category, which disrupts the Category formatting. | 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: <nowiki>[[Category:YEAR releases]]</nowiki>. If you add brackets, that category name will get disrupted. For example, typing <nowiki>[[1996]]</nowiki> into this slot of the template will give you <nowiki>[[Category:[[1996]] releases]]</nowiki> 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 "{{Wiki2|Help:Substitution|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 ''<nowiki>{{TEMPLATE NAME:TEMPLATE CONTENT}}</nowiki>)'', the page would save as regular wikitext like any old page. This is Wikipedia help page explanation: | |||
<blockquote>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 {{Wiki2|Help:Magic_words|magic words}} can be substituted, as an alternative to {{Wiki2|Help:Transclusion|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 <code>subst:</code> modifier after the double opening braces. For example, to substitute the template <nowiki>{{afd}}</nowiki>, type <nowiki>{{subst:afd}}</nowiki>. You can check the resulting wikitext before saving by clicking "Show changes" (and see what the page will look like by clicking "Show preview").</blockquote> | |||
===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 [[List of Rivers Cuomo songs#See also|see also section]]: | |||
<pre> | |||
==See also== | |||
*[[Rivers Cuomo]] | |||
*[[Alone series]] | |||
{{Template:Song Lists}} | |||
{{Template:Rivers Cuomo Discography}} | |||
[[Category:Lists]] | |||
[[Category:Featured article]] | |||
</pre> | |||
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 ''<nowiki>{{Template:Song Lists}}</nowiki>'' and ''<nowiki>{{Template:Rivers Cuomo Discography}}</nowiki>''. For reference, here's what the "substituted code" would look like if we entered ''<nowiki>{{subst:Template:Song Lists}}</nowiki>'' into a page, hit save, and then went back to edit that same section of the page: | |||
<pre> | |||
{{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> | |||
</pre>. | |||
<div class="mw-collapsible mw-collapsed"> | |||
==Empty template (expandable)== | |||
Here's a fill-in-the-blank version (with the '''subst:''' prefix attached). | |||
<div class="mw-collapsible-content"> | |||
<pre> | <pre> | ||
{{Album page machine | {{subst:Album page machine | ||
|album= | |album= | ||
|artist= | |artist= | ||
|album art= | |number= | ||
|release d= | |album art= | ||
|release y= | |release d= | ||
|genre= | |release y= | ||
|length= | |recorded= | ||
|label= | |format= | ||
|producer= | |genre= | ||
|lastalbum= | |length= | ||
|nextalbum= | |label= | ||
| | |producer= | ||
|t1= | |lastalbum= | ||
|l1= | |lastalbumy= | ||
|t2= | |nextalbum= | ||
|l2= | |nextalbumy= | ||
|t3= | |t1= | ||
|l3= | |l1= | ||
|t4= | |t2= | ||
|l4= | |l2= | ||
|t5= | |t3= | ||
|l5= | |l3= | ||
|t4= | |||
|l4= | |||
|t5= | |||
|l5= | |||
|t6= | |t6= | ||
|l6= | |l6= | ||
| Line 61: | Line 108: | ||
|l20= | |l20= | ||
|personnel= | |personnel= | ||
|external links= | |external links= | ||
|Navbox= | |||
}} | }} | ||
</pre> | </pre> | ||
== | </div></div> | ||
==Example with filled-in text== | |||
{{Album page machine | <pre> | ||
{{subst:Album page machine | |||
|album=Weezer (The Blue Album) | |album=Weezer (The Blue Album) | ||
|artist=Weezer | |artist=Weezer | ||
|album art=Weezer Pinkerton.jpg | |album art=Weezer Pinkerton.jpg | ||
|release d=September 1 | |release d=September 1 | ||
|release y=1996 | |release y=1996 ---> do not put this in brackets i.e. ''<nowiki>[[1996]]</nowiki>'' | ||
|recorded= Jan-Feb 1992 in Los Angeles, CA | |||
|format= CD, vinyl | |||
|genre=Alt rock | |genre=Alt rock | ||
|length=25:45 | |length=25:45 | ||
| Line 84: | Line 130: | ||
|producer=Ric Ocasek | |producer=Ric Ocasek | ||
|lastalbum=Weezer (The Green Album) | |lastalbum=Weezer (The Green Album) | ||
|lastalbumy=2001 | |||
|nextalbum=Weezer (The Red Album) | |nextalbum=Weezer (The Red Album) | ||
|nextalbumy=2008 | |||
|number=second | |number=second | ||
|t1=hello | |t1=hello | ||
| Line 135: | Line 183: | ||
*Stream ''[https://rachelhaden.bandcamp.com/album/july-6 July 6]'' on Bandcamp | *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 | *''[https://shop.greenwayrecords.com/products/rachel-haden-july-6?_pos=1&_sid=2c3f823da&_ss=r July 6]'' at Greenway Records | ||
|Navbox=Scott Shriner | |||
}} | }} | ||
</pre> | |||
==What the above code gives you== | |||
== | |||
{{Italicize page name}} | |||
{{Infobox Album <!-- See Wikipedia:WikiProject_Albums --> | |||
| Name = Weezer (The Blue Album) | |||
| Type = studio | |||
| Artist = Weezer | |||
| Cover = Weezer Pinkerton.jpg | |||
| Caption = | |||
| Released = September 1, 1996 | |||
| Recorded = Jan-Feb 1992 in Los Angeles, CA | |||
| Format = CD, vinyl | |||
| Genre = Alt rock | |||
| Length = 25:45 | |||
| Label = Geffen Records | |||
| Producer = Ric Ocasek | |||
| Reviews = | |||
| Last album = ''Weezer (The Green Album)''<br> <small>2001</small> | |||
| This album = '''''Weezer (The Blue Album)'''''<br> <small>1996</small> | |||
| Next album = ''Weezer (The Red Album)''<br> <small>2008</small> | |||
}} | |||
'''''Weezer (The Blue Album)''''' is the second album by Weezer. It was released on September 1, 1996. | |||
==Overview== | |||
{{expand section}} | |||
{{#if:hello| | |||
==Track listing== | |||
{{Track listing | |||
| total_length = 25:45 | |||
| title1 = [[hello]] | |||
| length1 = 1:23 | |||
| title2 = [[hello 2]] | |||
| length2 = 1:54 | |||
| title3 = [[hello 3]] | |||
| length3 = 1:45 | |||
| title4 = [[hello 4]] | |||
| length4 = 3:44 | |||
| title5 = [[hello 5]] | |||
| length5 = 3:47 | |||
| title6 = | |||
| length6 = | |||
| title7 = | |||
| length7 = | |||
| title8 = | |||
| length8 = | |||
| title9 = | |||
| length9 = | |||
| title10 = | |||
| length10 = | |||
| title11 = | |||
| length11 = | |||
| title12 = | |||
| length12 = | |||
| title13 = | |||
| length13 = | |||
| title14 = | |||
| length14 = | |||
| title15 = | |||
| length15 = | |||
| title16 = | |||
| length16 = | |||
| title17 = | |||
| length17 = | |||
| title18 = | |||
| length18 = | |||
| title19 = | |||
| length19 = | |||
| title20 = | |||
| length20 = | | |||
}}}} | |||
==Personnel== | |||
*[[Rivers Cuomo]] - guitar | |||
*[[Matt Sharp]] - bass | |||
*[[Pat Wilson]] - drums | |||
*[[Brian Bell]] - guitar | |||
==See also== | ==See also== | ||
*[[ | *[[List of Weezer songs]] | ||
*[[ | *[[Weezer]] | ||
==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 | |||
< | ==References== | ||
<references /> | |||
== | ==Footnotes== | ||
<references group="Note" /> | |||
< | |||
{{Template:Navbox Scott Shriner}} | |||
[[Category:Weezer]] | |||
[[Category:Weezer albums]] | |||
[[Category: 1996 releases]] | |||