User:Rob T Firefly/sandbox: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
(→‎Category: adding a longer note)
(Replaced content with "Burp.")
 
Line 1: Line 1:
Here I have an article, with a footnote<ref>This be a footnote, encased in &lt;ref&gt; tags.</ref>, as propagated by {{tlx|reflist}}.
Burp.
 
==Category==
Let's now list a category, using the handy &lt;dpl&gt; tags.
<dpl>
category=San Francisco locations
columns=3
format= ,\n* [[%PAGE%|%TITLE%]],,
</dpl>
 
As of this edit, adding the &lt;dpl&gt; tags seems to prevent the [[:Template:reflist|reflist]] from appearing.
:Though this indeed was an issue, the limitation seems to have been overcome by the upgrade to DPL 2.0. {{user:CzechOut/Sig}}{{User:CzechOut/TimeFormat}} 16:11: Sat 08 Feb 2014</span>
::Note, however, a new wrinkle. With earlier versions of DPL, if you said this:
<pre><dpl>
category=San Francisco locations
columns=3
</dpl></pre>
::...you'd have gotten perfect links to not only the articles in that category, but also the subcat, [[:Category:San Francisco streets]].  Now, though, you have to define a format, otherwise it'll think '''San Francisco streets''' is just a page, and so the link will take you to a "Zero Room", this-page-ain't-here thingie.  So, here's what you add, provided you want to do a standard, bulleted list:
<pre>
<dpl>
category=San Francisco locations
columns=3
format= ,\n* [[%PAGE%|%TITLE%]],,
</dpl>
</pre>
::If you wanted to actually show the '''Category:''' bit before the category name, you'd just use {{tt|<nowiki>[[%PAGE%]]</nowiki>}}, without [[pipe trick]]ing to the {{tt|%TITLE%}}.
 
::Also, the #tag way of writing up DPL statements seems to be more flexible in this new version. For instance, it can accept [[magic word]]s like {{tt|<nowiki>{{PAGENAME}}</nowiki>}}, whereas the HTML way can't.  So it may be worthwhile to just get in the habit of using this form instead:
<pre>
{{#dpl:
|category=San Francisco locations
|columns=3
|format= ,\n* [[%PAGE%|%TITLE%]],,
}}
</pre>
::They do the same thing, and in this particular case there is no difference which is apparent to the user, but there are certainly cases where the HTML way of expressing things totally craps out in 2.0, even though it worked perfectly fine in 1.9. {{user:CzechOut/Sig}}{{User:CzechOut/TimeFormat}} 16:29: Sat 08 Feb 2014</span>
 
==Footnotes==
{{reflist}}

Latest revision as of 20:27, 24 February 2014

Burp.