Difference between revisions of "Notes"
From Critiques Of Libertarianism
Line 1: | Line 1: | ||
− | == Implementation Tricks== | + | == Languages == |
+ | Initially, I thought using mediawiki would be a very easy way to build my site. But it turned out that it really called upon many of my nerdy skills. | ||
+ | |||
+ | # Wikitext -- the mediawiki markup language; the bulk of the work is in this. | ||
+ | # HTML -- needed intermittently in conjunction with wikitext. | ||
+ | # DPL -- Dynamic Page List, an extension that allows more complicated lists than mediawiki categories. | ||
+ | # PHP -- mediawiki is implemented in and configured with PHP. | ||
+ | # javascript -- I use it primarily for forms that generate wikitext for new articles. | ||
+ | # XML -- I use dumps from Delicious Library in XML. Typing in hundreds of books is much more tedious than scanning them. | ||
+ | # Python -- I use it primarily to generate wikitext for new articles about books from XML dumps. | ||
+ | # Various extensions: DPL, Nuke, Interwiki, ParserFunctions, StringFunctions | ||
+ | # CSS -- not yet used, but fundamental to the display of a wiki. | ||
+ | |||
+ | == Implementation Tricks == | ||
Producing indexes using categories is simple, but had several ugly drawbacks: | Producing indexes using categories is simple, but had several ugly drawbacks: | ||
* Their titles all start with "Category:". | * Their titles all start with "Category:". | ||
− | |||
* Categories do not let you add extra information beyond the title of a page. | * Categories do not let you add extra information beyond the title of a page. | ||
* Categories do not let you mix wiki pages with external links. | * Categories do not let you mix wiki pages with external links. | ||
Line 11: | Line 23: | ||
* Extensions ParserFunctions, StringFunctions, DynamicPageList. | * Extensions ParserFunctions, StringFunctions, DynamicPageList. | ||
* [[:Template:DES]] which allows me to associate descriptions with each page. | * [[:Template:DES]] which allows me to associate descriptions with each page. | ||
+ | * [[:Template:URL]] which allows me to optionally associate an external URL with a page. | ||
* Index templates [[:Template:List]] and [[:Template:Quotations]]. These let me list categories with DPL and display descriptions with each page. If a page is for an external link, that link is used rather than the internal wiki link. | * Index templates [[:Template:List]] and [[:Template:Quotations]]. These let me list categories with DPL and display descriptions with each page. If a page is for an external link, that link is used rather than the internal wiki link. | ||
* Link templates, [[:Template:Link]], let me treat internal and external links uniformly, relying on the single URL stored on a page. | * Link templates, [[:Template:Link]], let me treat internal and external links uniformly, relying on the single URL stored on a page. |