User tips: Difference between revisions
revert edits to fix search where character encoding was a problem |
Add explanation of how it works with link to documentation |
||
| Line 12: | Line 12: | ||
| include = {Messagebox}:type:text | | include = {Messagebox}:type:text | ||
| table = class="wikitable sortable",, Type, Tip | | table = class="wikitable sortable",, Type, Tip | ||
| tablerow =\n< | | tablerow =\n<span class="message-box message-%%">%%\n</span>,%% | ||
}} | }} | ||
This list is generated by the [[mw:Extension: | This list is generated by the [[mw:Extension:DynamicPageList3|DynamicPageList3 extension]]. | ||
== DPL Query == | |||
Here is the DPL query that generates the content. DPL3 comes with code for the [https://www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion Labelled Section Transclusion] extension. So, if you are familiar with the LST extension, you get that "for free" with DPL. | |||
;[https://dpl3.wikitide.org/wiki/Criteria_for_page_selection#uses uses]: is pretty straightforward. | |||
;[https://dpl3.wikitide.org/wiki/Controlling_output_volume#include include]: Include pages (whole content) or include certain sections of articles or template parameters. It is important to understand how <code>table</code> and <code>tablerow</code> work if you want to output tabular data with <code>include</code>. | |||
<pre> | |||
{{#dpl: | |||
| uses = Template:Messagebox | |||
| nottitlematch = Messagebox | |||
| include = {Messagebox}:type:text | |||
| table = class="wikitable sortable",, Type, Tip | |||
| tablerow =\n<span class="message-box message-%%">%%\n</span>,%% | |||
}} | |||
</pre> | |||
[[Category:Wiki]] | [[Category:Wiki]] | ||