Difference between revisions of "Meta:Templates"

From Synfig Studio :: Documentation
Jump to: navigation, search
(split templates by type)
(Briefly document templates providing support for localized links)
Line 1: Line 1:
 +
Here's a list of templates used to improve this wiki functionality.
 +
 
= User Templates =
 
= User Templates =
 +
Those templates can (and often should) be used in page body.
 +
 +
== L ==
 +
* '''Location''': {{l|Template:L}}
 +
* '''Description''': Creates link to another page, providing proper localization support.
 +
* '''Examples''': See {{l|Meta:LinksTest/ru|Meta:LinksTest/ru}}.
 +
 
== Title ==
 
== Title ==
...
+
* '''Location''': {{l|Template:Title}}
 +
* '''Description''': Sets custom title for a page.
 +
* '''Examples''': See sources of {{l|Main_Page|Main_Page}}, {{l|Doc:Getting_Started|Doc:Getting_Started}}, {{l|Doc:Getting_Started/ru|Doc:Getting_Started/ru}} pages.
  
 
= Internal Templates =
 
= Internal Templates =
 +
Templates below are not intended for direct use in page body. They are usually invoked by high-level templates listed above.
 +
 
== GetTitle ==
 
== GetTitle ==
 
* '''Location''': {{l|Template:GetTitle}}
 
* '''Location''': {{l|Template:GetTitle}}
Line 16: Line 29:
 
|<nowiki>{{GetTitle|Doc:Getting_Started/ru}}</nowiki>  
 
|<nowiki>{{GetTitle|Doc:Getting_Started/ru}}</nowiki>  
 
|Первые шаги
 
|Первые шаги
|Look at the source of [[Doc:Getting_Started/ru]] page.
+
|Look at the source of {{l|Doc:Getting_Started/ru|Doc:Getting_Started/ru}} page.
 
|}
 
|}
  
Line 38: Line 51:
 
|Category:Manual
 
|Category:Manual
 
|}
 
|}
 +
 +
== Title.dpl ==
 +
* '''Location''': {{l|Template:Title.dpl}}
 +
* '''Description''': Utility template used by [[#GetTitle|GetTitle]] template and DPL for page title extraction. See [http://semeb.com/dpldemo/index.php?title=DPL:Manual_-_DPL_parameters:_Controlling_output_volume#include_contents_related_to_templates this link].
 +
 +
 +
== Title.dpl.default ==
 +
* '''Location''': {{l|Template:Title.dpl.default}}
 +
* '''Description''': Utility template used by [[#GetTitle|GetTitle]] template and DPL for page title extraction. See [http://semeb.com/dpldemo/index.php?title=DPL:Manual_-_DPL_parameters:_Controlling_output_volume#include_contents_related_to_templates this link].

Revision as of 17:13, 13 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.

L

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

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