Difference between revisions of "Template:Dab"

From All About Ayrshire
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
<div style="border: 2px solid black; background-color:wheat; margin:4px;padding:4px;">
+
</noinclude>
'''<big>Documentation: Dab</big>'''
+
<div style="margin:6px;margin-right:300px;padding:6px;background-color:Beige;border:1px solid grey;text-align:center;{{border-radius|8px 8px 8px 8px}};">''This article is about {{{1}}}</div>
 
 
The Dab template should be added to the top of articles where a disambiguated page of the same title exists.  For example, where there are multiple roads that share the same number (including historic routes), junctions with the same name, or where Traditional Counties, towns or Highway Authorities share the same name.
 
 
 
It may be used to offer direct links to one or two other pages.  If there are more than two other pages with similar names, then the template should be used to send people to the disambiguation page.
 
 
To use this template, copy the code below, replacing anything within <tags> as appropriate.
 
<div style="border: 1px dashed black; background-color:white; margin:2px;padding:4px;font-family:Courier,system;">
 
<nowiki>{{Dab| <about> | <for> | <title> | <for2> | <title2> | <for3> | <title3> }}</nowiki>
 
</div>
 
'''<about>''' - What the current article is about, e.g. ''the current B4192 between Swindon and Aldbourne'' <br/>
 
'''<for>''' - What the alternative article is about, e.g. ''the defunct route between Droitwich and Kidderminster'' <br/>
 
'''<title>''' - The name of the alternative page, no wikilinks, e.g. ''B4192 (Droitwich - Kidderminster)'' <br/>
 
'''<for2>''' / '''<for3>''' - (optional) What the second/third alternative article is about, e.g. ''the defunct route between Droitwich and Kidderminster''<br/>
 
'''<title2>''' / '''<title3>''' - (optional) The name of the second/third alternative page, no wikilinks, e.g. ''B4192 (Droitwich - Kidderminster)'' <br/>
 
 
 
 
 
'''Example 1'''<br/>
 
<nowiki>{{Dab| the current B4192 between [[Swindon]] and Aldbourne | the defunct route between Droitwich and [[Kidderminster]] | B4192 (Droitwich - Kidderminster) }}</nowiki>
 
 
 
gives
 
 
 
<div style="margin:6px;margin-right:300px;padding:6px;background-color:Beige;border:1px solid grey;text-align:center;">''This article is about the current B4192 between [[Swindon]] and Aldbourne.<br /> For the defunct route between Droitwich and [[Kidderminster]], see [[B4192 (Droitwich - Kidderminster)]]''.</div>
 
 
 
 
 
'''Example 2'''<br/>
 
<nowiki>{{Dab | the junction called Queen Square in [[Wolverhampton]] | other junctions called Queen or Queen's Square | Queens Square}}</nowiki>
 
 
 
gives
 
 
 
<div style="margin:6px;margin-right:300px;padding:6px;background-color:Beige;border:1px solid grey;text-align:center;">''This article is about the junction called Queen Square in [[Wolverhampton]].<br /> For other junctions called Queen or Queen's Square, see [[Queens Square]]''.</div>
 
</div>
 
[[Category:Templates]]
 
 
 
 
 
</noinclude><div style="margin:6px;margin-right:300px;padding:6px;background-color:Beige;border:1px solid grey;text-align:center;{{border-radius|8px 8px 8px 8px}};">''This article is about {{{1}}}.<br /> For {{{2}}}, see [[{{{3}}}]]''.{{#if: {{{4|}}}|<br/>''For {{{4}}}, see [[{{{5}}}]]''.}}{{#if: {{{6|}}}|<br/>''For {{{6}}}, see [[{{{7}}}]]''.}}</div>
 

Latest revision as of 20:22, 12 November 2015


This article is about {{{1}}}