User:Bobogoobo/sandbox/format/doc

Documentation for the parent page, User:Bobogoobo/sandbox/format. If anyone reads this I will be amazed. -If using three parameters,  is the parameter to give the page and   is its value. If using two parameters,  can be anything (such as a series of parameters and values). If using one parameter, the default query string is  (File:). ->  ->   -> -  is   for the  blank row in between each section, otherwise not used. See linked section for examples. Overrides:  over ,   over  , etc;   over  ,  , etc, etc. Defaults:   to   to Characters;   to   to Elements; all colors to 000000. Etc. -All middle cells are optional (maximum four). Width total is 96%. Various table formatting is done automatically. See linked section for examples. -Default text to display is "here". -For a character:  - parameters   and   are optional and used to link to a particular episode's section in that gallery. -For an episode:  -   is optional and used to link to a section (case-sensitive, as always);   is optional and defaults to the raw link text. -I plan to expand this with support for  when linking to a character, and support for the new sub-sections in character galleries (adding   to that part of the code). Note that character gallery linking will not work correctly after 100 uses on a page (with season specified) due to needing to check for existence of season subpages and software limits thereof. Also, this uses nameconvert. ->  ->   ->   ->   -> -Additional text is optional and automatically placed in parentheses after the file links. ->  -> -Extra text is optional and if present goes after the link in parentheses. Extension is optional and defaults to png (case-sensitive). Text to display is optional and defaults to the file name (including extension). ->  ->   -> -Namespace must be a number and defaults to 6 (File:). ->  -> -Much formatting and such is done automatically. The default colors use Nightmare Moon's color scheme. Example can be seen at the top of User:Bobogoobo/sandbox. -Formatting is done automatically. is only used in the middle cell of each row to provide the border (just needs to be non-whitespace). is used to remove the automatically-used italic tags on, used when something in the quote would mess up that formatting. If  is omitted,   is simply used to go after the dash for attribution; otherwise,   is the season number and   is the episode number (plugged into nameconvert). Extra comment is optional and goes as is after the attribution and a line break. Examples can be seen in the linked section of my user page. - if non-whitespace gives the row a border to make the table look nice (should only be unused for the last row). This is not used for the very first and last opening and closing (respectively) row tags. Examples can be seen in the linked section. -Display text is required. overrides the video id to use a custom url string appended to "youtube.com/". uses YouTube's integrated anchor format for linking to a specific time in the video. ->  ->   ->
 * Main parameter is, required and case insensitive, to determine which set of formatting is used.   Possible values:
 * : determines the number of years (rounded down) that has passed since the date it is given (i.e. a birthday).
 * Example:  ->
 * : links to a user's contributions page, with the option to specify additional parameters.
 * Examples:
 * : used at User:Bobogoobo/sandbox to format each row.
 * : used at User:Bobogoobo/sandbox to format each table.
 * : used to link to a comparison between two revisions of a page. Get the URL from a "cur", "prev", or "Compare selected revisions" link and fill in.
 * Example:  ->
 * : links to a character or episode gallery page given some parameters, plus some optional ones. I plan to add support for linking to Pinkie's and Derpy's bonus galleries in the future.
 * Examples:
 * : easy way to link to two images for comparison, or whatever purpose.
 * Examples:
 * : used to link to a file page.
 * Examples:
 * : links to Special:PrefixIndex with specified parameters. I should add an output customization parameter.
 * Examples:
 * : used to format efficiently the pretty box at the top of my sandbox.
 * : used to format cells in my quotes table.
 * : used in conjunction with  and the surrounding table code in User:Bobogoobo; main purpose is to make that code more readable and nice.
 * : used to link to YouTube.
 * Examples:
 * Note that User:Bobogoobo/format redirects here, so the /sandbox part of each call can be omitted (this is preferable when not used on the direct parent page, which can be slash-shortcutted).