szerkesztési tippek
Engedélyezett HTML elemek: <a> <em> <strong> <cite> <code> <h2> <h3> <h4> <ul> <ol> <li> <dl> <dt> <dd> <font name> <font size> <br /> <br/> <br> <strike>
A webhely lehetőséget ad HTML formában írt tartalom bevitelére. Míg a teljes HTML nyelv megtanulása túl nagy feladatnak tűnhet, néhány egyszerű jelölés alkalmazását könnyű elsajátítani. Az alábbiakban a webhelyen használható fontosabb jelölésekről olvasható részletes információ.
Szakmai érdeklődésűek számára a W3C angol nyelvű HTML Specifications oldala nyújthat további részleteket, de a keresők is sok leírást adhatnak találatként a HTML-re keresve.
Jelölő leírása Beírandó Eredmény A linkek más webhelyekre nyújthatnak kapcsolatot. <a href="http://magenta.linuxforum.hu">MaGenTa</a>MaGenTa Kiemelt <em>Kiemelt</em>Kiemelt Fontos <strong>Fontos</strong>Fontos Idézett <cite>Idézett</cite>Idézett Programok forráskódjainak megjelenítésére <code>Kód</code>KódFejléc <h2>Alcím</h2>Alcím
Fejléc <h3>Alcím három</h3>Alcím három
Fejléc <h4>Alcím négy</h4>Alcím négy
Felsorolásos lista; az <li> jelölővel kell megadni az elemeket <ul> <li>Első elem</li> <li>Második elem</li> </ul>- Első elem
- Második elem
Sorrendezett lista; az <li> jelölővel kell megadni az elemeket <ol> <li>Első elem</li> <li>Második elem</li> </ol>- Első elem
- Második elem
A definíciós listákat a <dl> elemmel kell jelölni, melyben a <dt> mutatja a definiált kifejezést, a <dd> pedig a definíciót. <dl> <dt>Első kifejezés</dt> <dd>Első definíció</dd> <dt>Második kifejezés</dt> <dd>Második definíció</dd> </dl>- Első kifejezés
- Első definíció
- Második kifejezés
- Második definíció
font jelölőhöz nincs súgó. font jelölőhöz nincs súgó. Alapértelmezésben a sörtörések automatikusan bekerülnek a szövegbe, de ezzel a jelölővel továbbiak helyezhetőek el. A többi jelölővel ellentétben ezt nem párban kell használni, így a végén található perjelet is meg kell adni az XHTML 1.0 szabványnak megfelelően. Szöveg <br />sortörésselSzöveg
sortörésselAlapértelmezésben a sörtörések automatikusan bekerülnek a szövegbe, de ezzel a jelölővel továbbiak helyezhetőek el. A többi jelölővel ellentétben ezt nem párban kell használni, így a végén található perjelet is meg kell adni az XHTML 1.0 szabványnak megfelelően. Szöveg <br />sortörésselSzöveg
sortörésselAlapértelmezésben a sörtörések automatikusan bekerülnek a szövegbe, de ezzel a jelölővel továbbiak helyezhetőek el. A többi jelölővel ellentétben ezt nem párban kell használni, így a végén található perjelet is meg kell adni az XHTML 1.0 szabványnak megfelelően. Szöveg <br />sortörésselSzöveg
sortörésselstrike jelölőhöz nincs súgó. A legtöbb speciális karakter gond nélkül beírható.
Problémás elemek esetén HTML karakter jelölők alkalmazandók. Jellemző példa az & írásmód az és (&) karakter jelöléséhez. A karakter jelölések teljes listája a HTML szabvány entitások oldalán található. Néhány fontosabb:
Karakter leírása Beírandó Eredmény És jel && Nagyobb jel >> Kisebb jel << Idézőjel "" - A sorok és bekezdések automatikusan megjelölést kapnak, azaz a <br /> sortörés, valamint a <p> és </p> bekezdés jelölők a megfelelő helyeken megjelennek a szövegben. Ha a bekezdések nem jelennek meg helyesen, egy beillesztett üres sor a szövegben segíthet.
- Easily link to terms in various wikis or other websites by typing [prefix:term]. Use the "|" character to create a "piped link," e.g., "[w:public transport|public transportation]" displays as "public transportation." For a full list of available prefixes and the websites to which they point, see <a href="/interwiki/1">interwiki</a>.
- You can insert footnotes directly into texts with
<fn>This text becomes a footnote.</fn>. This will be replaced with a running number (the footnote reference) and the text within the <fn> tags will be moved to the bottom of the page (the footnote). - Forráskód beküldéséhez a <code>...</code> elemek használhatók. PHP kód a <?php ... ?> határolók között beküldve forráskód színezést is kap.
Syntax highlighting of source code can be enabled with the following tags:
- Generic syntax highlighting tags: "
[code]", "[blockcode]". - Language specific syntax highlighting tags: .
- PHP source code can also be enclosed in <?php ... ?> or <% ... %>, but additional options like line numbering are not possible here.
Options and tips:
- The language for the generic syntax highlighting tags can be specified with one of the attribute(s): type, lang, language. The possible values are: "
c" (for C), "cpp" (for C++), "drupal5" (for Drupal 5), "drupal6" (for Drupal 6), "java" (for Java), "javascript" (for Javascript), "php" (for PHP), "python" (for Python), "ruby" (for Ruby). - Line numbering can be enabled/disabled with the attribute "linenumbers". Possible values are: "off" for no line numbers, "normal" for normal line numbers and "fancy" for fancy line numbers (every nth line number highlighted). The start line number can be specified with the attribute "start", which implicitly enables normal line numbering. For fancy line numbering the interval for the highlighted line numbers can be specified with the attribute "fancy", which implicitly enables fancy line numbering.
- If the source code between the tags contains a newline (e.g. immediatly after the opening tag), the highlighted source code will be displayed as a code block. Otherwise it will be displayed inline.
Defaults:
- Default highlighting mode for generic syntax highlighting tags: when no language attribute is specified, no syntax highlighting will be done.
- Default line numbering: no line numbers.
Examples:
You type You get [code]foo = "bar";[/code]Inline code with the default syntax highlighting mode. [code]
foo = "bar";
baz = "foz";
[/code]Code block with the default syntax highlighting mode. [code lang="cpp" linenumbers="normal"]
foo = "bar";
baz = "foz";
[/code]Code block with syntax highlighting for C++ source code
and normal line numbers.[code language="cpp" start="23" fancy="7"]
foo = "bar";
baz = "foz";
[/code]Code block with syntax highlighting for C++ source code,
line numbers starting from 23
and highlighted line numbers every 7th line.- Generic syntax highlighting tags: "
-
Quote filter
Quoted content can be placed between [quote] tags in order to be displayed as an indented quote. Every [quote] tag must have a corresponding [/quote] tag. For example:
[quote]This is a simple quote.[/quote]
is displayed as:This is a simple quote.Additionally, there is an optional attribute which allows quotes to specify the original author.
[quote=Mr. Drupal]This is a quote with an attribution line.[/quote]
is displayed as:This is a quote with an attribution line.Finally, multiple [quote] tags can be nested within one another. Just remember that every [quote] tag must have a corresponding [/quote] tag.
[quote]I think she says it best... [quote=Ms. Quotation]This is a quote nested within another quote.[/quote] but you can't argue with [quote=Ms. Reply]The more quotes, the merrier. Just don't get too carried away.[/quote] And I have nothing more to say.[/quote]is displayed as:I think she says it best...This is a quote nested within another quote.but you can't argue withThe more quotes, the merrier. Just don't get too carried away.And I have nothing more to say. - A web és email címek automatikusan linkekké alakulnak.
-
You may link to files uploaded with the current node using special tags. The tags will be replaced by the corresponding files. For example: Suppose you uploaded three files (in this order):
- imag1.png (referred as file #1)
- file1.pdf (referred as file #2)
- imag2.png (referred as file #3)
[inline:1=test] or [inline:imag1.png=test]
will be replaced by<img src=imag1.png alt=test>[file:1=test] or [file:imag1.png=test]
will be replaced by<a href=imag1.png>test</a>[attachment:2=test] or [attachment:file1.pdf=test]
will be replaced by<a href=file1.pdf.png>test</a> - Images can be added to this post.
- Flash can be added to this post.
