User:Bongolium500/Sandbox 4: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
No edit summary
Line 9: Line 9:
<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::Untitled]]'''</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::Untitled]]'''</code> for other, similarly-named pages.''</span></dd></dl></div>


== Simple Dab ==
== Simple Automatically Updated Dab List ==
Produces a simple dab page when used in conjunction with the above.
Produces a simple dab page when used in conjunction with the above.
{{#ask: [[dab::{{{1|{{pagename}}}}}]]
{{#ask: [[dab::{{{1|{{PAGENAME}}}}}]]
  |format=ul
  |format=ul
  |limit=50
  |limit=50
Line 23: Line 23:
  |valuesep=,  
  |valuesep=,  
}}
}}
<pre>{{#ask: [[dab::{{{1|{{pagename}}}}}]]
<pre>{{#ask: [[dab::{{{1|{{PAGENAME}}}}}]]
  |format=ul
  |format=ul
  |limit=50
  |limit=50
Line 36: Line 36:
}}</pre>
}}</pre>
Takes one parameter, the dab term. Used on the dab page to generate a basic, automatically updated dab page.
Takes one parameter, the dab term. Used on the dab page to generate a basic, automatically updated dab page.
== Collapsible Automatically Updated Dab List ==
{{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.
<small>{{#ask: {{{1|{{PAGENAME}}}}}
|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.
}}

Revision as of 17:04, 11 June 2021

I can't test any of this but I think it would work.

Dab Template with SMW intergration

Dab template with SMW integration for dab searching. Intended to replace Dab page.

You may wish to consult ' for other, similarly-named pages.
<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>

Used in the same way as Dab page.

Example Output:

You may wish to consult Untitled for other, similarly-named pages.

Simple Automatically Updated Dab List

Produces a simple dab page when used in conjunction with the above.

{{#ask: [[dab::{{{1|{{PAGENAME}}}}}]]
 |format=ul
 |limit=50
 |offset=0
 |link=all
 |sort=
 |order=asc
 |headers=show
 |searchlabel=... further results
 |propsep=, 
 |valuesep=, 
}}

Takes one parameter, the dab term. Used on the dab page to generate a basic, automatically updated dab page.

Collapsible Automatically Updated Dab List