Template:DW/Parentitle
Template page
More actions
no-parenthesis-style
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
Template loop detected: Template:DW/Parentitle/doc
The above text is transcluded from Template:DW/Parentitle/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:DW/Parentitle/doc. (View all subpages of this page.)
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:DW/Parentitle/doc. (View all subpages of this page.)
This template is used to determine if the no-parenthesis-style class is to be added to a page, 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}}}}}
This template should be placed inside of a class attribute and can be combined with other classes, eg:
<span class="{{parentitle|{{{name}}}}}">...</span>or
{| class="infobox {{parentitle|{{{name}}}}}" ...