A tool that evaluates high-risk Wikipedia templates https://tools.wmflabs.org/earwig-dev/tif
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

48 linhas
1.8 KiB

  1. <%include file="/support/header.mako" args="title='TIF Calculator'"/>
  2. <form action="${request.script_root}" method="get">
  3. % if "title" in result:
  4. <input type="text" name="title" value="${result['page'].title if 'page' in result else result['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 class="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"])} views/min</td>
  26. </tr>
  27. <tr>
  28. <td>Transclusions</td>
  29. <td>${result["transclusions"]}</td>
  30. </tr>
  31. <tr>
  32. <td>Protection</td>
  33. % if result["protection"]:
  34. <td><span class="prot-level prot-${result['protection']['level']}">${result["protection"]["level"]}</span> until <span class="prot-expiry">${result["protection"]["expiry"]}</span></td>
  35. % else:
  36. <td><span class="prot-none">None</span></td>
  37. % endif
  38. </tr>
  39. </table>
  40. % if "cache_time" in result:
  41. <div id="result-cache">Pageview data is cached from up to <abbr title="${result['cache_time']}">${result["cache_age"]} ago</abbr>.</div>
  42. % endif
  43. </div>
  44. % endif
  45. <%include file="/support/footer.mako"/>