Namespaces
Variants
Views
Actions

Difference between revisions of "Template:rl/doc"

From cppreference.com
m (mark lc title optional)
(move to Template:lc/doc)
Line 1: Line 1:
 
This is one of templates used to make links.
 
This is one of templates used to make links.
 
Identifier link:
 
 
{{tl|lc|''identifier''|''title'' {{mark optional}} }} - link to a page using a C/C++ identifier name. The link is generated from periodically updated lists for [[MediaWiki:Autolinker-definition-c|C]] and [[MediaWiki:autolinker-definition-cpp|C++]] based on the [[Template:get_lang|language]] of the page. It is ok to use an identifier ''not'' in the current lists - it will still be displayed, without a link, but eventually when the lists are updated it will get the link. Link font is {{tt|teletype}}.
 
  
 
Absolute links:
 
Absolute links:

Revision as of 03:08, 9 February 2020

This is one of templates used to make links.

Absolute links:

{{ltt|path|title (optional)}} - link to a page using absolute path. The default title is only the last part of the path. Link font is teletype.

{{ltf|path|title (optional)}} - link to a page using absolute path. The default title is only the last part of the path. Link font is teletype. Parentheses indicating function are appended.

{{l2tt|page|title1 (optional)| title2 (optional)}} - makes a link to a page using absolute path. The title is formed from the two last parts of the path. :: is inserted between them. Each of these parts can be overridden by title1 and title2. Link font is teletype.

Relative links:

{{rl|page|title (optional)}} - makes a link to a page relative to this page. The link appears in normal font.

{{rlp|page|title (optional)}} - makes a link to a page relative to the parent page. The link appears in normal font.

{{rlt|page|title (optional)}} - makes a link to a page relative to this page. The link appears in teletype font.

{{rlpt|page|title (optional)}} - makes a link to a page relative to the parent page. The link appears in teletype font.