mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-12 09:24:17 +00:00
b313bbe485
Refactor and rewrite the templatedata editor to make it more flexible and adaptable to new types. Separating the model from the gui, and adding new and improved unit tests. Also added features: * Map depracated param types into current types. * Retrieve template code from top template page if we are in a subpage. * Mark parameters that do not appear in the template code. * Add parameter types and a more flexible way to add and adjust the types. * Add a link to TemplateData documentation from the main edit page. * Add support for paramOrder; order the parameters according to the given array. * Make the template parameter table sortable so users can change the paraOrder. Bug: 59745 Bug: 65951 Bug: 66920 Bug: 67310 Bug: 67621 Change-Id: I65a76c2b772ef76c5dbbe71dd433c881c097b202
90 lines
1.5 KiB
CSS
90 lines
1.5 KiB
CSS
.tdg-editscreen-main-button {
|
|
padding: 5px;
|
|
font-size: 120%;
|
|
}
|
|
|
|
.tdg-editscreen-main-helplink {
|
|
margin-left: 15px;
|
|
}
|
|
|
|
.tdg-parameters-table {
|
|
width: 100%;
|
|
}
|
|
|
|
.tdg-editTable th,
|
|
.tdg-parameters-table td {
|
|
padding: 0;
|
|
}
|
|
|
|
.tdg-parameters-table th {
|
|
text-align: left;
|
|
}
|
|
|
|
.tdg-parameters-table > tbody > tr:hover > td {
|
|
background-color: #BECDD4;
|
|
}
|
|
|
|
.tdg-parameters-table input,
|
|
.tdg-parameters-table select,
|
|
.tdg-parameters-table textarea,
|
|
.tdg-template-description {
|
|
background: transparent;
|
|
-moz-box-sizing: border-box;
|
|
-webkit-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.tdg-parameters-table input:not([type="checkbox"]),
|
|
.tdg-parameters-table select,
|
|
.tdg-parameters-table textarea {
|
|
width: 100%;
|
|
border: 1px solid #999999;
|
|
padding: 5px;
|
|
height: 40px;
|
|
}
|
|
|
|
.tdg-editTable .tdg-title-delbutton,
|
|
.tdg-title-required {
|
|
width: 80px;
|
|
}
|
|
.tdg-editTable .tdg-attr-required {
|
|
text-align: center;
|
|
}
|
|
.tdg-editTable .tdg-attr-required label {
|
|
display: block;
|
|
}
|
|
.tdg-attr-type select {
|
|
padding-top: 15px;
|
|
}
|
|
.tdg-attr-type {
|
|
width: 130px;
|
|
text-align: center;
|
|
}
|
|
|
|
.tdg-editTable .tdgerror {
|
|
background-color: #F2CBCB;
|
|
}
|
|
|
|
.tdg-not-in-template {
|
|
background: #E6E6FF;
|
|
}
|
|
|
|
/* Start small, grow on focus: */
|
|
.tdg-table-head-delbutton {
|
|
width: 100px;
|
|
}
|
|
|
|
.tdg-table-head-suggested,
|
|
.tdg-table-head-required {
|
|
width: 100px;
|
|
}
|
|
|
|
textarea.param-type-input:focus,
|
|
input[type="text"].param-type-input:focus {
|
|
min-width: 200px;
|
|
}
|
|
|
|
textarea.param-type-input:focus {
|
|
height: 70px;
|
|
}
|