Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

User:Rob T Firefly/sandbox

From Tardis Wiki, the free Doctor Who reference
< User:Rob T Firefly
Revision as of 16:29, 8 February 2014 by CzechOut (talk | contribs) (→‎Category: adding a longer note)

Here I have an article, with a footnote[1], as propagated by {{reflist}}.

Category

Let's now list a category, using the handy <dpl> tags.


As of this edit, adding the <dpl> tags seems to prevent the reflist from appearing.

Though this indeed was an issue, the limitation seems to have been overcome by the upgrade to DPL 2.0.
czechout<staff />    16:11: Sat 08 Feb 2014
Note, however, a new wrinkle. With earlier versions of DPL, if you said this:
<dpl>
category=San Francisco locations
columns=3
</dpl>
...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:
<dpl>
category=San Francisco locations
columns=3
format= ,\n* [[%PAGE%|%TITLE%]],,
</dpl>
If you wanted to actually show the Category: bit before the category name, you'd just use [[%PAGE%]], without pipe tricking to the %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 words like {{PAGENAME}}, whereas the HTML way can't. So it may be worthwhile to just get in the habit of using this form instead:
{{#dpl:
|category=San Francisco locations
|columns=3
|format= ,\n* [[%PAGE%|%TITLE%]],,
}}
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.
czechout<staff />    16:29: Sat 08 Feb 2014

Footnotes

  1. This be a footnote, encased in <ref> tags.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.