Memory Alpha
Memory Alpha
m (=Monthly Features=)
m (copyedit)
(47 intermediate revisions by 20 users not shown)
Line 1: Line 1:
  +
{{shortcut|MA:T}}
The '''MediaWiki custom messages''' are a way to create standardized blocks of text. In order to create a new custom message, simply create a page in the MediaWiki namespace, named "MediaWiki:", followed by a name for the message, that contains the text of the message. You may want to consider protecting the messages you create (if you have administrator privileges), but see the talk page for a discussion of this. Please list any custom messages you create on this page.
 
  +
{{ma nav|Policies and guidelines}}
  +
'''Templates''' are a method by which the MediaWiki software includes standardized blocks of text in an article. These blocks are stored in separate pages in the "Template:" [[Help:namespace|namespace]], and are automatically updated wherever they are included site-wide, whenever template page is updated. In other words, when the template is updated, you do not need to update any pages that use it.
   
  +
Templates have a wide range of uses on Memory Alpha, and are grouped into six major categories:
There are two major ways to include custom messages, <tt>subst</tt> and <tt>msg</tt>. <tt>subst</tt> makes a copy of the message text and places it where you put the tag after you save an article (substitution), <tt>msg</tt> loads the message and puts it on the page every time you load it.
 
   
  +
* '''{{ma|Message templates}}'''. These templates are used to include standardized information that is of general interest to the readers and/or article contributors. They are generally intended to catch one's attention and inform them of the status of the article, whether it be a warning of a copyright violation, a request for comments, or a disambiguation notice.
In other words, when the message is updated, you do not need to update a page that uses it if you use <tt>msg</tt>. As a guideline, short, temporal messages that will be removed soon should be copied using subst (which has the advantage of showing the message in the wiki source), and standard notices that might remain on a page for months or forever should be transcluded for easy updating. (You should not use <tt>msg</tt> for a message which contain any links which may change in the future. This method doesn't refresh ''"What links here"'' unless ''every'' article containing the <tt>msg</tt> get changed after the modification of the link in the message.)
 
  +
* '''{{ma|Navigational templates}}'''. Users can also create navigation bars that link multiple articles together in a single menu. This is most useful for articles in a series, or for a group of articles that cover a common subject.
  +
* '''{{ma|Sidebar templates}}'''. Some articles use standardized "sidebars" to help display an informal overview of the subject at hand. These sidebar templates are useful to make it simple to include the information in a consistent manner across the entire site.
  +
* '''{{ma|Meta templates}}'''. There are a number of pages in the "Memory Alpha" namespace that exhibit a very high rate of turnover; these include the {{ma|pages for deletion}}, {{ma|featured article nominations}}, the [[Main Page|main page]], and others. In these cases, it is beneficial to include text that is not likely to be changed in a separate template, because it helps conserve disk space by not saving the same text over and over again.
  +
* '''{{ma|Inline templates}}'''. These are templates designed to be used as inline text, whether to format something, allow for consistent link conventions, or simply to make life easier.
   
  +
==See also==
When you add new MediaWiki custom messages, please help keep the table in alphabetical order.
 
  +
* [[Help: Template]]s
  +
* [[Memory Alpha: Template documentation]]
   
  +
[[Category:Memory Alpha guidelines|Template]]
==General Messages==
 
  +
[[bg:Memory Alpha:Шаблон]]
{| class="grey"
 
  +
[[cs:Memory Alpha:Šablony]]
|-
 
  +
[[de:Memory Alpha:Vorlagen]]
! Name
 
  +
[[fr:Memory Alpha:Modèle]]
! Current Text
 
  +
[[nl:Memory Alpha:Sjablonen]]
|-
 
  +
[[sr:Успомене Алфе:Шаблон]]
| <nowiki>{{</nowiki>msg:[[MediaWiki:attentionneeded|attentionneeded]]}}
 
  +
[[sv:Memory Alpha:Mallar]]
| {{msg:attentionneeded}}
 
  +
<!--[[tl:Memorya Alpha:Tagalog]]-->
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:constedits|constedits]]}}
 
| {{msg:constedits}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:copyvio|copyvio]]}}
 
| {{msg:copyvio}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:copyvio1|copyvio1]]}}
 
| {{msg:copyvio1}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:copyvio2|copyvio2]]}}
 
| {{msg:copyvio2}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:copyvioimage|copyvioimage]]}}
 
| {{msg:copyvioimage}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:deletion|deletion]]}}
 
| {{msg:deletion}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:deletionimage|deletionimage]]}}
 
| {{msg:deletionimage}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:disambig|disambig]]}}
 
| {{msg:disambig}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:fac|fac]]}}
 
| {{msg:fac}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:factualerror|factualerror]]}}
 
| {{msg:factualerror}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:Featured|Featured]]}}
 
| {{msg:featured}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:imagecopyright|imagecopyright]]}}
 
