Template:Db table
From Linux Web Expert
Template documentation
Usage
<templatedata> {
"description": "Display a link to the Manual page of a MediaWiki database table, optionally linking to the section describing a specific column.", "params": { "1": { "label": "Table name", "description": "Name of the database table", "required": true, "type": "string" }, "2": { "label": "Column name", "description": "Optional name of the column section to link to", "required": false, "type": "string" }, "3": { "label": "Alternatively displayed text", "description": "Optional text to display instead of the table and/or field name", "required": false, "type": "string" } }
} </templatedata>
Example
{{db table|interwiki}}
→ interwiki{{db table|revision|rev_id}}
→ revision.rev_id{{db table|user|user_id|User ID}}
→ User ID