A tool that evaluates high-risk Wikipedia templates https://tools.wmflabs.org/earwig-dev/tif
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <%include file="/support/header.mako" args="title='TIF Calculator'"/>
  2. <form action="${request.script_root}" method="get">
  3. % if result["title"]:
  4. <input type="text" name="title" value="${query['page'].title if 'page' in query else query['title'] | h}" />
  5. % else:
  6. <input type="text" name="title" />
  7. % endif
  8. <button type="submit">Submit</button>
  9. </form>
  10. % if "error" in result:
  11. <div id="error">
  12. % if result["error"] == "no page":
  13. <p>Can't find the given page: <a href="${result['page'].url}">${result["page"].title | h}</a>.</p>
  14. % else:
  15. An unknown error occurred.
  16. % endif
  17. </div>
  18. % endif
  19. % if "tif" in result:
  20. <div id="result">
  21. <div id="result-page"><a href="${result['page'].url}">${result["page"].title | h}</a></div>
  22. <table>
  23. <tr>
  24. <td>TIF</td>
  25. <td>${"{0:.2f}".format(result["tif"])}</td>
  26. </tr>
  27. <tr>
  28. <td>Transclusions</td>
  29. <td>${result["transclusions"]}</td>
  30. </tr>
  31. <tr>
  32. <td>Protection</td>
  33. <td>${result["protection"]}</td>
  34. </tr>
  35. </table>
  36. % if "cache" in result and result["cache"]:
  37. <div id="result-cache">Pageview data is cached from up to <abbr title="${result['cache_time']}">${result["cache_age"]} ago</abbr>.</div>
  38. % endif
  39. </div>
  40. % endif
  41. <%include file="/support/footer.mako"/>