228,854
edits
(5.1 Corrected spelling/grammar) |
m (Bot: Automated text replacement (-''Battlefield'' +''Battlefield (TV story)'')) |
||
Line 286: | Line 286: | ||
Beyond the templates that we have created are templates that are inherent in the MediaWiki software. These are not fully listed anywhere on this wiki, and do not appear in [[:Category:Templates]]. A good place to start one's understanding of these type of templates is at [[Wikipedia:Help:Magic words]]. | Beyond the templates that we have created are templates that are inherent in the MediaWiki software. These are not fully listed anywhere on this wiki, and do not appear in [[:Category:Templates]]. A good place to start one's understanding of these type of templates is at [[Wikipedia:Help:Magic words]]. | ||
They are called "magic" because they do things with one simple word that conceals rather a lot of complicated coding. Most editors of wikis, even those very experienced with template coding, don't really understand the underlying code that makes them work. Hence, as was once remarked in ''[[Battlefield]]'', any sufficiently advanced technology is indistinguishable from magic. | They are called "magic" because they do things with one simple word that conceals rather a lot of complicated coding. Most editors of wikis, even those very experienced with template coding, don't really understand the underlying code that makes them work. Hence, as was once remarked in ''[[Battlefield (TV story)|Battlefield]]'', any sufficiently advanced technology is indistinguishable from magic. | ||
Magic words include things like <nowiki>{{PAGENAME}}</nowiki>, which returns the name of the page you're on; <nowiki>{{CURRENTDAY}}</nowiki>, which tells you the current day; <nowiki>__NOTOC__</nowiki>, which strips a page of its table of contents; <nowiki>{{#ifeq|}}</nowiki>, which compares two strings, and then takes action depending on whether they match; and <nowiki>{{DEFAULTSORT}}</nowiki>, which automatically forces an article to sort in a category in a certain way. | Magic words include things like <nowiki>{{PAGENAME}}</nowiki>, which returns the name of the page you're on; <nowiki>{{CURRENTDAY}}</nowiki>, which tells you the current day; <nowiki>__NOTOC__</nowiki>, which strips a page of its table of contents; <nowiki>{{#ifeq|}}</nowiki>, which compares two strings, and then takes action depending on whether they match; and <nowiki>{{DEFAULTSORT}}</nowiki>, which automatically forces an article to sort in a category in a certain way. |