User:Annew/Snippets: Difference between revisions
| (10 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| == Long Page Names == | |||
| the Index page shows "Kdenlive on other Desktops and Operating Systems" and it is currently linked to <nowiki>Kdenlive/Manual/KdenliveOnOtherPlatforms</nowiki>. In this case there will be enough to add the anchor  | |||
| <code><nowiki><span id="Kdenlive on other Desktops and Operating Systems"></nowiki></code> | |||
| The general concern is that links should refer to Kdenlive/Manual/KdenliveOnOtherPlatforms#Kdenlive on other Desktops and Operating Systems | |||
| ==Special Tags== | ==Special Tags== | ||
| {{Input|<nowiki><code>6 feet in meters</code> will output <code class="output">1.8288 m</code>.</nowiki>}} | {{Input|<nowiki><code>6 feet in meters</code> will output <code class="output">1.8288 m</code>.</nowiki>}} | ||
| <code>6 feet in meters</code> will output <code class="output">1.8288 m</code>. | <code>6 feet in meters</code> will output <code class="output">1.8288 m</code>. | ||
| ---- | |||
| Section links need to be anchored like this:<br /> | |||
| {{Input|1=<nowiki><span id="Working_with_Languages"></span></nowiki><br />}} | |||
| Close the translate tag before the span id and re-open afterwards<br /> | |||
| Don't forget to add an empty line after the ID | |||
| ---- | ---- | ||
| <nowiki>{{#UseLiquidThreads:1}}</nowiki><br /> | <nowiki>{{#UseLiquidThreads:1}}</nowiki><br /> | ||
| Line 10: | Line 21: | ||
| <s>this should strike through</s> | <s>this should strike through</s> | ||
| Avoid using text smilies as they cause problems for translation applications.  Instead use <nowiki> | Avoid using text smilies as they cause problems for translation applications.  Instead use <nowiki>{{Smiley}}</nowiki>  {{Smiley}}  Other smilies can be found on [[http://commons.wikimedia.org/w/index.php?title=Special:Search&search=smilies&fulltext=1 Commons Wikimedia]] and the file-name is sufficient to get the image included}} | ||
| <nowiki>{{Special:ContributionScores/10/7}}</nowiki> displays the '''contribution score tables''' on a page | <nowiki>{{Special:ContributionScores/10/7}}</nowiki> displays the '''contribution score tables''' on a page | ||
| Line 17: | Line 28: | ||
| <nowiki><blockquotes></blockquotes></nowiki> <blockquote>This tag is used when quoting from another site or page.  It uses a proportional italic font</blockquote> | <nowiki><blockquotes></blockquotes></nowiki> <blockquote>This tag is used when quoting from another site or page.  It uses a proportional italic font</blockquote> | ||
| ---- | ---- | ||
| Old-style code display | === Old-style code display === | ||
| '''Code Display''' | '''Code Display''' | ||
| {|style="width:75%; border:2px dotted #BCBCBC; background:#EEEEEE;" | {|style="width:75%; border:2px dotted #BCBCBC; background:#EEEEEE;" | ||
| Line 30: | Line 41: | ||
|   histogram will often be more useful.” |   histogram will often be more useful.” | ||
| |} | |} | ||
| {{Warning|These are deprecated.  Use <nowiki>{{Input}</nowiki> and <nowiki>{{Output}}</nowiki> templates instead}} | |||
| ---- | |||
| === Using syntaxhighlight === | |||
| {{Input|1=<nowiki>{{Input|<syntaxhighlight lang="php" line> | |||
| # Initialise common code | |||
| $preIP = dirname( __FILE__ ); | |||
| require_once( "$preIP/includes/WebStart.php" ); | |||
| </syntaxhighlight>}}</nowiki> | |||
| }} will result in {{Input|<syntaxhighlight lang="php" line> | |||
| # Initialise common code | |||
| $preIP = dirname( __FILE__ ); | |||
| require_once( "$preIP/includes/WebStart.php" ); | |||
| </syntaxhighlight>}} | |||
| For plain code, use "lang="bash" " | |||
| ---- | ---- | ||
| '''Symbols''' | '''Symbols''' | ||
| Line 52: | Line 77: | ||
| === Display category without linking to category === | === Display category without linking to category === | ||
| To link a category page within a page as a normal wiki link (without adding the page to the category), prefix the link name with a colon. For example: <nowiki>[[:Category:Not in this category|Display Label]]</nowiki>  from [http://meta.wikimedia.org/wiki/Help:Category Wikimedia Help] | To link a category page within a page as a normal wiki link (without adding the page to the category), prefix the link name with a colon. For example: <nowiki>[[:Category:Not in this category|Display Label]]</nowiki>  from [http://meta.wikimedia.org/wiki/Help:Category Wikimedia Help] | ||
| === Enumerated Lists === | |||
| Standard wiki markup results in | |||
| # First item | |||
| ## First sub-item | |||
| ## Second sub-item. | |||
| To improve display, a new class has been introduced. | |||
| {{Input:1=<nowiki><div class="manualtoc"></nowiki> | |||
| # First item | |||
| ## First sub-item | |||
| ## Second sub-item</nowiki> | |||
| </div> | |||
| }} | |||
| which results in | |||
| <div class="manualtoc"> | |||
| # First item | |||
| ## First sub-item | |||
| ## Second sub-item | |||
| </div> | |||
| ==== Breaking down enumerated lists for translation ==== | |||
| Lists like  | |||
| <code> | |||
| <nowiki> | |||
| # [[Special:myLanguage/Kdenlive/Manual/Effects/Enhancement/Denoiser|Denoiser]] | |||
| # [[Special:myLanguage/Kdenlive/Manual/Effects/Enhancement/Nikon D90 Stairstepping fix|Nikon D90 Stairstepping fix]] | |||
| # [[Special:myLanguage/Kdenlive/Manual/Effects/Enhancement/Sharpen|Sharpen]]</nowiki></code> | |||
| can, if more than two or three deep, cause problems for translators.  Resolve this by adding translate tag pairs around each list item, viz: | |||
| <code> | |||
| <nowiki> | |||
| <translate># [[Special:myLanguage/Kdenlive/Manual/Effects/Enhancement/Denoiser|Denoiser]]</translate> | |||
| <translate># [[Special:myLanguage/Kdenlive/Manual/Effects/Enhancement/Nikon D90 Stairstepping fix|Nikon D90 Stairstepping fix]]</translate> | |||
| <translate># [[Special:myLanguage/Kdenlive/Manual/Effects/Enhancement/Sharpen|Sharpen]]</translate> | |||
| </nowiki> | |||
| </code> | |||
| ==Previous and Next== | ==Previous and Next== | ||
| Line 210: | Line 279: | ||
| Other smilies can be found on [http://commons.wikimedia.org/w/index.php?title=Special:Search&search=smilies&fulltext=1 Commons Wikimedia] and the file-name is sufficient to get the image included | Other smilies can be found on [http://commons.wikimedia.org/w/index.php?title=Special:Search&search=smilies&fulltext=1 Commons Wikimedia] and the file-name is sufficient to get the image included | ||
| == Image Issues == | |||
| On some pages sections tend to run together. This is caused by long images placed besides short text sections. Solution: place <nowiki>< /translate><br style="clear: both;"/>< translate> after the troublesome section. This also works with docbook. See Amarok/Manual/AmarokWindow/PlaylistPane | |||
| ==Reporting== | ==Reporting== | ||
Latest revision as of 19:11, 19 March 2013
Long Page Names
the Index page shows "Kdenlive on other Desktops and Operating Systems" and it is currently linked to Kdenlive/Manual/KdenliveOnOtherPlatforms. In this case there will be enough to add the anchor 
<span id="Kdenlive on other Desktops and Operating Systems">
The general concern is that links should refer to Kdenlive/Manual/KdenliveOnOtherPlatforms#Kdenlive on other Desktops and Operating Systems
Special Tags
<code>6 feet in meters</code> will output <code class="output">1.8288 m</code>.
6 feet in meters will output 1.8288 m.
Section links need to be anchored like this:
<span id="Working_with_Languages"></span><br />
Close the translate tag before the span id and re-open afterwards
Don't forget to add an empty line after the ID
{{#UseLiquidThreads:1}}
{{:Special:PrefixIndex/{{FULLPAGENAME}}/}}
<s>this should strike through</s>
this should strike through
Avoid using text smilies as they cause problems for translation applications.  Instead use {{Smiley}}   Other smilies can be found on [Commons Wikimedia] and the file-name is sufficient to get the image included}}
  Other smilies can be found on [Commons Wikimedia] and the file-name is sufficient to get the image included}}
{{Special:ContributionScores/10/7}} displays the contribution score tables on a page
For example of using citations, see Digikam/Lens_Distortion
<blockquotes></blockquotes>
This tag is used when quoting from another site or page. It uses a proportional italic font
Old-style code display
Code Display
| kwrite ftp://ftp.kde.org/pub/kde/Welcome.msg | 
| “for images that contain substantial areas of constant color a linear histogram will often be dominated by a single bar. In this case a logarithmic histogram will often be more useful.” | 
Using syntaxhighlight
{{Input|<syntaxhighlight lang="php" line>
# Initialise common code
$preIP = dirname( __FILE__ );
require_once( "$preIP/includes/WebStart.php" );
</syntaxhighlight>}}
will result in
'"`UNIQ--syntaxhighlight-00000013-QINU`"'
For plain code, use "lang="bash" "
Symbols
 Support for this application can be found from the project's home page
Support for this application can be found from the project's home page
(also Community-app2 and Community-app-footnote2}}
Definition Lists
;Efficient
: Highlight the elegance of efficiency — from steps removed and labor reduced to costs saved.
;Effortless
: Communicate in intrinsically simple terms. Be concise, intuitive, eloquent, and fluid.
- Efficient
- Highlight the elegance of efficiency — from steps removed and labor reduced to costs saved.
- Effortless
- Communicate in intrinsically simple terms. Be concise, intuitive, eloquent, and fluid.
Display category without linking to category
To link a category page within a page as a normal wiki link (without adding the page to the category), prefix the link name with a colon. For example: [[:Category:Not in this category|Display Label]] from Wikimedia Help
Enumerated Lists
Standard wiki markup results in
- First item
- First sub-item
- Second sub-item.
 
To improve display, a new class has been introduced.
{{Input:1=<div class="manualtoc">
- First item
- First sub-item
- Second sub-item</nowiki>
 
}}
which results in
- First item
- First sub-item
- Second sub-item
 
Breaking down enumerated lists for translation
Lists like
# [[Special:myLanguage/Kdenlive/Manual/Effects/Enhancement/Denoiser|Denoiser]]
# [[Special:myLanguage/Kdenlive/Manual/Effects/Enhancement/Nikon D90 Stairstepping fix|Nikon D90 Stairstepping fix]]
# [[Special:myLanguage/Kdenlive/Manual/Effects/Enhancement/Sharpen|Sharpen]]
can, if more than two or three deep, cause problems for translators. Resolve this by adding translate tag pairs around each list item, viz:
<translate># [[Special:myLanguage/Kdenlive/Manual/Effects/Enhancement/Denoiser|Denoiser]]</translate>
<translate># [[Special:myLanguage/Kdenlive/Manual/Effects/Enhancement/Nikon D90 Stairstepping fix|Nikon D90 Stairstepping fix]]</translate>
<translate># [[Special:myLanguage/Kdenlive/Manual/Effects/Enhancement/Sharpen|Sharpen]]</translate>
Previous and Next
- Annew/Snippets
- Akademy Notes →
- ← Annew's User page
- Annew/Snippets
- ← Annew's User page
- Annew/Snippets
- Akademy Notes →
To make the links to the pages look less ugly you can provide extra options to the template:
{{Prevnext|Article/section/previous-subsection|Article/section/next|This points to the previous section text|This is the next section}}
This will be rendered as
- ← This points to the previous section
- Annew/Snippets
- This is the next section →
Software InfoBox
Software Info
| 
 | 
Boxes
Table notes
class="tablecenter":
|  The KMail Welcome Screen | KMail is the email component of Kontact, the integrated personal information manager of KDE. | 
|  | KMail is the email component of Kontact, the integrated personal information manager of KDE. | 
class="vertical-centered" - table aligned left, text aligned vertically centered
|  | <:translate><:!--T:1--> Internet and Networking<:/translate> | ||
class="vertical-centered wikitable" style="border: 1px solid grey;"
Centered heading -
'"`UNIQ--syntaxhighlight-00000024-QINU`"'
| Debugging | |
|---|---|
| F10 | Step over (gdb's "next") | 
| F11 | Step into (gdb's "step") | 
| F12 | Step out of (gdb's "finish") | 
| Description | Windows | Mac OS X | KDE Software | 
|---|---|---|---|
| Blogging client | Windows Live Writer | Blogilo | |
| BitTorrent Client | BitTorrent | KTorrent, KMLDonkey, KGet | |
| Download Manager | FlashGet | KGet | |
| eDonkey Client | eMule | KMLDonkey | |
| E-mail Client | Outlook Express, Windows Live Mail | Apple Mail | KMail | 
| Feed Aggregator | Akregator | ||
| PIM | Outlook | Kontact | |
| Web Browser | Internet Explorer | Safari | Konqueror, rekonq | 
| Instant Messaging Client | Windows Live Messenger | iChat, Adium | Kopete, KMess | 
| IRC Client | mIRC | Colloquy | Konversation | 
:{|class="tablecenter" style="border:1px solid darkgray;"
Link image and external url:
Other smilies can be found on Commons Wikimedia and the file-name is sufficient to get the image included
Image Issues
On some pages sections tend to run together. This is caused by long images placed besides short text sections. Solution: place < /translate><br style="clear: both;"/>< translate> after the troublesome section. This also works with docbook. See Amarok/Manual/AmarokWindow/PlaylistPane ==Reporting== NB: <nowiki>{{PAGENAME}} returns the page name without prefix. For this page it returns "Namespace". {{FULLPAGENAME}} returns both namespace and pagename; for this page, that is "Help:Namespace". (From http://meta.wikimedia.org/wiki/Help:Namespace#Custom_namespaces)
[Tuesday 08 June 2010] [18:10:17] <Nikerabbit> annew: you can also include the graph on your user page directly:
[Tuesday 08 June 2010] [18:10:45] <Nikerabbit> or generate your own at http://userbase.kde.org/index.php?title=Special:TranslationStats
Translate Notes
[18:20] <Nikerabbit> Nilli: use http://userbase.kde.org/Special:LanguageStats/sv as an entry point?









