User Tools

Site Tools


wiki:syntax

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
wiki:syntax [2023/09/13 18:47] – ↷ Links adapted because of a move operation nebelnidaswiki:syntax [2026/10/22 17:27] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Formatting Syntax ====== ====== Formatting Syntax ======
  
-[[doku>DokuWiki]] supports some simple markup language, which tries to make the datafiles to be as readable as possible. This page contains all possible syntax you may use when editing the pages. Simply have a look at the source of this page by pressing "Edit this page". If you want to try something, just use the [[drafts:new_mixin_example|playground]] page. The simpler markup is easily accessible via [[doku>toolbar|quickbuttons]], too.+[[doku>DokuWiki]] supports some simple markup language, which tries to make the datafiles to be as readable as possible. This page contains all possible syntax you may use when editing the pages. Simply have a look at the source of this page by pressing "Edit this page". If you want to try something, just use the [[playground:playground|playground]] page. The simpler markup is easily accessible via [[doku>toolbar|quickbuttons]], too.
  
 ===== Basic Text Formatting ===== ===== Basic Text Formatting =====
Line 9: Line 9:
   DokuWiki supports **bold**, //italic//, __underlined__ and ''monospaced'' texts.   DokuWiki supports **bold**, //italic//, __underlined__ and ''monospaced'' texts.
   Of course you can **__//''combine''//__** all these.   Of course you can **__//''combine''//__** all these.
 +
 +Note that the formatting markers have to directly enclose the text, so ''%%** bold **%%'' with spaces inside the markers will not be formatted.
  
 You can use <sub>subscript</sub> and <sup>superscript</sup>, too. You can use <sub>subscript</sub> and <sup>superscript</sup>, too.
Line 137: Line 139:
 Resize to given width and height((when the aspect ratio of the given width and height doesn't match that of the image, it will be cropped to the new ratio before resizing)): {{wiki:dokuwiki-128.png?200x50}} Resize to given width and height((when the aspect ratio of the given width and height doesn't match that of the image, it will be cropped to the new ratio before resizing)): {{wiki:dokuwiki-128.png?200x50}}
  
-Resized external image:           {{https://secure.php.net/images/php.gif?200x50}}+Resized external image:           {{https://www.php.net/images/php.gif?200x50}}
  
   Real size:                        {{wiki:dokuwiki-128.png}}   Real size:                        {{wiki:dokuwiki-128.png}}
   Resize to given width:            {{wiki:dokuwiki-128.png?50}}   Resize to given width:            {{wiki:dokuwiki-128.png?50}}
   Resize to given width and height: {{wiki:dokuwiki-128.png?200x50}}   Resize to given width and height: {{wiki:dokuwiki-128.png?200x50}}
-  Resized external image:           {{https://secure.php.net/images/php.gif?200x50}}+  Resized external image:           {{https://www.php.net/images/php.gif?200x50}}
  
  
Line 156: Line 158:
   {{wiki:dokuwiki-128.png }}   {{wiki:dokuwiki-128.png }}
   {{ wiki:dokuwiki-128.png }}   {{ wiki:dokuwiki-128.png }}
 +
 +You can also set the alignment explicitly with a ''?left'', ''?right'' or ''?center'' parameter. This takes precedence over the whitespace alignment above and can be combined with a size.
 +
 +{{wiki:dokuwiki-128.png?100&right}}
 +
 +  {{wiki:dokuwiki-128.png?100&right}}
  
 Of course, you can add a title (displayed as a tooltip by most browsers), too. Of course, you can add a title (displayed as a tooltip by most browsers), too.
Line 375: Line 383:
   </nowiki>   </nowiki>
   The same is true for %%//__this__ text// with a smiley ;-)%%.   The same is true for %%//__this__ text// with a smiley ;-)%%.
-   
-===== map2fabricyarn Syntax =====   
-To avoid code becoming outdated due to mappings changes, it is possible to write code blocks in Intermediary. This wiki's map2fabricyarn plugin adds ''%%<yarncode>%%'' & ''%%<yarnfile>%%''. All intermediary names inside code blocks created using ''%%<yarncode>%%'' & ''%%<yarnfile>%%'' are remapped to Yarn. Otherwise their syntax and behaviour is identical to DokuWiki's ''%%<code>%%'' & ''%%<file>%%''.   
-   
-<code> 
-<yarncode java>   
-public static class_2248 TEST;   
-   
-@Override   
-public void onInitialize() {   
-    TEST = class_2378.method_10230(class_2378.field_11146, new class_2960(MOD_ID, "test"), new class_2248(FabricBlockSettings.method_9630(class_2246.field_10340)));   
-}   
-</yarncode>  
-</code>   
-   
-   
-<yarncode java>   
-public static class_2248 TEST;   
-   
-@Override   
-public void onInitialize() {   
-    TEST = class_2378.method_10230(class_7923.field_41175, new class_2960(MOD_ID, "test"), new class_2248(FabricBlockSettings.method_9630(class_2246.field_10340)));   
-}   
-</yarncode>   
-The easiest way to create Intermediary code for ''%%<yarncode>%%'' blocks is to build your example mod, then unzip the sources-dev JAR.   
-   
-To remap without creating a code block, use the ''%%<yarn>%%'' tag. The content to remap should be inside the ''%%<>%%'', separated from ''%%<yarn%%'' by a single space.   
-Example: %%<yarn class_2960>%% becomes <yarn class_2960>.\\   
-This tag can have formatting applied by the standard tags.   
-   
-To output a fully qualified Yarn class name, input a fully qualified Intermediary name by prefixing it with ''net.minecraft.''. 
  
 ===== Code Blocks ===== ===== Code Blocks =====
wiki/syntax.txt · Last modified: by 127.0.0.1