Difference between revisions of "Meta:Templates"
From Synfig Studio :: Documentation
(гыу <nowiki>{{</nowiki>Title<nowiki>}}</nowiki>) |
(Category template) |
||
Line 3: | Line 3: | ||
= User Templates = | = User Templates = | ||
Those templates can (and often should) be used in page body. | Those templates can (and often should) be used in page body. | ||
+ | |||
+ | == Category == | ||
+ | * '''Location''': {{l|Template:Category}} | ||
+ | * '''Description''': Specifies category page belongs to. | ||
+ | * '''Examples''': <nowiki>{{Category|MyCategory}}</nowiki>. | ||
== L == | == L == | ||
Line 19: | Line 24: | ||
== GetTitle == | == GetTitle == | ||
* '''Location''': {{l|Template:GetTitle}} | * '''Location''': {{l|Template:GetTitle}} | ||
− | * '''Description''': Returns custom title of a page set with <nowiki>{{ | + | * '''Description''': Returns custom title of a page set with <nowiki>{{Title}}</nowiki> template in the page body. |
* '''Examples''': | * '''Examples''': | ||
{| width="100%" | {| width="100%" |
Revision as of 17:44, 13 January 2010
Here's a list of templates used to improve this wiki functionality.
Contents
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}}.
L
- Location: Template:L
- Description: Creates link to another page, providing proper localization support.
- Examples: See Meta:LinksTest/ru.
Title
- Location: Template:Title
- Description: Sets custom title for a page.
- Examples: See sources of Main_Page, Doc:Getting_Started, Doc:Getting_Started/ru pages.
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
- Location: Template:PagenameFromLink
- Description: Extracts page name from given link.
- Examples:
Code: | Result: | Comments: |
{{PagenameFromLink|Doc:Getting_Started#Introduction}} | Doc:Getting_Started | |
{{PagenameFromLink|layers}} | Layers | |
{{PagenameFromLink|:Category:Manual}} | Category:Manual |
Title.dpl
- Location: Template:Title.dpl
- Description: Utility template used by GetTitle template and DPL for page title extraction. See this link.
Title.dpl.default
- Location: Template:Title.dpl.default
- Description: Utility template used by GetTitle template and DPL for page title extraction. See this link.