Changes

Jump to navigation Jump to search
1,476 bytes added ,  14:13, 31 December 2016
bold text on self links (including translation pages)
<onlyinclude>{{#ifeq:{{FULLPAGENAME:Manual:{{{1|}}} table}}|{{FULLPAGENAME:{{translatable}}}}<!--self link (including translation pages)-->
|<b>
}}[[Special:MyLanguage/Manual:{{{1|}}} table#{{{2|}}}|{{{3|{{{1|}}}{{#if:{{{2|}}}|.{{{2}}}}}}}}]]<!--
-->{{#ifeq:{{FULLPAGENAME:Manual:{{{1|}}} table}}|{{FULLPAGENAME:{{translatable}}}}<!--self link (including translation pages)-->
|</b>
}}</onlyinclude><noinclude>
==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==
* <code><nowiki>{{db table|interwiki}}</nowiki></code> &rarr; {{db table|interwiki}}
* <code><nowiki>{{db table|revision|rev_id}}</nowiki></code> &rarr; {{db table|revision|rev_id}}
* <code><nowiki>{{db table|user|user_id|User ID}}</nowiki></code> &rarr; {{db table|user|user_id|User ID}}

[[Category:Templates]]
</noinclude>
Anonymous user

Navigation menu