Template:Parentitle: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Created page with "{{#if:{{{1|}}}|{{#ifeq:{{{1}}}|{{#replace:{{#replace:{{PAGENAME}}|'|'}}|&|&}}|no-parenthesis-style|}}|no-parenthesis-style}}<noinclude>{{/doc}}</noinclude>") |
(No difference)
|
Latest revision as of 17:53, 15 October 2024
no-parenthesis-style
Template documentation
This documentation is transcluded from Template:Parentitle/doc. [edit] [history] [purge]
This template is used to determine if the no-parenthesis-style class is to be added to a page, in order to suppress the styling applied to parentheses in article titles. See rsw:Forum:Two visual changes for more information.
Usage
{{parentitle|parameter to check}}
The template checks the parameter against the pagename. If they are the same, or if the parameter is empty, the class is added, otherwise nothing is added.
The most common usage (as implemented in most infoboxes) is{{parentitle|{{{name}}}}}
<span class="{{parentitle|{{{name}}}}}">...</span>or
{| class="infobox {{parentitle|{{{name}}}}}" ...