Difference between revisions of "Template:Title format"

From Moegirlpedia
Jump to: navigation, search
(Fixed)
(Changed category)
 
Line 3: Line 3:
 
-->{{#ifeq:{{{ignore|}}}|:||{{#vardefine: str |{{Trim_prefix|{{#var:str}}}}}}}}<!-- Colon handling
 
-->{{#ifeq:{{{ignore|}}}|:||{{#vardefine: str |{{Trim_prefix|{{#var:str}}}}}}}}<!-- Colon handling
 
-->{{DISPLAYTITLE:{{#var:str}}}}<!-- Title replacement
 
-->{{DISPLAYTITLE:{{#var:str}}}}<!-- Title replacement
-->{{SafeCate|nsidExclude=2,3|Formatted page}} {{ac|{{#ifeq:{{#var:str}}|{{PAGENAME}}|Wrongly formatted page}}}}<noinclude>{{doc}}[[Category:Formatting templates]]</noinclude>
+
-->{{SafeCate|nsidExclude=2,3|Formatted page}} {{ac|{{#ifeq:{{#var:str}}|{{PAGENAME}}|Wrongly formatted page}}}}<noinclude>{{doc}}[[Category:Templates affecting page content]]</noinclude>

Latest revision as of 16:07, 6 March 2022

Template-info.svg Template Documentation  [View] [Edit] [History] [Refresh]

Introduction

This template is used to format the titles of some pages or subpages with disambiguation annotations.

There are mainly the following situations:

  1. oo(xx) → oo
  2. oo:xx → xx
  3. oo/xx → xx
  4. oo/xx/.../zz → zz

Not all ambiguous articles need to be formatted, please select according to actual needs.

Example usage

{{Title format}}

The effect is already produced on this page. (Originally titled "Template:Title format")

Use the parameter ignore to ignore a formatting rule:

  • [ignore=/] Subpages are not processed
  • [ignore=()] The parentheses at the end are not processed
  • [ignore=:] The prefix colon is not processed

Warnings