summaryrefslogtreecommitdiff
path: root/po/underlays/directives/ikiwiki/directive/if.cs.po
blob: 0996c78450dc64c823a20326cbbf0a1b827be2cb (plain)
  1. # SOME DESCRIPTIVE TITLE
  2. # Copyright (C) YEAR Free Software Foundation, Inc.
  3. # This file is distributed under the same license as the PACKAGE package.
  4. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
  5. #
  6. #, fuzzy
  7. msgid ""
  8. msgstr ""
  9. "Project-Id-Version: PACKAGE VERSION\n"
  10. "POT-Creation-Date: 2011-05-05 20:04+0300\n"
  11. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  12. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  13. "Language-Team: LANGUAGE <LL@li.org>\n"
  14. "Language: \n"
  15. "MIME-Version: 1.0\n"
  16. "Content-Type: text/plain; charset=UTF-8\n"
  17. "Content-Transfer-Encoding: 8bit\n"
  18. #. type: Plain text
  19. msgid ""
  20. "The `if` directive is supplied by the [[!iki plugins/conditional "
  21. "desc=conditional]] plugin."
  22. msgstr ""
  23. #. type: Plain text
  24. msgid ""
  25. "With this directive, you can make text be conditionally displayed on a "
  26. "page. For example:"
  27. msgstr ""
  28. #. type: Plain text
  29. #, no-wrap
  30. msgid ""
  31. "\t\\[[!if test=\"enabled(smiley)\"\n"
  32. "\t then=\"The smiley plugin is enabled :-)\"\n"
  33. "\t else=\"No smiley plugin here..\"]]\n"
  34. msgstr ""
  35. #. type: Plain text
  36. msgid ""
  37. "If the specified `test` succeeds, the `then` text will be displayed, "
  38. "otherwise the `else` text will be displayed. The `else` part is optional."
  39. msgstr ""
  40. #. type: Plain text
  41. msgid ""
  42. "The `then` and `else` values can include any markup that would be allowed in "
  43. "the wiki page outside the template. Triple-quoting the values even allows "
  44. "quotes to be included."
  45. msgstr ""
  46. #. type: Plain text
  47. msgid ""
  48. "The `test` is a [[ikiwiki/PageSpec]]; if it matches any page in the wiki "
  49. "then it succeeds. So you can do things like testing for the existence of a "
  50. "page or pages, testing to see if any pages were created in a given month, "
  51. "and so on."
  52. msgstr ""
  53. #. type: Plain text
  54. msgid ""
  55. "If you want the [[ikiwiki/PageSpec]] to only match against the page that "
  56. "contains the conditional, rather than matching against all pages in the "
  57. "wiki, set the \"all\" parameter to \"no\"."
  58. msgstr ""
  59. #. type: Plain text
  60. msgid ""
  61. "In an `if` directive, the regular [[ikiwiki/PageSpec]] syntax is expanded "
  62. "with the following additional tests:"
  63. msgstr ""
  64. #. type: Bullet: '* '
  65. msgid "enabled(plugin)"
  66. msgstr ""
  67. #. type: Plain text
  68. #, no-wrap
  69. msgid " Tests whether the specified plugin is enabled.\n"
  70. msgstr ""
  71. #. type: Bullet: '* '
  72. msgid "sourcepage(glob)"
  73. msgstr ""
  74. #. type: Plain text
  75. #, no-wrap
  76. msgid ""
  77. " Tests whether the glob matches the name of the page that contains the\n"
  78. " conditional.\n"
  79. msgstr ""
  80. #. type: Bullet: '* '
  81. msgid "destpage(glob)"
  82. msgstr ""
  83. #. type: Plain text
  84. #, no-wrap
  85. msgid ""
  86. " Tests whether the glob matches the name of the page that is being built.\n"
  87. " That might be different than the name of the page that contains the\n"
  88. " conditional, if it's being inlined into another page.\n"
  89. msgstr ""
  90. #. type: Bullet: '* '
  91. msgid "included()"
  92. msgstr ""
  93. #. type: Plain text
  94. #, no-wrap
  95. msgid ""
  96. " Tests whether the page is being included onto another page, for example\n"
  97. " via [[inline]] or [[map]]. Note that pages inserted into other pages\n"
  98. " via [[template]] are not matched here.\n"
  99. msgstr ""
  100. #. type: Plain text
  101. #, no-wrap
  102. msgid "[[!meta robots=\"noindex, follow\"]]\n"
  103. msgstr ""