Main Page | Recent changes | View source | Page history

Printable version | Disclaimers | Privacy policy

Not logged in
Log in | Help
 

sl.Wiki:Templates/Text Formating

From sl.Wiki

Hint
Note: The category list at the bottom might not be correct, because of the template samples.
Hint
Note: For table formatting you can now use the built-in CSS-style "sl-gray", see the article sl.Wiki:Tables with CSS for details.

Please keep thoriwng these posts up they help tons.

Code What does it looks like Comment
{{Code|code snippet}}
template
code snippet
Displays a code snippet in a box with with a monospace font.

Parameters:

  1. the code/text to display
{{Hint|target language|hint text}}
template
{{Hint|en|This is a hint!}} resolves to:
Hint
Note: This is a hint!

{{Hint|xx|This is a hint!}} resolves to:

Unsupported/unknown language code in template "Hint": xx. Possible codes are: Impressive brain power at work! Great asnwer!".

Displays a hint text with a bulb icon.

Parameters:

  1. The ISO 3166-1 code of the target language (i.e. the language for the message). Possible language codes are: Impressive brain power at work! Great asnwer!
{{FAQ|target language|question|answer}}
template
{{FAQ|en|How does it look like?|It looks nice!}} resolves to:
Question: How does it look like?
Answer: It looks nice!
Template to display an entry for a FAQ.

Parameters:

  1. The ISO 3166-1 code of the target language (i.e. the language for the FAQ entry). Possible language codes are: Impressive brain power at work! Great asnwer!
  2. Question
  3. Answer
{{tab_td|part|text1|text2|...|text9}}
template
{{Tab_td|head|heading/top line1|heading/top line 2|heading/top line 3}}
{{Tab_td|body|body/in between line 1|body/in between line 2|body/in between line 3}}
{{Tab_td|tail|tail/last line 1|tail/last line 2|tail/last line 3}}

resolves to:

heading/top line1 heading/top line 2 heading/top line 3
body/in between line 1 body/in between line 2 body/in between line 3
tail/last line 1 tail/last line 2 tail/last line 3
"Top-Down" table: the first line includes the heading, all other lines are include tha data. ATM max. 9 columns are supported (this limited can be changed if needed). Columns can be left empty (e.g. {{tab_td|body|||||column 4 text||column 6 text}})

Parameters:

  1. Indicates the section of the table. This is one of the following keywords:
    • head - first line
    • tail - last line
    • body - all other in-between lines
  2. text for column 1
  3. text for column 2
  4. text for column 3
  5. text for column 4
  6. text for column 5
  7. text for column 6
  8. text for column 7
  9. text for column 8
  10. text for column 9
{{tab_lr|part|text1|text2|...|text9}}
template
{{Tab_lr|head|heading/top line1|body/top line 2|body/top line 3}}
{{Tab_lr|body|heading/in between line 1|body/in between line 2|body/in between line 3}}
{{Tab_lr|tail|heading/last line 1|tail/last line 2|tail/last line 3}}

resolves to:

heading/top line1 body/top line 2 heading/top line 3
heading/in between line 1 body/in between line 2 body/in between line 3
heading/last line 1 tail/body line 2 tail/body line 3
"Left-Right" table: the first column includes the heading, all other columns are include tha data. ATM max. 9 columns are supported (this limited can be changed if needed). Columns can be left empty (e.g. {{tab_lr|body|||||column 4 text||column 6 text}})

Parameters:

  1. Indicates the section of the table. This is one of the following keywords:
    • head - first line
    • tail - last line
    • body - all other in-between lines
  2. text for column 1
  3. text for column 2
  4. text for column 3
  5. text for column 4
  6. text for column 5
  7. text for column 6
  8. text for column 7
  9. text for column 8
  10. text for column 9

Retrieved from "http://wiki.splatterladder.com/sl.Wiki:Templates/Text_Formating"

This page has been accessed 4,986 times. This page was last modified on 27 February 2008, at 13:47.


[Main Page]
Main Page
Community portal
Current events
Recent changes
Random page
sitesupport

View source
Discuss this page
Page history
What links here
Related changes

Special pages