sl.Wiki:Templates/Text Formating
From sl.Wiki
|
Note: The category list at the bottom might not be correct, because of the template samples.
|
|
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:
- the code/text to display
|
{{Hint|target language|hint text}} template
|
{{Hint|en|This is a hint!}} resolves to:
{{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:
- 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:
- 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!
- Question
- 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:
- 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
- text for column 1
- text for column 2
- text for column 3
- text for column 4
- text for column 5
- text for column 6
- text for column 7
- text for column 8
- 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:
- 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
- text for column 1
- text for column 2
- text for column 3
- text for column 4
- text for column 5
- text for column 6
- text for column 7
- text for column 8
- text for column 9
|
We need more insights like this in this trhaed.