Difference between revisions of "Editing"

From Critiques Of Libertarianism
Jump to: navigation, search
Line 5: Line 5:
 
A major objective is creating indexes by using DPL to display links to and descriptions of pages that are in some category.  This is done with [[Template:List Category]].  It creates a definition list with the page title as the term to be defined, and the definition information is fetched with the metadata template [[Template:DES]].  The defined term is linked to the wiki page or (if the page has a metadata template [[Template:URL]]) to an external page.  This indexing system deliberately does no transclusion with DPL: all the information extracted comes from the page title and the metadata templates.
 
A major objective is creating indexes by using DPL to display links to and descriptions of pages that are in some category.  This is done with [[Template:List Category]].  It creates a definition list with the page title as the term to be defined, and the definition information is fetched with the metadata template [[Template:DES]].  The defined term is linked to the wiki page or (if the page has a metadata template [[Template:URL]]) to an external page.  This indexing system deliberately does no transclusion with DPL: all the information extracted comes from the page title and the metadata templates.
  
Constructing pages is largely done with transclusions and categories, to simplify and keep uniform the addition and maintenance of pages.
+
Pages indexing categories that resemble Category pages are easily constructed using [[Template:List Category]] like this:
 
+
Described, indexable resources are LOCAL wiki pages meant to be viewed directly or EXTERNAL wiki pages that (when transcluded) have external links.  When they are transcluded, they have a link on the top line followed by a description and a [more....] link.  These can be indexed by categories using Template:List Category.
+
 
+
LOCAL wiki pages meant to be viewed directly look like this:
+
  
 
<pre>
 
<pre>
[[Category:Something]]
+
{{List Category | cat = Some Category Name}}
[[Category:Another]]
+
{{DES | des = Short description to be transcluded.}}
+
Text to be shown when viewed directly.
+
 
</pre>
 
</pre>
  
EXTERNAL pages are seldom meant to be looked at directly.  When they are transcluded, clicking on their title takes you to the external link outside the wiki.  Clicking on the [more...] at the end takes you to the wiki page itself.  This can be useful if linkrot has occurred, or for reviews of the resource.
+
Here is an example wiki page that could be listed by the above:
  
 
<pre>
 
<pre>
[[Category:Something]]
+
<noinclude>[[Category:Some Category Name]][[Category:Another]]{{DES | des = Short description to be transcluded.}}</noinclude>
[[Category:Another]]
+
 
{{URL | url = the URL of the resource}}
 
{{URL | url = the URL of the resource}}
{{DES | des = Short description to be transcluded.}}
+
Text on the page.
Text to be shown when viewed directly (by clicking the [more...])
+
</pre>
+
 
+
Pages indexing categories that resemble Category pages are easily constructed using Template:List Category like this:
+
 
+
<pre>
+
{{List Category | cat = any category name}}
+
 
</pre>
 
</pre>
  
So all indexing is done by placing categories in a wiki page.  The indexes are dynamically built with DPL transclusionsYou can mix LOCAL and EXTERNAL resources in the indexes.
+
The above example is in the two categories explicitly listed, and [[Category:Description]] from the transcluded [[Template:DES]].  The presence of the [[Template:URL]] makes this list with an external link, but a link to the wiki page ([more...]) is appended after the descriptionIf the [[Template:URL]] is not there, the link is to the wiki page only.  The <nowiki><noinclude></nowiki> is not necessary unless this page is going to be transcluded elsewhere (since [[Template:List Category]] does not transclude.)
  
It's easiest to create a new resource by copying from another.
+
It's easiest to create a new page by copying from another, similar one.

Revision as of 00:15, 2 September 2010