Actions

DramaWiki

Difference between revisions of "List of Templates"

From DramaWiki

 
m
Line 75: Line 75:
 
! What to type !! What it looks like !! Comment
 
! What to type !! What it looks like !! Comment
 
|-
 
|-
| <nowiki>{{</nowiki>[[Template:CategoryTOC|CategoryTOC]]<nowiki>}}</nowiki><br>([[Template talk:CategoryTOC|Talk]], [[Special:Whatlinkshere/Template:CategoryTOC|list]])
+
| | <nowiki>{{</nowiki>[[Template:CategoryTOC|CategoryTOC]]<nowiki>}}</nowiki><br>([[Template talk:CategoryTOC|Talk]], [[Special:Whatlinkshere/Template:CategoryTOC|list]])
 
| {{CategoryTOC}}
 
| {{CategoryTOC}}
 
|
 
|
 
*creates an alphabetical index for a category
 
*creates an alphabetical index for a category
 
*used on category pages
 
*used on category pages
 +
|-
 +
||<nowiki>{{</nowiki>[[Template:CategoryTOCYear|CategoryTOCYear]]<nowiki>}}</nowiki><br>([[Template talk:CategoryTOCYear|Talk]], [[Special:Whatlinkshere/Template:CategoryTOCYear|list]])
 +
| {{CategoryTOCYear}}
 +
|
 +
*creates an year index for a drama category
 
|}
 
|}
  

Revision as of 02:38, 16 July 2005


Templates are used within articles to provide a consistent look to often used and thus repeating messages. Changes to the look, wording, or style of the message can be implemented quickly, because templates are rendered for the reader when the article loads. This page lists some useful templates available in WikiDrama and explains how to use them.

Template messages

Template messages are used on pages for information purposes only. They are often displayed in boxes.

What to type What it looks like Comment
{{spoiler}}
(Talk, list)
can be added within the text of a page right before a spoiler
{{airing}}
(Talk, list)
This drama is currently airing.
Some information on this page may be incomplete, missing or even wrong.
to be added to the top of a page of a drama that is still airing on TV
{{CatDramaHelp|category}}
Talk, list
{{CatDramaHelp|JDrama1998}} gives:

To add a drama to this category simply add the following line to that drama's entry.
 [[Category:JDrama1998]]
If no entry for that drama exists yet you will need to create it first. (see Help page)
  • explains how to categorize drama pages.
  • used on drama category pages.
{{CatArtistHelp|category}}
Talk, list
{{CatArtistHelp|KActress}} gives:

To add an artist to this category simply add the following to that artist's entry.
 [[Category:KActress]]
If no entry for that artist exists yet you will need to create it first. (see Help page)
  • explains how to categorize artist pages.
  • used on artist category pages.
{{CatPersonHelp|category}}
Talk, list
{{CatPersonHelp|KDirector}} gives:

To add a person to this category simply add the following to that person's entry.
 [[Category:KDirector]]
If no entry for that person exists yet you will need to create it first. (see Help page)
  • explains how to categorize person pages.
  • used on person category pages.
{{CatDrama|helptext}}
(Talk, list)
{{CatDrama|<pre>[[Category:JDrama1983]]</pre>}}
Template:CatDrama
  • drama category usage help
  • please use the newer {{CatDramaHelp|category}} instead
{{CatArtist|helptext}}
(Talk, list)
{{CatArtist|<pre>[[Category:KActor]]</pre>}}
Template:CatArtist
  • old artist category usage help
  • please use the newer {{CatArtistHelp|category}} instead
{{CatPeople|helptext}}
(Talk, list)
{{CatPeople|<pre>[[Category:KDirector]]</pre>}}
Template:CatPeople
  • old person category usage help
  • please use the newer {{CatPersonHelp|category}} instead

Maintenance templates

Besides informational purposes maintenance templates are used for better administration of pages. These templates usually put the pages into a special category to make them easier to find.

What to type What it looks like Comment
{{stub}}
(Talk, list)
This article is a stub. You can help DramaWiki by expanding it.
marks an incomplete page as stub
and puts the page into the stub category

Navigational templates

Navigational templates are used to create menus for easier navigation.

What to type What it looks like Comment
{{CategoryTOC}}
(Talk, list)
  • creates an alphabetical index for a category
  • used on category pages
{{CategoryTOCYear}}
(Talk, list)
  • creates an year index for a drama category

See also