User:Remiaw/Templates/Parentheses/doc

This metatemplate is meant to help in automatic linking or styling in templates. Its main function is to remove parentheses from page titles when used as parameter inputs, or to add them following a common rule, when disambiguation pages exist in your wiki.

Parameters

 * 1
 * If the value is, it removes the final text in brackets to the input provided in parameter 2. If it's other text, it adds that text into parentheses to the end of 2. If no input is provided, it returns 2 as is.


 * 2
 * Here goes the title to be modified.

Examples
Practical uses may be:
 * If 1=quit and 2=Human After All (song), result will be: Human After All
 * If 1=album and 2=Homework, result will be: Homework (album)
 * At the header of an infobox.
 * Developing autolinking parameters: you can provide only the name you use in the page to link (that is, brackets included) and do  to have to fill only one parameter when using the template.