Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
wiki:syntax [2018/05/12 04:42] fiakaiera |
wiki:syntax [2020/06/05 04:25] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Syntax | + | ====== |
- | The Furria Wiki uses a simple markup language from [[doku> | + | |
- | readable as simple as possible. If you want to test around with syntax, you can use the [[playground: | + | |
- | page and edit there. | + | |
- | {{INLINETOC}} | + | [[doku> |
- | ===== Style ===== | + | ===== Basic Text Formatting ===== |
- | ==== Basic Formatting ==== | + | |
- | |< 100% 15em - 15em >| | + | |
- | ^ | + | |
- | |{{http:// | + | |
- | |{{http:// | + | |
- | |{{http:// | + | |
- | |{{http:// | + | |
- | |{{http:// | + | |
- | ==== Font Adjustment ==== | + | DokuWiki supports **bold**, |
- | |< 100% 15em - 15em >| | + | |
- | ^ | + | |
- | |{{http://owiki.furria.net/lib/ | + | |
- | <fs 50%>50% size text</ | + | |
- | Options: | + | DokuWiki supports **bold**, |
- | xx-small|x-small|small|normal|large|x-large|xx-large | + | Of course you can **__//'' |
- | Values: ?em ?ex ?% ?px</code> | + | |
- | |{{http://owiki.furria.net/ | + | |
- | Accepts any hex color combinations #??? and #??????</code> | + | |
- | |Furrian Cipher|< | + | |
- | |Furrian Code|< | + | |
- | (simply a bold filter on ciphered text)</code>|**-:: | + | |
- | ==== Text Alignment ==== | + | You can use <sub>subscript</sub> and <sup>superscript</sup>, too. |
- | |< 100% 15em - 15em >| | + | |
- | ^ | + | |
- | |{{http:// | + | |
- | left-aligned text | + | |
- | #;;</code><code><div leftalign> | + | |
- | left-aligned text | + | |
- | </div></ | + | |
- | |{{http:// | + | |
- | center-aligned text | + | |
- | ;#;</ | + | |
- | center-aligned text | + | |
- | </ | + | |
- | |{{http:// | + | |
- | right-aligned text | + | |
- | ;;#</ | + | |
- | right-aligned text | + | |
- | </ | + | |
- | |{{http:// | + | |
- | this is justified text | + | |
- | so it should be equally spaced | + | |
- | ###</ | + | |
- | this is justified text | + | |
- | so it should be equally spaced | + | |
- | </ | + | |
- | ==== Entities | + | You can use < |
- | |< 100%>| | + | |
- | ^ | + | You can mark something as < |
- | |<code> | + | |
- | |< | + | You can mark something as < |
- | |< | + | |
- | |< | + | **Paragraphs** are created from blank lines. If you want to **force a newline** without a paragraph, you can use two backslashes followed by a whitespace or the end of line. |
+ | |||
+ | This is some text with some linebreaks\\ Note that the | ||
+ | two backslashes are only recognized at the end of a line\\ | ||
+ | or followed by\\ a whitespace \\this happens without it. | ||
+ | |||
+ | This is some text with some linebreaks\\ Note that the | ||
+ | two backslashes are only recognized at the end of a line\\ | ||
+ | or followed by\\ a whitespace \\this happens without it. | ||
+ | |||
+ | You should use forced newlines only if really needed. | ||
+ | |||
+ | ===== Links ===== | ||
+ | |||
+ | DokuWiki supports multiple ways of creating links. | ||
+ | |||
+ | ==== External ==== | ||
+ | |||
+ | External links are recognized automagically: | ||
+ | |||
+ | | ||
+ | | ||
+ | link text as well: [[http:// | ||
+ | addresses like this one: <andi@splitbrain.org> are recognized, too. | ||
+ | |||
+ | ==== Internal ==== | ||
+ | |||
+ | Internal links are created by using square brackets. You can either just give a [[pagename]] or use an additional [[pagename|link text]]. | ||
+ | |||
+ | Internal links are created by using square brackets. You can either just give | ||
+ | a [[pagename]] or use an additional [[pagename|link text]]. | ||
+ | |||
+ | [[doku>pagename|Wiki pagenames]] are converted to lowercase automatically, | ||
+ | |||
+ | You can use [[some: | ||
+ | |||
+ | You can use [[some: | ||
+ | |||
+ | For details about namespaces see [[doku>namespaces]]. | ||
+ | |||
+ | Linking to a specific section is possible, too. Just add the section name behind a hash character as known from HTML. This links to [[syntax# | ||
+ | |||
+ | This links to [[syntax# | ||
+ | |||
+ | Notes: | ||
+ | |||
+ | * Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones. | ||
+ | * DokuWiki does not use [[wp>CamelCase]] to automatically create links by default, but this behavior can be enabled in the [[doku>config]] file. Hint: If DokuWiki is a link, then it's enabled. | ||
+ | * When a section' | ||
+ | |||
+ | ==== Interwiki ==== | ||
+ | |||
+ | DokuWiki supports [[doku>Interwiki]] links. These are quick links to other Wikis. For example this is a link to Wikipedia' | ||
+ | |||
+ | DokuWiki supports [[doku>Interwiki]] links. These are quick links to other Wikis. | ||
+ | For example this is a link to Wikipedia' | ||
+ | |||
+ | ==== Windows Shares ==== | ||
+ | |||
+ | Windows shares like [[\\server\share|this]] are recognized, too. Please note that these only make sense in a homogeneous user group like a corporate [[wp>Intranet]]. | ||
+ | |||
+ | Windows Shares like [[\\server\share|this]] are recognized, too. | ||
+ | |||
+ | Notes: | ||
+ | |||
+ | * For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer per default | ||
+ | * For Mozilla and Firefox it can be enabled through different workaround mentioned in the [[http://kb.mozillazine.org/Links_to_local_pages_do_not_work|Mozilla Knowledge Base]]. However, there will still be a JavaScript warning about trying to open a Windows Share. To remove this warning (for all users), put the following line in '' | ||
+ | <?php | ||
+ | /** | ||
+ | * Customization of the english language file | ||
+ | * Copy only the strings that needs to be modified | ||
+ | */ | ||
+ | $lang[' | ||
+ | </ | ||
+ | |||
+ | ==== Image Links ==== | ||
+ | |||
+ | You can also use an image to link to another internal or external page by combining the syntax for links and [[# | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | Please note: The image formatting is the only formatting syntax accepted in link names. | ||
+ | |||
+ | The whole [[# | ||
+ | |||
+ | ===== Footnotes ===== | ||
+ | |||
+ | You can add footnotes ((This is a footnote)) by using double parentheses. | ||
+ | |||
+ | You can add footnotes ((This is a footnote)) by using double parentheses. | ||
===== Sectioning ===== | ===== Sectioning ===== | ||
- | ==== Headlines / Headers ==== | ||
- | |< 100% 15em - 15em >| | ||
- | ^ | ||
- | |{{http:// | ||
- | |{{http:// | ||
- | |{{http:// | ||
- | |{{http:// | ||
- | |{{http:// | ||
- | ==== Table of Contents & Footnotes ==== | + | You can use up to five different levels |
- | |< 100% 15em - 15em >| | + | |
- | ^ | + | |
- | |Table of Contents|<code>{{INLINETOC}}</code>|{{INLINETOC}}| | + | |
- | |Footnote|< | + | |
- | Accessible at the bottom of the page.))</ | + | |
- | ==== Section Breaks | + | ==== Headline Level 3 ==== |
- | |< 100% 15em - 15em >| | + | === Headline Level 4 === |
- | ^ | + | == Headline Level 5 == |
- | |Line Break|< | + | |
- | break</ | + | |
- | |New Paragraph|< | + | |
- | paragraph 2</code>|paragraph 1\\ \\ paragraph 2| | + | ==== Headline Level 3 ==== |
- | |{{http://owiki.furria.net/lib/images/toolbar/hr.png?nolink}} Horizontal Rule|< | + | === Headline Level 4 === |
- | (^ should be the only one in the line)</ | + | == Headline Level 5 == |
+ | |||
+ | By using four or more dashes, you can make a horizontal line: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Media Files ===== | ||
+ | |||
+ | You can include external and internal [[doku>images|images, videos and audio files]] with curly brackets. Optionally you can specify the size of them. | ||
+ | |||
+ | Real size: {{wiki: | ||
+ | |||
+ | Resize to given width: | ||
+ | |||
+ | Resize to given width and height((when the aspect ratio of the given width and height doesn' | ||
+ | |||
+ | Resized external image: {{https://secure.php.net/ | ||
+ | |||
+ | Real size: {{wiki: | ||
+ | Resize to given width: | ||
+ | Resize to given width and height: {{wiki: | ||
+ | Resized external image: {{https:// | ||
+ | |||
+ | |||
+ | By using left or right whitespaces you can choose the alignment. | ||
+ | |||
+ | {{ wiki: | ||
+ | |||
+ | {{wiki: | ||
+ | |||
+ | {{ wiki: | ||
+ | |||
+ | {{ wiki: | ||
+ | {{wiki: | ||
+ | {{ wiki: | ||
+ | |||
+ | Of course, you can add a title (displayed as a tooltip by most browsers), too. | ||
+ | |||
+ | {{ wiki: | ||
+ | |||
+ | {{ wiki: | ||
+ | |||
+ | For linking an image to another page see [[#Image Links]] above. | ||
+ | |||
+ | ==== Supported Media Formats ==== | ||
+ | |||
+ | DokuWiki can embed the following media formats directly. | ||
+ | |||
+ | | Image | '' | ||
+ | | Video | '' | ||
+ | | Audio | '' | ||
+ | | Flash | '' | ||
+ | |||
+ | If you specify a filename that is not a supported media format, then it will be displayed as a link instead. | ||
+ | |||
+ | By adding ''? | ||
+ | |||
+ | {{wiki: | ||
+ | |||
+ | {{wiki: | ||
+ | |||
+ | ==== Fallback Formats ==== | ||
+ | |||
+ | Unfortunately not all browsers understand all video and audio formats. To mitigate the problem, you can upload your file in different formats for maximum browser compatibility. | ||
+ | |||
+ | For example consider this embedded mp4 video: | ||
+ | |||
+ | {{video.mp4|A funny video}} | ||
+ | |||
+ | When you upload a '' | ||
+ | |||
+ | Additionally DokuWiki supports a " | ||
+ | |||
+ | ===== Lists ===== | ||
+ | |||
+ | Dokuwiki supports ordered and unordered lists. To create a list item, indent your text by two spaces and use a '' | ||
+ | |||
+ | * This is a list | ||
+ | * The second item | ||
+ | * You may have different levels | ||
+ | * Another item | ||
+ | |||
+ | - The same list but ordered | ||
+ | - Another item | ||
+ | - Just use indention for deeper levels | ||
+ | - That's it | ||
- | ==== Quotes ==== | ||
< | < | ||
- | > quote line that is extremely and unnecessarily long | + | * This is a list |
- | > quote line that is extremely and unnecessarily long | + | * The second item |
- | >> quote line that is extremely and unnecessarily long | + | * You may have different levels |
+ | * Another item | ||
- | >> quote line that is extremely and unnecessarily long | + | - The same list but ordered |
- | >>> | + | - Another item |
- | > quote line that is extremely and unnecessarily long | + | - Just use indention for deeper levels |
- | > quote line that is extremely and unnecessarily long | + | - That's it |
- | >> quote line that is extremely and unnecessarily long | + | </ |
- | >> quote line that is extremely and unnecessarily long | + | Also take a look at the [[doku>faq: |
- | >>> | + | |
- | ==== Lists ==== | + | ===== Text Conversions ===== |
- | <fs 2em> | + | |
- | |< 90% 50% >| | + | |
- | ^Syntax^Result^ | + | |
- | <div column 45%>< | + | |
- | - ordered list entry | + | |
- | - ordered list entry | + | |
- | - ordered list entry | + | |
- | - ordered list entry | + | |
- | - ordered list entry | + | |
- | - ordered list entry | + | |
- | - ordered list entry | + | |
- | - ordered list entry | + | |
- | - ordered list entry</ | + | |
- | </ | + | |
- | <div column 45%> | + | |
- | - ordered list entry | + | |
- | - ordered list entry | + | |
- | - ordered list entry | + | |
- | - ordered list entry | + | |
- | - ordered list entry | + | |
- | - ordered list entry | + | |
- | - ordered list entry | + | |
- | - ordered list entry | + | |
- | </ | + | |
- | <div clear></ | + | |
- | <fs 2em> | + | DokuWiki can convert certain pre-defined characters or strings into images |
- | |< 90% 50% >| | + | |
- | ^Syntax^Result^ | + | |
- | <div column 45%>< | + | |
- | * ordered list entry | + | |
- | * ordered list entry | + | |
- | * ordered list entry | + | |
- | * ordered list entry | + | |
- | * ordered list entry | + | |
- | * ordered list entry | + | |
- | * ordered list entry | + | |
- | * ordered list entry | + | |
- | * ordered list entry</ | + | |
- | </ | + | |
- | <div column 45%> | + | |
- | * ordered list entry | + | |
- | * ordered list entry | + | |
- | * ordered list entry | + | |
- | * ordered list entry | + | |
- | * ordered list entry | + | |
- | * ordered list entry | + | |
- | * ordered list entry | + | |
- | * ordered list entry | + | |
- | </ | + | |
- | ===== Links ===== | + | The text to image conversion is mainly done for smileys. And the text to HTML conversion is used for typography replacements, |
- | ==== Internal Links ==== | + | |
- | All pages are case-insensitive and are all in lowercase by default. | + | |
- | |< 100% 15em - 15em >| | + | |
- | ^ | + | |
- | |{{http:// | + | |
- | |{{http:// | + | |
- | |{{http:// | + | |
- | |{{http:// | + | |
- | |{{http:// | + | |
- | |{{http:// | + | |
- | ==== External Links ==== | + | ==== Text to Image Conversions |
- | |< 100% 15em - 15em >| | + | |
- | ^ | + | |
- | |{{http:// | + | |
- | |{{http:// | + | |
- | www.furria.net</ | + | |
- | |{{http:// | + | |
- | |{{http:// | + | |
- | ==== Interwiki Links ==== | + | DokuWiki converts commonly used [[wp>emoticon]]s to their graphical equivalents. Those [[doku>Smileys]] and other images can be configured and extended. Here is an overview of Smileys included in DokuWiki: |
- | |< 100% 15em - 15em >| | + | |
- | ^ | + | |
- | |Wikipedia|< | + | |
- | |DokuWiki|< | + | |
- | |Bulbapedia|< | + | |
- | |TV Tropes|< | + | |
- | |Furria Wiki User|< | + | |
- | ===== Media Files ===== | + | * 8-) %% 8-) %% |
- | ^**Supported Media Formats:**|| | + | * 8-O %% 8-O %% |
- | ^Images|'' | + | * :-( %% :-( %% |
- | ^Video|'' | + | * :-) %% :-) %% |
- | ^Audio|'' | + | * =) %% |
- | ^Flash|'' | + | * :-/ %% :-/ %% |
- | **NOTE:** Files are also categorized in namespaces so follow namespace guidelines found in [[syntax# | + | |
+ | | ||
+ | | ||
+ | * :-P %% :-P %% | ||
+ | * :-O %% :-O %% | ||
+ | * :-X %% :-X %% | ||
+ | * :-| %% :-| %% | ||
+ | * ;-) %% ;-) %% | ||
+ | * ^_^ %% ^_^ %% | ||
+ | * :?: %% :?: %% | ||
+ | | ||
+ | | ||
+ | * FIXME %% FIXME %% | ||
+ | | ||
- | |< 100% 15em - 15em >| | + | ==== Text to HTML Conversions ==== |
- | ^ | + | |
- | |{{http:// | + | |
- | |{{http:// | + | |
- | |{{http:// | + | |
- | |{{http:// | + | |
- | |{{http:// | + | |
- | |{{http:// | + | |
- | |{{http:// | + | |
- | |{{http:// | + | |
- | |Resize to given width|< | + | |
- | |Resize to given height|< | + | |
- | |Crop to given width and height|< | + | |
- | |External Image|< | + | |
- | |Multiple Parameters|< | + | |
- | |No Cache|< | + | |
- | |Recache|< | + | |
- | ===Fallback Formats=== | + | Typography: [[DokuWiki]] can convert simple text characters |
- | Not all browsers are unable | + | |
- | in different formats for browser compatiblility. | + | |
- | <code>{{video.mp4|A Funny Video}}</code> | + | -> <- <-> => <= < |
- | The wiki will automatically add '' | + | "He thought |
- | Poster images also show before the video if there's a '' | + | |
- | filename, in this example: '' | + | |
- | ===== Tables | + | < |
- | <div column 45%> | + | -> <- < |
- | |< | + | "He thought ' |
- | ^Syntax^ | + | </ |
+ | |||
+ | The same can be done to produce any kind of HTML, it just needs to be added to the [[doku> | ||
+ | |||
+ | There are three exceptions which do not come from that pattern file: multiplication entity (640x480), ' | ||
+ | |||
+ | ===== Quoting | ||
+ | |||
+ | Some times you want to mark some text to show it's a reply or comment. You can use the following syntax: | ||
< | < | ||
- | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | + | I think we should do it |
- | | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | | + | |
- | | Row 2 Col 1 | Row 2 Col 2 | Row 2 Col 3 | | + | > No we shouldn' |
- | | Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 | | + | |
- | </ | + | >> Well, I say we should |
- | <div column 45%> | + | |
- | |<100%>| | + | > Really? |
- | ^Result^ | + | |
+ | >> Yes! | ||
+ | |||
+ | >>> | ||
+ | </ | ||
+ | |||
+ | I think we should do it | ||
+ | |||
+ | > No we shouldn' | ||
+ | |||
+ | >> Well, I say we should | ||
+ | |||
+ | > Really? | ||
+ | |||
+ | >> Yes! | ||
+ | |||
+ | >>> | ||
+ | |||
+ | ===== Tables ===== | ||
+ | |||
+ | DokuWiki supports a simple syntax to create tables. | ||
^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | ||
| Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | | | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | | ||
- | | Row 2 Col 1 | Row 2 Col 2 | Row 2 Col 3 | + | | Row 2 Col 1 | some colspan (note the double pipe) || |
| Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 | | | Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 | | ||
- | </ | + | |
- | ---- | + | Table rows have to start and end with a '' |
- | <div column 45%>< | + | |
- | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | + | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ |
- | | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | | + | | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | |
- | | Row 2 Col 1 | Double Pipe for colspan | + | | Row 2 Col 1 | some colspan |
- | | Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 | | + | | Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 | |
- | </ | + | |
- | <div column 45%> | + | To connect cells horizontally, |
- | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | + | |
- | | Row 1 Col 1 | Row 1 Col 2 | + | Vertical tableheaders are possible, too. |
- | | Row 2 Col 1 | Double Pipe for colspan | + | |
- | | Row 3 Col 1 | Row 3 Col 2 | + | | |
- | </ | + | ^ Heading 3 |
- | ---- | + | ^ Heading 4 | no colspan this time | | |
- | <div column 45%>< | + | ^ Heading 5 | Row 2 Col 2 | Row 2 Col 3 | |
- | ^ Heading 1 ^ Heading 2 | + | |
- | | Row 1 Col 1 | 3 colons for rowspan| Row 1 Col 3 | | + | As you can see, it's the cell separator before a cell which decides about the formatting: |
- | | Row 2 Col 1 | ::: | + | |
- | | Row 3 Col 1 | ::: | + | |
- | </ | + | ^ Heading 3 | Row 1 Col 2 | Row 1 Col 3 | |
- | <div column 45%> | + | ^ Heading 4 |
- | ^ Heading 1 ^ Heading 2 | + | ^ Heading 5 | Row 2 Col 2 | Row 2 Col 3 | |
- | | Row 1 Col 1 | 3 colons for rowspan| Row 1 Col 3 | | + | |
- | | Row 2 Col 1 | ::: | + | You can have rowspans (vertically connected cells) by adding '' |
- | | Row 3 Col 1 | ::: | + | |
- | </ | + | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ |
- | ---- | + | | Row 1 Col 1 | this cell spans vertically |
- | <div column 45%>< | + | | Row 2 Col 1 | ::: | Row 2 Col 3 | |
- | |< 100% - 20% >| | + | | Row 3 Col 1 | ::: | Row 2 Col 3 | |
- | ^ - | + | |
- | | First value is table width | + | Apart from the rowspan syntax those cells should not contain anything else. |
- | | The rest is per column | + | |
- | | '' | + | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ |
- | </ | + | | Row 1 Col 1 | this cell spans vertically |
- | <div column 45%> | + | | Row 2 Col 1 | ::: | Row 2 Col 3 | |
- | |< 100% - 20% >| | + | | Row 3 Col 1 | ::: | Row 2 Col 3 | |
- | ^ - | + | |
- | | First value is table width | + | You can align the table contents, too. Just add at least two whitespaces at the opposite end of your text: Add two spaces on the left to align right, two spaces on the right to align left and two spaces at least at both ends for centered text. |
- | | The rest is per column | + | |
- | | '' | + | ^ Table with alignment |
- | </ | + | | right| |
- | <div clear></ | + | |left | |
- | ===== Ignore | + | | xxxxxxxxxxxx |
- | **Syntax: | + | |
- | **Example:** | + | This is how it looks in the source: |
- | > %%You cannot even **bold** this text in any way or form unless it is outside the < | + | |
+ | | ||
+ | | ||
+ | | ||
+ | | xxxxxxxxxxxx | ||
+ | |||
+ | Note: Vertical alignment is not supported. | ||
+ | |||
+ | ===== No Formatting ===== | ||
+ | |||
+ | If you need to display text exactly like it is typed (without any formatting), | ||
+ | |||
+ | < | ||
+ | This is some text which contains addresses like this: http:// | ||
+ | </nowiki> | ||
+ | The same is true for %%//__this__ text// with a smiley ;-)%%. | ||
+ | |||
+ | < | ||
+ | This is some text which contains addresses like this: http:// | ||
+ | | ||
+ | The same is true for %%//__this__ text// with a smiley ;-)%%. | ||
===== Code Blocks ===== | ===== Code Blocks ===== | ||
- | **Syntax: | + | |
- | Alternatively, you can indent | + | You can include code blocks into your documents by either indenting them by at least two spaces (like used for the previous examples) or by using the tags '' |
- | This is a code block. | + | |
- | < | + | This is text is indented by two spaces. |
+ | |||
+ | < | ||
+ | This is preformatted code all spaces are preserved: like <-this | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | This is pretty much the same, but you could use it to show that you quoted a file. | ||
+ | </ | ||
+ | |||
+ | Those blocks were created | ||
+ | |||
+ | This is text is indented by two spaces. | ||
+ | |||
+ | < | ||
+ | This is preformatted | ||
+ | </ | ||
+ | |||
+ | | ||
+ | | ||
+ | | ||
==== Syntax Highlighting ==== | ==== Syntax Highlighting ==== | ||
- | **Syntax:** '' | + | |
- | < | + | [[wiki:DokuWiki]] can highlight sourcecode, which makes it easier to read. It uses the [[http:// |
- | & | + | |
- | | + | < |
- | | + | /** |
- | } | + | * The HelloWorldApp class implements an application that |
+ | * simply displays "Hello World!" | ||
+ | */ | ||
+ | class HelloWorldApp { | ||
+ | public static void main(String[] args) { | ||
+ | | ||
+ | } | ||
+ | } | ||
</ | </ | ||
- | **Supported Languages:** | + | |
- | <fs x-small>4cs, 6502acme, 6502kickass, 6502tasm, 68000devpac, abap, actionscript-french, actionscript, | + | The following language strings are currently recognized: //4cs 6502acme 6502kickass 6502tasm 68000devpac abap actionscript3 |
- | actionscript3, | + | |
- | bascomavr, bash, basic4gl, bf, bibtex, blitzbasic, bnf, boo, c, c_loadrunner, | + | There are additional |
- | cfm, chaiscript, cil, clojure, cmake, cobol, coffeescript, cpp, cpp-qt, csharp, css, cuesheet, d, dcs, delphi, | + | |
- | diff, div, dos, dot, e, epc, ecmascript, eiffel, email, erlang, euphoria, f1, falcon, fo, fortran, freebasic, | + | |
- | fsharp, gambas, genero, genie, gdb, glsl, gml, gnuplot, go, groovy, gettext, | + | |
- | html, html5, icon, idl, ini, inno, intercal, io, j, java5, java, javascript, jquery, kixtart, klonec, klonecpp, | + | |
- | latex, lb, lisp, llvm, locobasic, logtalk, lolcode, lotusformulas, lotusscript, lscript, lsl2, | + | |
- | lua, m68k, magiksf, make, mapbasic, matlab, mirc, modula2, modula3, mmix, mpasm, mxml, mysql, newlisp, | + | |
- | nsis, oberon2, objc, objeck, ocaml-brief, ocaml, oobas, oracle8, oracle11, | + | |
- | perl, perl6, | + | |
- | powershell, proftpd, progress, prolog, properties, providex, purebasic, pycon, python, q, qbasic, | + | |
- | reg, robots, rpmspec, rsplus, ruby, sas, scala, scheme, scilab, sdlbasic, smalltalk, smarty, sql, systemverilog, | + | |
- | tcl, teraterm, text, thinbasic, tsql, typoscript, unicon, uscript, vala, vbnet, vb, verilog, vhdl, vim, | + | |
- | visualfoxpro, visualprolog, whitespace, winbatch, whois, | + | |
- | ...and any other languages supported by [[http:// | + | |
==== Downloadable Code Blocks ==== | ==== Downloadable Code Blocks ==== | ||
- | **Syntax:** | + | |
- | <file php myexample.php> | + | When you use the '' |
- | | + | |
- | </file> | + | <code> |
- | \\ | + | |
<file php myexample.php> | <file php myexample.php> | ||
- | | + | <?php echo "hello world!"; |
</ | </ | ||
- | **Note: | + | </ |
- | a programming language. | + | |
+ | <file php myexample.php> | ||
+ | <?php echo "hello world!"; | ||
+ | </ | ||
+ | |||
+ | If you don' | ||
+ | |||
+ | |||
+ | ===== Embedding HTML and PHP ===== | ||
+ | |||
+ | You can embed raw HTML or PHP code into your documents by using the '' | ||
+ | |||
+ | HTML example: | ||
+ | |||
+ | < | ||
+ | < | ||
+ | This is some <span style=" | ||
+ | </ | ||
+ | < | ||
+ | <p style=" | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | This is some <span style=" | ||
+ | </ | ||
+ | < | ||
+ | <p style=" | ||
+ | </ | ||
+ | |||
+ | PHP example: | ||
+ | |||
+ | < | ||
+ | < | ||
+ | echo 'The PHP version: '; | ||
+ | echo phpversion(); | ||
+ | echo ' (generated inline HTML)'; | ||
+ | </ | ||
+ | < | ||
+ | echo '< | ||
+ | echo '< | ||
+ | echo '</ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | echo 'The PHP version: '; | ||
+ | echo phpversion(); | ||
+ | echo ' (inline HTML)'; | ||
+ | </ | ||
+ | < | ||
+ | echo '< | ||
+ | echo '< | ||
+ | echo '</ | ||
+ | </ | ||
+ | |||
+ | **Please Note**: HTML and PHP embedding is disabled by default in the configuration. If disabled, the code is displayed instead of executed. | ||
+ | |||
+ | ===== RSS/ATOM Feed Aggregation ===== | ||
+ | [[DokuWiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[http:// | ||
- | ===== RSS/ATOM Feed Integration ===== | ||
- | The wiki can integrate data from external XML feeds using [[http:// | ||
- | All formats understood by SimplePie can be used in the wiki. | ||
^ Parameter | ^ Parameter | ||
| any number | will be used as maximum number items to show, defaults to 8 | | | any number | will be used as maximum number items to show, defaults to 8 | | ||
Line 344: | Line 499: | ||
| nosort | | nosort | ||
| //n//[dhm] | refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). | | | //n//[dhm] | refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). | | ||
- | The refresh period defaults to 4 hours. Any value below 10 minutes will be treated as 10 minutes. | ||
- | By default the feed will be sorted by date, newest items first. | + | The refresh period defaults to 4 hours. Any value below 10 minutes will be treated as 10 minutes. [[wiki: |
- | You can sort it by oldest first using the '' | + | |
+ | By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the '' | ||
**Example: | **Example: | ||
- | | + | |
- | {{rss>https://twitrss.me/twitter_user_to_rss/? | + | |
+ | |||
+ | {{rss>http://slashdot.org/index.rss | ||
===== Control Macros ===== | ===== Control Macros ===== | ||
- | Some syntax influences how the wiki renders a page without creating any output itself. | ||
- | The following control macros are availble: | ||
- | ^Macro^Description^ | + | Some syntax influences how DokuWiki renders a page without creating any output it self. The following control macros are availble: |
- | |%%~~NOTOC~~%%|If this macro is found on the page, no table of contents will be created| | + | |
- | |%%~~NOCACHE~~%%|The wiki caches all output by default. Sometimes this might not be wanted, adding this macro will force a page to rerender on every call. | | + | ^ Macro |
+ | | %%~~NOTOC~~%% | ||
+ | | %%~~NOCACHE~~%% | DokuWiki | ||
+ | |||
+ | ===== Syntax Plugins ===== | ||
+ | |||
+ | DokuWiki' | ||
+ | |||
+ | ~~INFO: |