Difference between revisions of "Meta:Templates"

From Synfig Studio :: Documentation
Jump to: navigation, search
(User Templates: Better description)
(User Templates: Stub template)
Line 11: Line 11:
 
== CategoryContents ==
 
== CategoryContents ==
 
* '''Location''': {{l|Template:CategoryContents}}
 
* '''Location''': {{l|Template:CategoryContents}}
* '''Description''': Lists all pages in the specified category. Output is localized, so if you use {{CategoryContents|Example}} on Spanish page, you will automatically get content of Example/es category and the page titles will be replaced with their Spanish translations.
+
* '''Description''': Lists all pages in the specified category. Output is localized, so if you use <nowiki>{{CategoryContents|Example}}</nowiki> on Spanish page, you will automatically get content of Example/es category and the page titles will be replaced with their Spanish translations.
 
* '''Examples''': <nowiki>{{CategoryContents|MyCategory}}</nowiki>.
 
* '''Examples''': <nowiki>{{CategoryContents|MyCategory}}</nowiki>.
  
Line 18: Line 18:
 
* '''Description''': Creates link to another page, providing proper localization support.
 
* '''Description''': Creates link to another page, providing proper localization support.
 
* '''Examples''': See {{l|Meta:LinksTest/ru|Meta:LinksTest/ru}}.
 
* '''Examples''': See {{l|Meta:LinksTest/ru|Meta:LinksTest/ru}}.
 +
 +
== Stub ==
 +
* '''Location''': {{l|Template:Stub}}
 +
* '''Description''': Mark page as a stub.
 +
* '''Examples''': <nowiki>{{Stub}}</nowiki>.
  
 
== Title ==
 
== Title ==

Revision as of 19:17, 30 January 2010

Here's a list of templates used to improve this wiki functionality.

User Templates

Those templates can (and often should) be used in page body.

Category

  • Location: Template:Category
  • Description: Specifies category page belongs to.
  • Examples: {{Category|MyCategory}}.

CategoryContents

  • Location: Template:CategoryContents
  • Description: Lists all pages in the specified category. Output is localized, so if you use {{CategoryContents|Example}} on Spanish page, you will automatically get content of Example/es category and the page titles will be replaced with their Spanish translations.
  • Examples: {{CategoryContents|MyCategory}}.

L

  • Location: Template:L
  • Description: Creates link to another page, providing proper localization support.
  • Examples: See Meta:LinksTest/ru.

Stub

  • Location: Template:Stub
  • Description: Mark page as a stub.
  • Examples: {{Stub}}.

Title

Internal Templates

Templates below are not intended for direct use in page body. They are usually invoked by high-level templates listed above.

GetTitle

  • Location: Template:GetTitle
  • Description: Returns custom title of a page set with {{Title}} template in the page body.
  • Examples:
Code: Result: Comments:
{{GetTitle|Doc:Getting_Started/ru}} Первые шаги Look at the source of Doc:Getting_Started/ru page.

PagenameFromLink

Code: Result: Comments:
{{PagenameFromLink|Doc:Getting_Started#Introduction}} Doc:Getting_Started
{{PagenameFromLink|layers}} Layers
{{PagenameFromLink|:Category:Manual}} Category:Manual

Title.dpl


Title.dpl.default