Khác biệt giữa bản sửa đổi của “Bản mẫu:Displaytitle”

Nội dung được xóa Nội dung được thêm vào
n Fixed sort key
n {{documentation}}
Dòng 2:
--><span id="displaytitle" <!--
-->title="{{#if:{{{tab|{{{1|}}}}}}|tab:{{{tab|{{{1}}}}}}{{!}}}}title:{{{title|{{{2|{{#titleparts:{{PAGENAME}}|1}}}}}}}}" /><!--
--></includeonly><noinclude>{{documentation}}</noinclude>
This template allows the page tab and/or the title name to be changed. This can be used to fix names due to technical limitations or to use an alternative name.
 
== Usage ==
It takes two optional variables:
* <code>title</code>: sets the title to something different.
* <code>tab</code>: sets the page tab to something different.
 
== Example ==
This page has been modified with
<pre>{{displaytitle|title=The displaytitle template|tab=it's a template}}</pre>
{{displaytitle|title=The displaytitle template|tab=it's a template}}
[[Category:Page formatting templates|{{PAGENAME}}]]
</noinclude>