Module:Sandbox/28bytes/acm/doc: Difference between revisions
imported>28bytes add documentation |
(No difference)
|
Latest revision as of 00:03, 10 December 2018
gettitle edit source
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 source
- Formatting specifiers, in any order:
qto display the title excluding the disambiguator (if any) in quotestto display the title excluding the disambiguator (if any) in italics?to display this symbol after the article title: File:Symbol question.svgGto display this symbol after the article title: File:Symbol support vote.svgoto display ‹› after the article title
- Article title excluding the disamiguator (required)
- Disambiguator (optional)
Usage examples edit source
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) File:Symbol question.svg
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)" File:Symbol question.svg
For an album title without a parenthetical disambiguator:
{{#invoke:Sandbox/28bytes/acm|gettitle|?Gt|Move Like This}}- displays Move Like This File:Symbol question.svgFile:Symbol support vote.svg