Namespaces
Variants
Actions

Difference between revisions of "Template:ctitle"

From cppreference.com
m (Protected "Template:ctitle": High traffic page ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
(+2)
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
<onlyinclude>{{title|<!--
+
<onlyinclude>{{#if: {{#pos: #MAGICTITLESTRING# | {{{1|}}}}}<!--
-->{{#if:{{{n|}}}|{{small|{{trim|{{{n}}}}}}}}}{{trim|{{{1|}}}}}<!--
+
-->|{{#replace:{{#replace:{{{n|}}}#MAGICTITLESTRING#|::#MAGICTITLESTRING#}}|#MAGICTITLESTRING#}}<!-- remove trailing '::', if any
-->{{#if:{{{2|}}}|<!--
+
-->|{{title|<!--
  -->, {{#if:{{{n|}}}|{{small|{{trim|{{{n}}}}}}}}}{{trim|{{{2}}}}}<!--
+
  -->{{#if:{{{n|}}}|{{small|{{trim|{{{n}}}}}}}}}{{trim|{{{1|}}}}}<!--
-->}}<!--
+
  -->{{#if:{{{2|}}}|<!--
-->{{#if:{{{3|}}}|<!--
+
    -->, {{#if:{{{n|}}}|{{small|{{trim|{{{n}}}}}}}}}{{trim|{{{2}}}}}<!--
  -->, {{#if:{{{n|}}}|{{small|{{trim|{{{n}}}}}}}}}{{trim|{{{3}}}}}<!--
+
  -->}}<!--
-->}}<!--
+
  -->{{#if:{{{3|}}}|<!--
 +
    -->, {{#if:{{{n|}}}|{{small|{{trim|{{{n}}}}}}}}}{{trim|{{{3}}}}}<!--
 +
  -->}}<!--
 +
  -->{{#if:{{{4|}}}|<!--
 +
    -->, {{#if:{{{n|}}}|{{small|{{trim|{{{n}}}}}}}}}{{trim|{{{4}}}}}<!--
 +
  -->}}<!--
 +
  -->{{#if:{{{5|}}}|<!--
 +
    -->, {{#if:{{{n|}}}|{{small|{{trim|{{{n}}}}}}}}}{{trim|{{{5}}}}}<!--
 +
  -->}}<!--
 +
  -->{{#if:{{{6|}}}|<!--
 +
    -->, {{#if:{{{n|}}}|{{small|{{trim|{{{n}}}}}}}}}{{trim|{{{6}}}}}<!--
 +
  -->}}<!--
 +
  -->{{#if:{{{7|}}}|<!--
 +
    -->, {{#if:{{{n|}}}|{{small|{{trim|{{{n}}}}}}}}}{{trim|{{{7}}}}}<!--
 +
  -->}}<!--
 +
  -->{{#if:{{{8|}}}|<!--
 +
    -->, {{#if:{{{n|}}}|{{small|{{trim|{{{n}}}}}}}}}{{trim|{{{8}}}}}<!--
 +
  -->}}<!--
 +
  -->}}<!--
 
-->}}</onlyinclude>
 
-->}}</onlyinclude>
 
{{documentation | Template:title/doc}}
 
{{documentation | Template:title/doc}}

Latest revision as of 10:34, 11 April 2018

[edit] [{{purge}}] Template documentation

Sets the title of the page. The title can include the following formatting elements: <small>, <big>, <abbr>, <b>, <center>, <code>, <del>, <em>, <font>, <i>, <ins>, <s>, <strong>, <strike>, <s>, <span>, <sub>, <sup>, <u>, <tt>

{{title| custom title}} - general utility to set page title

{{ctitle| n=namespace| object1| object2 ...}} - sets page title of a page that describes a library component.

If object1 contains phrase #MAGICTITLESTRING#, title is not altered, n is returned instead.