Modül:AttributePicker: Revizyonlar arasındaki fark
Gezinti kısmına atla
Arama kısmına atla
"local p = {} local Attributes = require("Modül:FMAttributes") function p.render(frame) local bindName = frame.args.bind or "attributes" local html = "" html = html .. '<tr><td colspan="2" style="font-size:12px;color:#555;">Seçim Yap:</td></tr>' for _, attr in ipairs(Attributes) do html = html .. string.format([[ <tr> <td style="width:28px;text-align:center;"> <input type="checkbox" name="%s" value="%s" class="attr..." içeriğiyle yeni sayfa oluşturdu |
Değişiklik özeti yok |
||
| 12. satır: | 12. satır: | ||
<tr> | <tr> | ||
<td style="width:28px;text-align:center;"> | <td style="width:28px;text-align:center;"> | ||
<input type="checkbox" name="%s" value="%s" class="attribute-select"> | <input type="checkbox" name="%s" value="%s" class="attribute-select"/> | ||
</td> | </td> | ||
<td>%s</td> | <td>%s</td> | ||
| 19. satır: | 19. satır: | ||
end | end | ||
html = html .. string.format([[ | html = html .. string.format([[ | ||
<tr> | <tr> | ||
| 29. satır: | 27. satır: | ||
]], bindName) | ]], bindName) | ||
return html | return frame:preprocess(html) | ||
end | end | ||
return p | return p | ||
08.51, 4 Aralık 2025 tarihindeki hâli
Bu modül için bir Modül:AttributePicker/belge belgelendirmesi oluşturabilirsiniz
local p = {}
local Attributes = require("Modül:FMAttributes")
function p.render(frame)
local bindName = frame.args.bind or "attributes"
local html = ""
html = html .. '<tr><td colspan="2" style="font-size:12px;color:#555;">Seçim Yap:</td></tr>'
for _, attr in ipairs(Attributes) do
html = html .. string.format([[
<tr>
<td style="width:28px;text-align:center;">
<input type="checkbox" name="%s" value="%s" class="attribute-select"/>
</td>
<td>%s</td>
</tr>
]], bindName, attr, attr)
end
html = html .. string.format([[
<tr>
<td colspan="2" style="text-align:center;padding:8px;">
<button class="attribute-generate" data-bind="%s">Seçimi Uygula</button>
</td>
</tr>
]], bindName)
return frame:preprocess(html)
end
return p