Help:Editing: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
17 bytes added ,  26 May 2017
No edit summary
Tag: sourceedit
Tag: sourceedit
Line 279: Line 279:
A template is a pre-defined bit of coding that places the same text across multiple pages.  It can be as simple as a little system message, such as [[:Template:Current]] to a fairly complicated bit of coding that automatically calculates dates based upon the name of an article, like [[:Template:Timeline]].  
A template is a pre-defined bit of coding that places the same text across multiple pages.  It can be as simple as a little system message, such as [[:Template:Current]] to a fairly complicated bit of coding that automatically calculates dates based upon the name of an article, like [[:Template:Timeline]].  


One of the types of template you will most come into contact with here on tardis is the "infobox" template.  These save you a great deal of repetitive typing of similar information, such as is found on television story or novel pages. Just go to the [[Tardis:Templates|Templates page]] and scan down the list for the ones you need. Put <nowiki>{{template}}</nowiki> in your edit, replacing "template" with the name of the specific one you are using, such "Infobox CD". For infoboxes, you will need to fill in the variables accepted by the template, such as director, writer, or broadcast date.
One of the types of template you will most come into contact with here on tardis is the "infobox" template.  These save you a great deal of repetitive typing of similar information, such as is found on television story or novel pages. Just go to the [[:category:templates|master template category page]] and scan down the list for the ones you need. Put <nowiki>{{template}}</nowiki> in your edit, replacing "template" with the name of the specific one you are using, such "Infobox CD". For infoboxes, you will need to fill in the variables accepted by the template, such as director, writer, or broadcast date.


The actual writing of templates is a complicated subject, beyond the scope of this article.  
The actual writing of templates is a complicated subject, beyond the scope of this article.  
Line 292: Line 292:
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.


If you'd like more details, please see [[Help:Magic words]].  
If you'd like more details, please see [[Help:Magic words]].


== Suppressing markup ==
== Suppressing markup ==
85,404

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.