Template:L: Difference between revisions

From XionKB
Jump to navigationJump to search
m (fix casing)
(simplify)
Line 1: Line 1:
<onlyinclude><span style="background-color:rgb(248,248,248);background-color:rgba(248,248,248,0.5);border:1px solid;border-color:rgb(170,170,170);border-color:rgba(170,170,170,0.5);border-radius:0.35rem;padding:0.125rem"><span style="font-family:'Source Code Pro',monospace;text-transform:uppercase">[[{{{1}}}|{{#explode:{{{1}}}{{!}}:{{!}}0{{!}}1}}.{{ns2ext|{{#if:{{#pos:{{{1}}}|:|0}}|{{#explode:{{{1}}}|:|1|1}}|}}}}]]</span>&nbsp;<em>{{{2}}}</em></span></onlyinclude>
<onlyinclude><span style="background-color:rgb(248,248,248);background-color:rgba(248,248,248,0.5);border:1px solid;border-color:rgb(170,170,170);border-color:rgba(170,170,170,0.5);border-radius:0.35rem;padding:0.125rem">[[{{{1}}}|<span style="font-family:'Source Code Pro',monospace;text-transform:uppercase">{{{2}}}.{{ns2ext|{{{1}}}}}</span>]]&nbsp;<em>{{{3}}}</em></span></onlyinclude>
 
This template pairs together physical page names with their long form renditions as seen through <code>DISPLAYTITLE</code>. The first parameter is the page's namespace (which can be left blank in the case of mainspace pages), the second is the physical name, and the third is the logical (long form) name.


[[Category:Inline templates]][[Category:Link templates]]
[[Category:Inline templates]][[Category:Link templates]]

Revision as of 02:55, 8 March 2023

[[{{{1}}}|{{{2}}}.222]] {{{3}}}

This template pairs together physical page names with their long form renditions as seen through DISPLAYTITLE. The first parameter is the page's namespace (which can be left blank in the case of mainspace pages), the second is the physical name, and the third is the logical (long form) name.