User:Bongolium500/Sandbox 4: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
no edit summary
No edit summary
Line 4: Line 4:
Dab template with SMW integration for dab searching. Intended to replace [[template:Dab page|Dab page]].
Dab template with SMW integration for dab searching. Intended to replace [[template:Dab page|Dab page]].
<div id=dabtag style="margin-right:5px;{{#if:{{{clear|}}}|clear:left}}"><dl><dd style="text-indent:-10px;margin-right:10px"><span id="ss">''You may wish to consult <code>'''[[dab::{{{1|}}}]]'''</code> for other, similarly-named pages.''</span></dd></dl></div>
<div id=dabtag style="margin-right:5px;{{#if:{{{clear|}}}|clear:left}}"><dl><dd style="text-indent:-10px;margin-right:10px"><span id="ss">''You may wish to consult <code>'''[[dab::{{{1|}}}]]'''</code> for other, similarly-named pages.''</span></dd></dl></div>
<pre><div id=dabtag style="margin-right:5px;{{#if:{{{clear|}}}|clear:left}}"><dl><dd style="text-indent:-10px;margin-right:10px"><span id="ss">''You may wish to consult <code>'''[[dab::{{{1|}}}]]'''</code> for other, similarly-named pages.''</span></dd></dl></div></pre>
<pre><div id=dabtag style="margin-right:5px;{{#if:{{{clear|}}}|clear:left}}"><dl><dd style="text-indent:-10px;margin-right:10px"><span id="ss">''You may wish to consult <code>'''[[dab::{{{1|}}}]]'''</code> for other, similarly-named pages.''</span></dd></dl></div></pre>
Used in the same way as [[template:Dab page|Dab page]].
Used in the same way as [[template:Dab page|Dab page]].
Line 194: Line 195:
}}</pre>
}}</pre>
Takes one parameter, the dab term. Defaults to the dab page's name which will be fine in basically all circumstances. Used on the dab page to generate a slightly complex, automatically updated dab list.
Takes one parameter, the dab term. Defaults to the dab page's name which will be fine in basically all circumstances. Used on the dab page to generate a slightly complex, automatically updated dab list.
== Dab Template With SMW Integration and Extra Info ==
Dab template with SMW integration for dab searching. Intended to replace [[template:Dab page|Dab page]]. It also has an additional SMW property to improve some stuff.
<div id=dabtag style="margin-right:5px;{{#if:{{{clear|}}}|clear:left}}"><dl><dd style="text-indent:-10px;margin-right:10px"><span id="ss">''You may wish to consult <code>'''[[dab::{{{1|}}}]]'''</code> for other, similarly-named pages.''</span>{{#if:{{{2|}}}|<div class="mw-collapsible">[[dab what::{{{2|}}}]]</div>}}</dd></dl></div>
<pre><div id=dabtag style="margin-right:5px;{{#if:{{{clear|}}}|clear:left}}"><dl><dd style="text-indent:-10px;margin-right:10px"><span id="ss">''You may wish to consult <code>'''[[dab::{{{1|}}}]]'''</code> for other, similarly-named pages.''</span>{{#if:{{{2|}}}|<div class="mw-collapsible">[[dab what::{{{2|}}}]]</div>}}</dd></dl></div></pre>
== Simple Collapsible Automatically Updated Dab List With Info on What the Pages are ==
Designed to be used at the bottom of dab pages. It requires [[#Dab Template with SMW integration and Extra Info|this]] to work.
{{Navbox
|name      = {{{1|{{PAGENAME}}}}} dab page
|title      = Automatically updated {{{1|{{da|{{PAGENAME}}}}}}} disambiguation list
|state      = collapsed
|above      = This list is automatically updated. That way, it may be more up to date then the above. However, it isn't as easy to read and may include omissions when the template [[Template:Dab page|Dab page]] hasn't been correctly added.
|list1      =
<small>{{#ask: [[dab::{{{1|{{PAGENAME}}}}}]]
|?dab what #-
|format=ul
|offset=0
|limit={{NUMBEROFPAGES}}
|link=all
|sort=
|order=asc
|headers=show
|searchlabel=... further results
|propsep=,
|valuesep=,
}}</small>
|below    = To add a page to this list, simply add the template [[Template:Dab page|Dab page]] to it.
}}
<pre>{{Navbox
|name      = {{{1|{{PAGENAME}}}}} dab page
|title      = Automatically updated {{{1|{{da|{{PAGENAME}}}}}}} disambiguation list
|state      = collapsed
|above      = This list is automatically updated. That way, it may be more up to date then the above. However, it isn't as easy to read and may include omissions when the template [[Template:Dab page|Dab page]] hasn't been correctly added.
|list1      =
<small>{{#ask: [[dab::{{{1|{{PAGENAME}}}}}]]
|?dab what #-
|format=ul
|offset=0
|limit={{NUMBEROFPAGES}}
|link=all
|sort=
|order=asc
|headers=show
|searchlabel=... further results
|propsep=,
|valuesep=,
}}</small>
|below    = To add a page to this list, simply add the template [[Template:Dab page|Dab page]] to it.
}}</pre>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.