User:Rob T Firefly/sandbox
From Tardis Wiki, the free Doctor Who reference
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.
- Walker General Hospital
- Institute for Technological Advancement and Research
- Alcatraz
- Golden Gate Bridge
- The Haight
- San Francisco streets
- The Psychadelic Shop
- I-Thou
- Chinatown
- San Francisco parks
- Palace Hotel
- Nob Hill
- Grillroom
- Telegraph Hill
- Rubicon (The Gift)
- Grand Metropolitan Opera House
- Potrero Hill
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%]],, }}
Footnotes
- ↑ This be a footnote, encased in <ref> tags.