Template:See also/doc and Template:Main Page: Difference between pages

From SPCodex, The Smashing Pumpkins wiki
(Difference between pages)
(link to corresponding template for categories)
 
No edit summary
 
Line 1: Line 1:
{{documentation subpage}}
<includeonl__NOTOC____NOTITLE____NOEDITSECTION__<templatestyles src="Template:Main_Page/styles.css" /><templatestyles src="Template:Discography/styles.css" />
{{used in system|in [[MediaWiki:wantedpages-summary]]}}
<div class="mainpage_row">
{{lua|Module:Labelled list hatnote}}
<div class="mainpage_box">
{{high-risk| 141184 }}
<h1 style="text-align:center; border:none; font-size:250%; margin:0.5em 0 0.5em" class="nomobile">Welcome to {{SITENAME}}</h1><h1 style="text-align:center; border:none; font-size:150%; margin:0.5em 0 0.5em" class="mobile-only">The Smashing Pumpkins wiki</h1>
<div style="font-size:105%; text-align:center; margin-bottom:15px" class="nomobile">[[The Smashing Pumpkins]] wiki that combines the autonomous growth of [[w:Wikipedia|Wikipedia]] with the power and passion of the SP family.<br/>[[SPCodex:To-do list|Help us]] build the world's largest knowledge base for The Smashing Pumpkins and related acts!


This template is used to create '''[[WP:Hatnotes|hatnotes]] to point to a small number of other related titles''' at the '''top of [[Help:Section|article sections]]''' (excluding the [[WP:LEAD|lead]]) according to [[Wikipedia:Layout]]. It looks like this:
We currently have '''{{NUMBEROFARTICLES}} articles''', detailing '''[[:Category:Songs|{{PAGESINCATEGORY:Songs|pages}} songs]]''' across '''[[:Category:Albums|{{PAGESINCATEGORY:Albums|pages}} albums]]''', '''[[Studio sessions|{{PAGESINCATEGORY:Studio sessions|pages}} studio sessions]]''' and '''[[Tour history|{{PAGESINCATEGORY:Live performances|pages}} live shows]]'''.
 
</div><div style="font-size:105%; text-align:center" class="mobile-only">[[Special:CreateAccount|Help us]] build the world's largest knowledge base for [[The Smashing Pumpkins]] and related acts!
{{See also|Article}}
<div style="padding-top:10px">{{NUMBEROFARTICLES}} articles: '''[[:Category:Songs|{{PAGESINCATEGORY:Songs|pages}} songs]]''' &bull; '''[[:Category:Albums|{{PAGESINCATEGORY:Albums|pages}} albums]]''' &bull; '''[[Studio sessions|{{PAGESINCATEGORY:Studio sessions|pages}} studio sessions]]''' &bull; '''[[Tour history|{{PAGESINCATEGORY:Live performances|pages}} live shows]]'''</div></div>
 
</div>
''Do not'' use this template inside [[Wikipedia:Manual of Style/Layout#"See also" section|the ''"See also" section'']] at the end of an article, or for links to other articles or subsections of the same article within regular article text. Where subsections are linked to, [[Template:Section link]] may be suitable instead. For use on category pages, the corresponding template is [[Template:Category see also]].
</div>
 
<div class="mainpage_row">
Refer to the examples below to see how the template handles link targets containing section links and commas.
<div class="mainpage_box">
 
<h3>[[SPCodex:Album of the week|Album of the week]]</h3>
==Usage==
<div class="items">
; Basic usage:
{{Main Page/Albums|1=1}}
&#123;{See also|''page1''|''page2''|''page3''|...}}
</div>
 
</div>
; All parameters:
<div class="mainpage_box">
&#123;{See also|''page1''|''page2''|''page3''| ...
<h3>[[SPCodex:Song of the day|Song of the day]]</h3>
|label 1 = ''label 1''|label 2 = ''label2''|label 3 = ''label3''| ...
<div class="items">
|l1 = ''label1''|l2 = ''label2''|l3 = ''label3''| ...
{{Main Page/Songs|1=2}}
|selfref = ''yes''|category = ''no''}}
</div>
 
</div>
==Parameters==
</div>
This template accepts the following parameters:
<div class="mainpage_row">
* <code>1</code>, <code>2</code>, <code>3</code>, ... – the pages to link to. At least one page name is required. Categories and files are automatically escaped with the [[Help:Colon trick|colon trick]], and links to sections are automatically formatted as ''page § section'', rather than the MediaWiki default of ''page#section''.
<div class="mainpage_box">
* <code>label 1</code>, <code>label 2</code>, <code>label 3</code>, ...; or <code>l1</code>, <code>l2</code>, <code>l3</code>, ...; optional labels for each of the pages to link to.
<h3>[[SPCodex:Did you know|Did you know...]]</h3>
* <code>selfref</code> – if set to "yes", "y", "true" or "1", adds the CSS class "selfref". This is used to denote self-references to Wikipedia. See [[Template:Selfref]] for more information.
<div class="items">
* <code>category</code> – if set to "no", "n", "false", or "0", suppresses the error tracking category ([[:Category:Hatnote templates with errors]]). This only has an effect if the first positional parameter (the page to link to) is omitted.
{{Main Page/Did You Know|limit=5}}
 