| {{msg:imagecopyright}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:imagefairuse|imagefairuse]]}}
 
| {{msg:imagefairuse}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:imageparamount|imageparamount]]}}
 
| {{msg:imageparamount}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:international|international]]}}
 
|
 
{{msg:international}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:internationalshort|internationalshort]]}}
 
| {{msg:internationalshort}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:inuse|inuse]]}}
 
| {{msg:inuse}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:sandbox|sandbox]]}}
 
| {{msg:sandbox}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:stub|stub]]}}
 
| {{msg:stub}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:test|test]]}}
 
| {{msg:test}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:tenforward|tenforward]]}}
 
| ''See link for text.''
 
|}
 
 
 
 
==Article Headers and Footers==
 
{| class="grey"
 
|-
 
! Name
 
! Current Text
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:compactTOC|compactTOC]]}}
 
| {{msg:compactTOC}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:DWB|DWB]]}}
 
| {{msg:DWB}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:namelistnote|namelistnote]]}}
 
| {{msg:namelistnote}}
 
|}
 
 
==Main Page Content==
 
===Monthly Features===
 
{| class="grey"
 
|-
 
! Name
 
! Current Text
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:TrekHistoryJanuary|TrekHistoryJanuary]]}}
 
|
 
{{msg:TrekHistoryJanuary}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:TrekHistoryFebruary|TrekHistoryFebruary]]}}
 
|
 
{{msg:TrekHistoryFebruary}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:TrekHistoryMarch|TrekHistoryMarch]]}}
 
|
 
{{msg:TrekHistoryMarch}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:TrekHistoryApril|TrekHistoryApril]]}}
 
|
 
{{msg:TrekHistoryApril}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:TrekHistoryMay|TrekHistoryMay]]}}
 
|
 
{{msg:TrekHistoryMay}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:TrekHistoryJune|TrekHistoryJune]]}}
 
|
 
{{msg:TrekHistoryJune}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:TrekHistoryJuly|TrekHistoryJuly]]}}
 
|
 
{{msg:TrekHistoryJuly}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:TrekHistoryAugust|TrekHistoryAugust]]}}
 
|
 
{{msg:TrekHistoryAugust}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:TrekHistorySeptember|TrekHistorySeptember]]}}
 
|
 
{{msg:TrekHistorySeptember}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:TrekHistoryOctober|TrekHistoryOctober]]}}
 
|
 
{{msg:TrekHistoryOctober}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:TrekHistoryNovember|TrekHistoryNovember]]}}
 
|
 
{{msg:TrekHistoryNovember}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:TrekHistoryDecember|TrekHistoryDecember]]}}
 
|
 
{{msg:TrekHistoryDecember}}
 
|}
 
 
==Featured Articles==
 
{| class="grey"
 
|-
 
! Name
 
! Current Text
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:Latestepisodes|Latestepisodes]]}}
 
| {{msg:Latestepisodes}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:Populartopics|Populartopics]]}}
 
| {{msg:Populartopics}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:Unwrittentopics|Unwrittentopics]]}}
 
| {{msg:Unwrittentopics}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:Mustreads|Mustreads]]}}
 
| {{msg:Mustreads}}
 
|-
 
| <nowiki>{{</nowiki>msg:[[MediaWiki:ArticleOfTheWeek|ArticleOfTheWeek]]}}
 
| {{msg:ArticleOfTheWeek}}
 
|}
 
 
==Other==
 
* [[Memory Alpha:Book Sources]] - for the [[Special:Booksources]] page.
 

Revision as of 17:13, 14 July 2014

Memory Alpha AboutPolicies and guidelines → Template

Templates are a method by which the MediaWiki software includes standardized blocks of text in an article. These blocks are stored in separate pages in the "Template:" namespace, and are automatically updated wherever they are included site-wide, whenever template page is updated. In other words, when the template is updated, you do not need to update any pages that use it.

Templates have a wide range of uses on Memory Alpha, and are grouped into six major categories:

  • Message templates. These templates are used to include standardized information that is of general interest to the readers and/or article contributors. They are generally intended to catch one's attention and inform them of the status of the article, whether it be a warning of a copyright violation, a request for comments, or a disambiguation notice.
  • Navigational templates. Users can also create navigation bars that link multiple articles together in a single menu. This is most useful for articles in a series, or for a group of articles that cover a common subject.
  • Sidebar templates. Some articles use standardized "sidebars" to help display an informal overview of the subject at hand. These sidebar templates are useful to make it simple to include the information in a consistent manner across the entire site.
  • Meta templates. There are a number of pages in the "Memory Alpha" namespace that exhibit a very high rate of turnover; these include the pages for deletion, featured article nominations, the main page, and others. In these cases, it is beneficial to include text that is not likely to be changed in a separate template, because it helps conserve disk space by not saving the same text over and over again.
  • Inline templates. These are templates designed to be used as inline text, whether to format something, allow for consistent link conventions, or simply to make life easier.

See also