User:Rob T Firefly/sandbox: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
(→‎Category: adding a longer note)
Line 11: Line 11:
As of this edit, adding the <dpl> tags seems to prevent the [[:Template:reflist|reflist]] from appearing.
As of this edit, adding the <dpl> 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>
: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==
==Footnotes==
{{reflist}}
{{reflist}}

Revision as of 16:29, 8 February 2014

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.