</div>
== Examples ==
</div>
 
<div class="mainpage_box">
* <code><nowiki>{{See also|Article}}</nowiki></code> → {{See also|Article}}
<h3>[[SPCodex:In the news|In the news]]</h3>
* <code><nowiki>{{See also|Article#Section}}</nowiki></code> → {{See also|Article#Section}}
<div class="items">
* <code><nowiki>{{See also|Article#Section|label 1=Custom section label}}</nowiki></code> → {{See also|Article#Section|label 1=Custom section label}}
{{Main Page/In the news}}
* <code><nowiki>{{See also|Article1|Article2|Article3}}</nowiki></code> → {{See also|Article1|Article2|Article3}}
</div>
* <code><nowiki>{{See also|Article1|Article,2|Article3}}</nowiki></code> → {{See also|Article1|Article,2|Article3}}
</div>
* <code><nowiki>{{See also|Article1|l1=Custom label 1|Article2|l2=Custom label 2}}</nowiki></code> → {{See also|Article1|l1=Custom label 1|Article2|l2=Custom label 2}}
</div>
* <code><nowiki>{{See also|Veni, vidi, vici|Julius Caesar}}</nowiki></code> {{See also|Veni, vidi, vici|Julius Caesar}}
<div class="mainpage_row">
* <code><nowiki>{{See also|Veni, vidi, vici|Julius Caesar#Civil war}}</nowiki></code> → {{See also|Veni, vidi, vici|Julius Caesar#Civil war}}
<div class="mainpage_box">
* <code><nowiki>{{See also|Julius Caesar#Civil war|Veni, vidi, vici}}</nowiki></code> → {{See also|Julius Caesar#Civil war|Veni, vidi, vici}}
<h3>Today in history</h3>
* <code><nowiki>{{See also|Julius Caesar#Civil war|Crossing the Rubicon}}</nowiki></code> → {{See also|Julius Caesar#Civil war|Crossing the Rubicon}}
<div class="items">
 
{{Today in history}}
==Errors==
</div>
If no page names are supplied, the template outputs the following message with the (help) wikilink pointing to the "Errors" section of this page:
</div>
*{{See also|category=no}}
</div>
 
<div class="mainpage_row">
If you see this error message, it is for one of three reasons:
<div class="mainpage_box">
# No parameters were specified (the template code was <code><nowiki>{{See also}}</nowiki></code> with no pipe character nor page to link to). Please use <code><nowiki>{{See also|</nowiki>''page''<nowiki>}}</nowiki></code> instead.
<h3>[[Discography]]</h3>
# Some parameters were specified, but no page names were included. For example, the template text <code><nowiki>{{See also|selfref=yes}}</nowiki></code> will produce this error. Please use (for example) <code><nowiki>{{See also|</nowiki>''page''<nowiki>|selfref=yes}}</nowiki></code> instead.
<div class="items">
# A page name was specified, but it contains an equals sign ("="). The equals sign has a special meaning in template code, and because of this it cannot be used in template parameters that do not specify a parameter name. For example, the template code <code><nowiki>{{See also|1+1=2|2+2=4}}</nowiki></code> will produce this error. To work around this, you can specify the parameter name explicitly by using <code>1=</code>, <code>2</code>, etc., before the page name, like this: <code><nowiki>{{See also|1=1+1=2|2=2+2=4}}</nowiki></code>.
{{:Discography}}
 
</div>
If you see this error message and are unsure of what to do, please post a message on [[WP:HD|the help desk (WP:HD)]], and someone should be able to help you.
</div>
 
</div>
To see a list of wikilinks to articles that contain this error message, see the [[Wikipedia:Maintenance|maintenance category]]: [[:Category:Hatnote templates with errors]].
<div class="mainpage_row">
 
<div class="mainpage_box">
==TemplateData==
<h3>More fan sites</h3>
{{Collapse top|[[Wikipedia:TemplateData|TemplateData]] documentation used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools}}
<div class="items plainlinks">
{{TemplateData header|noheader=1}}
{{div col}}
<templatedata>
* '''[http://spfc.org/ SPFC]''' (Smashing Pumpkins Fan Collaborative) – One of the oldest and most comprehensive databases. Much of the data on SPCodex was imported from SPFC.
{
* '''[http://spfreaks.com/ SP Freaks]''' – The de facto official museum for The Smashing Pumpkins.
"description": "This template creates a hatnote to point to a small number of related pages. It is placed at the top of a section, directly underneath the section heading.",
* '''[http://www.splra.org/ SPLRA]''' (Smashing Pumpkins Live Recording Association) – A wiki dedicated to documenting live performances.
"params": {
* '''[https://anchor.fm/the-smashing-pumpkast The Smashing Pumpkast]''' – A bi-weekly Smashing Pumpkins podcast hosted by Frank Garcia-Hejl and Pat O'Brien.
"1": {
* '''[https://www.facebook.com/groups/spfamgroup SPFam]''' – Facebook-based mental health and wellness peer support group.
"label": "Page 1",
* '''[http://landslide.2007.org/ Landslide Omnipedia]''' – Unique encyclopedic content and host for [[Act IV]].
"description": "The name of the first page that you want to link to.",
* '''[http://forums.netphoria.org/ Netphoria]''' – A very active discussion forum for all things Smashing Pumpkins.
"type": "wiki-page-name",
{{div col end}}
"required": true,
</div>
"example": "Article name"
</div>
},
</div>
"2": {
"label": "Page 2",
"description": "The name of the second page that you want to link to.",
"type": "wiki-page-name",
"required": false
},
"3": {
"label": "Page 3",
"description": "The name of the third page that you want to link to. More pages can be added using the parameters \"4\", \"5\", \"6\", etc.",
"type": "wiki-page-name",
"required": false
},
"label 1": {
"label": "Label 1",
"type": "string",
"description": "What the first linked article is to be displayed as. ",
"aliases": [
"l1"
]
},
"label 2": {
"label": "Label 2",
"type": "string",
"description": "What the second linked article is to be displayed as.",
"aliases": [
"l2"
]
},
"selfref": {
"type": "boolean",
"label": "Self reference",
"description": "Set to \"yes\" if the template is a self-reference to Wikipedia that would not make sense on mirrors or forks of the Wikipedia site.",
"example": "yes",
"default": "no"
},
"category": {
"label": "Category",
"description": "Set to \"no\", \"n\", \"false\", or \"0\" to suppresses the error tracking category (Category:Hatnote templates with errors). This only has an effect if no page names are specified.",
"type": "boolean",
"default": "yes",
"example": "no"
},
"label 3": {
"aliases": [
"l3"
],
"type": "string",
"label": "Label 3",
"description": "What the third linked article is to be displayed as. Other labels can be added by using increasing numbers (starting with \"label 4\" or \"l4\" for page 4) as parameter names."
}
},
"format": "inline"
}
</templatedata>
{{Collapse bottom}}
 
==See also==
*{{tl|For}}
*{{tl|See also if exists}}
*{{tl|Category see also}}
*{{tl|Main}}
*{{tl|See}} (redirect to {{tl|Further information}})
 
{{Hatnote templates}}
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- Categories go here and interwikis go in Wikidata. -->
[[Category:Exclude in print]]
[[Category:Hatnote templates]]
[[Category:Related-topic templates]]
[[Category:Wikipedia page-section templates]]
[[Category:Wikipedia see also]]
}}</includeonly>

Revision as of 06:18, 20 January 2022

<includeonl__NOTITLE__

Welcome to SPCodex

The Smashing Pumpkins wiki

The Smashing Pumpkins wiki that combines the autonomous growth of Wikipedia with the power and passion of the SP family.
Help us build the world's largest knowledge base for The Smashing Pumpkins and related acts!

We currently have 4,324 articles, detailing 1,319 songs across 149 albums, 85 studio sessions and 2,177 live shows.

Help us build the world's largest knowledge base for The Smashing Pumpkins and related acts!

Album of the week

Oceania is the eighth studio album from The Smashing Pumpkins, released in June 2012. Produced by Billy Corgan and Bjorn Thorsrud, the album forms part of the band's 34-track project album, Teargarden by Kaleidyscope. Corgan said the album is partly about "people struggling to find a social identity in today's fast-paced, technology-rich culture", adding "I think alienation seems to be the key theme – alienation in love and alienation in culture". The album peaked at #4 on the Billboard 200 and #1 on the Independent Albums chart. A live performance of the album, Oceania: Live in NYC, was released in September, 2013.

Song of the day

"Geek U.S.A." is eighth track off of The Smashing Pumpkins' sophomore studio album Siamese Dream. It reworked from an earlier song by called "Suicide Kiss". Beloved for its high-energy and guitar and percussion virtuoso, it ranked at #13 in the 2012 Rolling Stone reader's poll of the best Smashing Pumpkins songs and at #54 in Guitar World's list of the 100 greatest guitar solos of all time, while Jimmy Chamberlin's drum performance ranked among the greatest of all time by Stylus magazine. A live performance of the song also appears on the band's official Greatest Hits Video Collection.

Did you know...

In the news

April 17, 2024

April 12, 2024

April 1, 2024

March 29, 2024

More fan sites