Difference between revisions of "Template:List"

From Critiques Of Libertarianism
Jump to: navigation, search
 
Line 1: Line 1:
<includeonly>{{#dpl:category = {{{1|{{PAGENAME}}}}}|notcategory=Quotations|ordermethod = sortkey|include = {URL}.dpl,{DES}.dpl|format = ,,\n,}}</includeonly><noinclude>== Usage ==
+
<includeonly>[[Category:Lists A Category]]
<code><nowiki>{{List | any category}}  <!-- if the argument is omitted, PAGENAME is used --></nowiki><code>
+
{{#if: {{{links|}}} |== Links ==}}
 +
{{#dpl:category={{{title|{{{1|%TITLE%}}}}}}|notcategory=Quotations|addcategories=true|noresultsheader=Nothing in this index yet.|addeditdate = true|ordermethod = sortkey,firstedit|include = {URL}.dpl,{Availability}.dpl,{List}.dpl,{DES}.dpl|format =,,{{#ifeq: {{CURRENTUSER}} | Mhuben | <br><small> {{Red| %CATNAMES% }}</small> |}}\n,}}</includeonly><noinclude>== Usage ==
 +
<code><nowiki>{{List | any category}}  <!-- if the argument is omitted, PAGENAME is used --></nowiki></code>
  
 
This template lists all the pages in a category, using DPL to display their titles and descriptions as definition lists.  The titles are linked either within the wiki or to external URLs.  The entries are sorted using the sortkey of the category.
 
This template lists all the pages in a category, using DPL to display their titles and descriptions as definition lists.  The titles are linked either within the wiki or to external URLs.  The entries are sorted using the sortkey of the category.
Line 8: Line 10:
 
If the description of a page in the category is set by transcluding [[Template:DES]], the description is displayed by  [[Template:DES.dpl]].  Otherwise the description comes from [[Template:DES.dpl.default]].
 
If the description of a page in the category is set by transcluding [[Template:DES]], the description is displayed by  [[Template:DES.dpl]].  Otherwise the description comes from [[Template:DES.dpl.default]].
 
   
 
   
[[Template:List]] should have no side-effects because it performs no actual transclusions: all the information is from metadata.
+
[[Template:List]] has one side effect: it places the including page into [[:Category:Lists A Category]].
  
See: [[Template:URL]], [[Template:URL.dpl]], [[Template:URL.dpl.default]], [[Template:DES]], [[Template:DES.dpl]], and [[Template:DES.dpl.default]].</noinclude>
+
If there is a DPL error when using this template, it is likely due to a character such as a single quote, pipe, or ampersand.  Use a category argument with those characters replaced by period, the pattern to match any character.  Other SQL pattern matching problems might be due to ?, $, +, * and other characters with special meanings.
 +
 
 +
[[Template:List]] should have no other side-effects because it performs no actual transclusions: all the information is from metadata.
 +
 
 +
See: [[Template:URL]], [[Template:URL.dpl]], [[Template:URL.dpl.default]], [[Template:DES]], [[Template:DES.dpl]], [[Template:DES.dpl.default]], and  [[Template:Category Age]].</noinclude>

Latest revision as of 12:27, 17 February 2014