User:Makthorpe/Proposal02


Name: Show-Info template (Former name:More)


General: Template Show-Info displays links, interwiki links, and multilingual text corresponding to features found in an image. See discussion Template talk:Show-Info for more info.


Purpose: Displays various information on each of a maximum of 4 possible subjects. Each subject name is separated by a | bar, and corresponds to a Page of the same name with the Info: prefix.


Usage Example: {{Show-Info|Foo|Bar}} displays information contained in Info:Foo and Info:Bar pages. Information is interleaved where possible. On Category versus Article versus Image pages, some elements may or may not appear by default. All elements may be requested to be displayed or not displayed by option. See Info:Help for further assistance.


Internal details This Module calls others which will display the information in the Info Template. The operations in this particular module are error handling only: verifying that parameters are reasonable- If not, the user is informed before further operands are considered. If the Info Template pages does not exist, the user will be informed if on a Category Page and given an edit link to create the missing Info: Page. To facillitate simple use by those tagging new images, if no info Page with that name exists, the page will be given the corresponding category of that name, and the page will be added to the Category:Info Templates-needed Error category.