Module:Sandbox/28bytes/acm/doc
Appearance
| This is a documentation subpage for Module:Sandbox/28bytes/acm. It may contain usage information, categories and other content that is not part of the original module page. |
gettitle
[edit]This function accepts an article title and formats it with quotes or italics as specified (useful for songs, albums and books.) It can also optionally add a "Did you know" indicator and/or Good Article indicator following the article title.
Arguments
[edit]- Formatting specifiers, in any order:
- Article title excluding the disamiguator (required)
- Disambiguator (optional)
Usage examples
[edit]For a song title with a parenthetical disambiguator that should not be in quotation marks:
{{#invoke:Sandbox/28bytes/acm|gettitle|?q|Cinema|(Yes song)}}- displays "Cinema" (Yes song)
For a song title with a parenthetical that should be in quotation marks, as it is part of the title:
{{#invoke:Sandbox/28bytes/acm|gettitle|?q|I.G.Y. (What a Beautiful World)}}- displays "I.G.Y. (What a Beautiful World)"
For an album title without a parenthetical disambiguator:
{{#invoke:Sandbox/28bytes/acm|gettitle|?Gt|Move Like This}}- displays Move Like This
