Tiedonsyöttövihjeitä
Sallitut HTML-tagit: <a> <em> <u> <i> <b> <strong> <cite> <blockquote> <code> <sub> <sup> <ul> <ol> <li> <dl> <dt> <dd> <p> <h3> <h4> <br> <del> <ins> <pre>
Tämä sivusto mahdollistaa HTML-muotoisen sisällön luonnin. Vaikka HTML:n opettelu kokonaisuudessaan voi kuulostaa hankalalta, on erittäin helppoa oppia pieni määrä kaikkein yleisimpiä HTML-"tageja". Tämä taulukko antaa esimerkkejä kaikista tällä sivulla käytettävissä olevista tageista.
Lisätietoja on saatavissa W3C's HTML-määrityksistä. Voit myös etsiä hakukoneella muita HTML:ää opettavia sivustoja.
Koodin kuvaus Kun kirjoitat Näet seuraavaa Ankkureilla luodaan linkkejä muille sivuille. <a href="http://www.ltky.fi">LTKY</a>LTKY Korostettu <em>Korostettu</em>Korostettu Alleviivattu <u>Alleviivattu</u>Alleviivattu Kursivoitu <i>Kursivoitu</i>Kursivoitu Lihavoitu <b>Lihavoitu</b>Lihavoitu Lihavoitu <strong>Lihavoitu</strong>Lihavoitu Siteerattu <cite>Siteerattu</cite>Siteerattu Lohkolainaus <blockquote>Lohkolainaus</blockquote>Lohkolainaus
Ohjelmointikielisen lähdekoodin näyttämiseen käytettävä koodimuotoinen teksti. <code>Koodattu</code>KoodattuAlaindeksi <sub>Ala</sub>indeksiAlaindeksi Yläindeksi <sup>Ylä</sup>indeksiYläindeksi Järjestämätön lista - käytä <li>-merkkausta kunkin kohdan alussa <ul> <li>Ensimmäinen kohta</li> <li>Toinen kohta</li> </ul>- Ensimmäinen kohta
- Toinen kohta
Järjestetty lista - käytä <li>-merkkausta kunkin kohdan alussa. <ol> <li>Ensimmäinen kohta</li> <li>Toinen kohta</li> </ol>- Ensimmäinen kohta
- Toinen kohta
Määrityslistat ovat samankaltaisia kuin muut HTML-listat. <dl> aloittaa listan, <dt> aloittaa määritystermin ja <dd> määrityskuvauksen. <dl> <dt>Ensimmäinen termi</dt> <dd>Ensimmäinen määritys</dd> <dt>Toinen termi</dt> <dd>Toinen määritys</dd> </dl>- Ensimmäinen termi
- Ensimmäinen määritys
- Toinen termi
- Toinen määritys
Oletuksena kappalemerkkaukset lisätään automaattisesti, joten tätä merkkausta voidaan käyttää ylimääräisten kappaleiden lisäämiseksi. <p>Kappale yksi</p> <p>Kappale kaksi.</p>Kappale yksi
Kappale kaksi.
Yläteksti <h3>Alaotsikko kolme</h3>Alaotsikko kolme
Yläteksti <h4>Alaotsikko neljä</h4>Alaotsikko neljä
Oletuksena rivinvaihdot lisätään automaattisesti, joten tätä tagia voidaan käyttää ylimääräisten rivinvaihtojen lisäämiseksi. Tagin käyttö eroaa normaalista koska sitä ei käytetä avaa/sulje -pareina niinkuin muita html-merkkauksia. Käytä merkkauksen sulkemiseksi ylimääräistä "/"-merkkiä merkkauksen sisällä säilyttääksesi XHTML 1.0 -yhteensopivuuden. Teksti <br />rivinvaihdollaTeksti
rivinvaihdollaPoistettu <del>Poistettu</del>PoistettuLisätty <ins>Lisätty</ins>Lisätty Esimuotoiltu <pre>Esimuotoiltu</pre>Esimuotoiltu
Useimmat epättavalliset merkit voidaan kirjoittaa suoraan ongelmitta.
Ongelmatapauksissa on mahdollista käyttää HTML:n merkkientiteettejä. Esimerkiksi näin: & &-merkkiä varten. Täydellisen listan HTML:n merkkientiteeteistä löydät W3 Consortiumin entiteetit sivulta. Jotkut saatavilla olevat merkit sisältävät:
Merkin kuvaus Kun kirjoitat Näet seuraavaa &-merkki && Suurempi kuin >> Pienempi kuin << Lainausmerkki "" Linodef
Linodef is a filter for internal links. It uses a simple but unique markup so Linodef doesn't interfere with other filter modules.
The ID of a node or of a taxonomy term and optionally a fieldname are the solely elements stored in your text. One advantage of this method in comparison to similar filter modules is the fact that the links don't break if you change the node title or term name. Furthermore, if you change the title of the node or the value of a field or the name of a term then those are automatically updated in your text, too.Embed elements
To embed elements into your text, prepend the element ID with the hash key # and surround them by brackets []: [#ID]. That way a node title is inserted and linked. To embed the content of a field, add the field name: [#ID:field_name]. Moreover it is possible to add a field value number in the case you have a field with multiple values and want to use a different value than the first: [#ID:field_name:number].
The syntax is as following:
Koodin kuvaus Kun kirjoitat Näet seuraavaa Embed node title and link to the node. [#ID]node titleEmbed field value and link to the node. [#ID:field_name]field valueEmbed field value and link to the node. [#ID:field_name:field_value_number]certain field value of a multiple values fieldExample for nodes and fields:
We have a node with id=8 and a title Perry Rhodan. It contains a multiple value field called firstnames. The first value is Gucky, second is Atlan. Note that the field value numbers start at 0, so first value has number "0", second has number "1" etc. If the node has a path alias then the link contains this instead of the default drupal path (the examples are limited to the default paths).Kun kirjoitat Näet seuraavaa [#8]Perry Rhodan[#8:field_firstnames]Gucky[#8:field_firstnames:0]Gucky[#8:field_firstnames:1]AtlanAlter embedding by tag options
Options set the ID type (embedded element type) and the embed method. They are entered right after the ID or the field settings and are separated by a comma. The number of options a tag can have is not limited.
Koodin kuvaus Kun kirjoitat Näet seuraavaa Embed an element with options. [#ID,option1,option2="optionvalue",...]Depends on the options used.Embed a field value with options. [#ID:field_name,option1,option2="optionvalue",...]Depends on the options used.Embed a certain field value with options. [#ID:field_name:field_value_number,option1,option2="optionvalue",...]Depends on the options used.Example for element (ID) type and modification options:
Here we use the modification "nolink" to have an output without a link to the element and the ID type option "tid" to embed a taxonomy term instead of a node. The taxonomy term has the id=5 and the name Jupiter. If the term has a path alias then the link contains this instead of the default drupal path (the example is limited to the default path). Furthermore we have a node (optional option "nid") with id=5 and the title Kallisto.
Kun kirjoitat Näet seuraavaa [#5,tid]Jupiter[#5,tid,nolink]Jupiter[#5,nid,nolink]Kallisto[#5,nolink]KallistoUse comments to flag your tags for editors
Comments act as an indicator for Linodef tags, to describe your tag for yourself or other editors. A comment can be inserted inside the tag prepended with a space and it may consist of all UTF-8 characters except the closing bracket ].
Comments are visible only during editing and never appear by viewing a text. The nature of comments is that they must not modified automatically and therefore will not change unless you change it. This is important to understand since the content the tag displays can change automatically and so the comment may be outdated. So try to use a common description.
Koodin kuvaus Kun kirjoitat Näet seuraavaa Use comments to give information about the tag during editing. [#ID comment]node titleComment a field content. [#ID:field_name:field_value_number comment]node titleComments work together with options. [#ID:field_name:field_value_number,option1,option2="optionvalue",... comment]Depends on the options used.Create links with own linktext
Use the option "linktext" to create links to elements using a custom text: [#ID,linktext="your Text"]
Esimerkki:
Kun kirjoitat Näet seuraavaa [#8,linktext="your Text"]your TextSyntax highlight code surrounded by the
{syntaxhighlighter SPEC}...{/syntaxhighlighter}tags, where SPEC is a Syntaxhighlighter options string or "class="OPTIONS" title="the title".Example:
{syntaxhighlighter brush:php;collapse:true;first-line:50;highlight:[57,81,101];class-name:'some_class some_other_class'}...{/syntaxhighlighter}This will syntax highlight PHP code, initially collapsed, start line number at 50, highlight lines 57, 81 and 101 and tag highlighted code with class names some_class and some_other_class.
See the Syntaxhighlighter javascript library site for additional helps.





