User talk:MarkS/Tabs
Jump to navigation
Jump to search
parameters
Hello, MarkS. I was also starting to make a template for tabs but you had already started it. Yours work well so I would like to merge my ideas to it. My idea for parameters is the following.
Parameter name | Required | Purpose |
1 | Yes | The actual page name to link for tab 1. |
label1 | No | The label for tab 1 instead of the page name. The default is to use the 1 value |
2 | Yes | The actual page name for tab 2. |
3 | No | The actual page name for tab 3. If 3 is not supplied then tab number 3 will not be displayed |
4 | No | The actual page name for tab 4. If 4 is not supplied then tab number 4 will not be displayed |
5 | No | The actual page name for tab 5. If 5 is not supplied then tab number 5 will not be displayed |
6 | No | The actual page name for tab 6. If 6 is not supplied then tab number 6 will not be displayed. |
selected | No | The selected tab. May be either an integer which then selects the appropriate tab or a text value in which case it selects the tab showing the text. Using a text value may be easier as it allows swapping the order of tabs without having to update the selected number for each page. Default value is the page name using this template.:{{FULLPAGENAME}} |
by using numbers as parameter names, we don't have to make parameter names. It looks simpler like {{tabs|A|B|C|D}}. The selected tab would be automatically detected by comparing the page names with FULLPAGENAME. Aren't they simpler? --Nazotoko 20:46, 3 July 2009 (UTC)