User Tools

Site Tools


dokuwiki_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
dokuwiki_notes [2023/11/06 04:30] – [search within a namespace] rajudokuwiki_notes [2024/04/21 15:44] – [struct plugin] raju
Line 1: Line 1:
 ==== tasks ==== ==== tasks ====
   * [[random_page#generate_a_random_page | generate a random page]]   * [[random_page#generate_a_random_page | generate a random page]]
 +
 +==== how to write question and answers ====
 +tags | qna, Q&A
 +
 +You can use
 +<code>
 +:?: Question \\
 +:!: Answer
 +</code>
 +It will render as
 +
 +:?: Question \\
 +:!: Answer
 +
 +It also works with lists. For example
 +<code>
 +  * :?: Question
 +  * :!: Answer
 +</code>
 +will render as
 +  * :?: Question
 +  * :!: Answer
 +
 +See also:
 +  * https://forum.dokuwiki.org/d/3686-questions-and-answers-style - where I found this trick
 +  * https://www.dokuwiki.org/plugin:qna
  
 ==== convert mediawiki page to dokuwiki ==== ==== convert mediawiki page to dokuwiki ====
Line 209: Line 235:
   * https://www.dokuwiki.org/plugin:mathjax   * https://www.dokuwiki.org/plugin:mathjax
   * https://www.dokuwiki.org/plugin:move   * https://www.dokuwiki.org/plugin:move
 +  * https://www.dokuwiki.org/plugin:yalist
 +    * for | nested lists, definition lists etc.,
 +  * https://www.dokuwiki.org/plugin:yearbox
 +    * using this to maintain a journal in [[:diary:]]
 +  * https://www.dokuwiki.org/plugin:const
 +    * using this to parameterize the value of ''year'' in pages such as [[:diary:yearbox_2023]], [[:diary:yearbox_2024]]
 +    * tags | variable in page content
  
 ==== plugins I am exploring ==== ==== plugins I am exploring ====
Line 223: Line 256:
   * https://www.dokuwiki.org/plugin:pycode   * https://www.dokuwiki.org/plugin:pycode
 \\ \\
-  * https://www.dokuwiki.org/plugin:yalist 
   * https://www.dokuwiki.org/plugin:publish   * https://www.dokuwiki.org/plugin:publish
 +\\
 +https://diyfuturism.com/index.php/2018/01/01/how-to-set-up-a-personal-wiki-with-configuration-for-common-use-cases-like-recipes-and-journaling/ talks about TemplatePageName plugin
 +  * https://www.dokuwiki.org/plugin:templatepagename
 +    * https://www.dokuwiki.org/namespace_templates
  
 ==== conflicting plugins ==== ==== conflicting plugins ====
Line 299: Line 335:
   * https://www.dokuwiki.org/faq:lists has answers for   * https://www.dokuwiki.org/faq:lists has answers for
     * How to put line breaks in lists?     * How to put line breaks in lists?
 +  * https://www.dokuwiki.org/faq:approval has answer for
 +    * approve edits on dokuwiki
 +
 +  * struct plugin
 +    * https://www.dokuwiki.org/plugin:struct:filters#value_placeholders
  
 ==== useful links ==== ==== useful links ====
   * https://namespace-cpp.de/std/doku.php/wiki/quicksyntax - cheatsheet on dokuwiki syntax   * https://namespace-cpp.de/std/doku.php/wiki/quicksyntax - cheatsheet on dokuwiki syntax
     * provides an example on how to put content into two or more columns.     * provides an example on how to put content into two or more columns.
 +  * https://www.dokuwiki.org/namespace_templates - Namespace Templates
  
 ==== multiple lines in table cell ==== ==== multiple lines in table cell ====
Line 359: Line 401:
  
 Ref:- https://www.dokuwiki.org/plugin:info Ref:- https://www.dokuwiki.org/plugin:info
 +
 +==== link to a namespace ====
 +You can use ''<nowiki>[[:ns:]]</nowiki>''. For example ''<nowiki>[[:diary:]]</nowiki>'' will render as [[:diary:]].
 +
 +Ref:-
 +  * Found this tip in https://www.dokuwiki.org/namespaces . It covers a lot of other scenarios besides the above.
 +
 +==== struct plugin ====
 +  * source code: https://github.com/cosmocode/dokuwiki-plugin-struct
 +  * https://forum.dokuwiki.org/d/17750-struct-plugin-how-to-use-page-schemas/4
 +    * Andi's post helps in how to think about the struct plugin
  
dokuwiki_notes.txt · Last modified: 2024/05/04 05:26 by raju