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
dokuwiki_notes [2024/03/17 00:16] – [useful plugins] rajudokuwiki_notes [2024/04/21 15:44] (current) – [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 214: Line 240:
     * using this to maintain a journal in [[:diary:]]     * using this to maintain a journal in [[:diary:]]
   * https://www.dokuwiki.org/plugin:const   * https://www.dokuwiki.org/plugin:const
-    * using this to parameterize year in pages such as [[:diary:yearbox_2023]], [[:diary:yearbox_2024]]+    * 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 230: Line 257:
 \\ \\
   * 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 304: 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 370: Line 407:
 Ref:- Ref:-
   * Found this tip in https://www.dokuwiki.org/namespaces . It covers a lot of other scenarios besides the above.   * 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.1710634571.txt.gz · Last modified: 2024/03/17 00:16 by raju