Template:SD PAGENAME: Difference between revisions

From Ring of Brodgar
Jump to navigation Jump to search
m (MvGulik moved page Template:SD pagename to Template:SD PAGENAME without leaving a redirect: make full caps, more inline with target usage.)
(Add special support for use inside Math statements, (+doc cleanup).)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:Template}}|<span style="color:{{RoB color|pagename}};"><i><nowiki>{{PAGENAME}}</nowiki></i></span>|{{PAGENAME}}}}</includeonly
<includeonly


><noinclude>Alternative "{{ {{PAGENAME}}}}" display inside (SharedData) templates themself.</noinclude>
>{{#ifeq:{{NAMESPACE}}|{{ns:Template}}
|  {{#ifeq:{{{math|}}}|{{{math}}}
  |\definecolor{Darkslategray}{rgb}{0.18,0.31,0.31}{\color{Darkslategray}\{\{\mathsf{PAGENAME}\}\} }
  |<span style="color:{{RoB color|pagename}};"><i><nowiki>{{PAGENAME}}</nowiki></i></span>
  }}
| {{#if:{{{1|}}}
  | {{#if:{{{2|}}}
    |{{#sub: {{PAGENAME}} | {{{1}}} | {{{2}}} }}
    |{{#sub: {{PAGENAME}} | {{{1}}} }}
    }}
  |{{PAGENAME}}
  }}
}}</includeonly
 
><noinclude>{{documentation}}</noinclude>

Latest revision as of 21:02, 16 August 2022

Template documentation (for the template shown above, sometimes hidden or invisible)

Alternative {{PAGENAME}}call that displays "{{PAGENAME}}" in templates when viewing the templates directly, instead of displaying the current template name.
Mainly used in the SharedData templates.

Supports additional {{...|start(nr)|length(nr)}} input to select a sub-section of the page title.
(only active outside the template namespace).

Template SDm_PAGENAME will do the same job, but for inside Math statements. (needs to use alternative math statement).


Visit Template:SD PAGENAME/doc to edit this text! (How does this work?)