User:Annew/Snippets: Difference between revisions

    From KDE UserBase Wiki
    (Created page with '<nowiki>{{Special:ContributionScores/10/7}}</nowiki> displays the '''contribution score tables''' on a page {|style="text-align:center" cellpadding="2" |[[Image:Kmail-kde4.png|t...')
     
     
    (47 intermediate revisions by 5 users not shown)
    Line 1: Line 1:
    <nowiki>{{Special:ContributionScores/10/7}}</nowiki> displays the '''contribution score tables''' on a page
    == 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==
     
    {{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>.
    ----
    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>{{:Special:PrefixIndex/{{FULLPAGENAME}}/}}</nowiki>


    {|style="text-align:center" cellpadding="2"
    <nowiki><s>this should strike through</s></nowiki>
    |[[Image:Kmail-kde4.png|thumb|265px|The KMail Welcome Screen]]|| '''KMail is the email component of Kontact, the integrated personal information manager of KDE.'''
    <s>this should strike through</s>
    |}


    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}}


    {|align="center"
    <nowiki>{{Special:ContributionScores/10/7}}</nowiki> displays the '''contribution score tables''' on a page
    ....
    |}


    ::{|
    For example of using citations, see [[Digikam/Lens_Distortion]]
    |<imagemap>Image:Icalshare.png
    <nowiki><blockquotes></blockquotes></nowiki> <blockquote>This tag is used when quoting from another site or page. It uses a proportional italic font</blockquote>
    default [http://www.icalshare.com/]
    desc none
    </imagemap>|| - a huge collection of calendars with a broad range of topics
    |}
    ----
    ----
     
    === Old-style code display ===
    '''Code Display'''
    {|style="width:75%; border:2px dotted #BCBCBC; background:#EEEEEE;"
    {|style="width:75%; border:2px dotted #BCBCBC; background:#EEEEEE;"
    |
    |
    Line 29: 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'''
    {{Community-app}}
    {{Community-app-footnote}} (also Community-app2 and Community-app-footnote2}}
    ===Definition Lists===
    {{Input|1=;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: <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>
    &lt;translate># [[Special:myLanguage/Kdenlive/Manual/Effects/Enhancement/Denoiser|Denoiser]]&lt;/translate>
    &lt;translate># [[Special:myLanguage/Kdenlive/Manual/Effects/Enhancement/Nikon D90 Stairstepping fix|Nikon D90 Stairstepping fix]]&lt;/translate>
    &lt;translate># [[Special:myLanguage/Kdenlive/Manual/Effects/Enhancement/Sharpen|Sharpen]]&lt;/translate>
    </nowiki>
    </code>
    ==Previous and Next==


    ::{|
    {{Next|User:Annew/AkademyNotes|Akademy Notes}}
    |[[Image:Im-status-message-edit.png]]||'''Note'''
    ----
    {{Prev|User:Annew|Annew's User page}}
    ----
    {{Prevnext|User:Annew|User:Annew/AkademyNotes|Annew's User page|Akademy Notes}}
    ----
    {{Prevnext|User:Annew|User:Annew/AkademyNotes}}
    ----
    To make the links to the pages look less ugly you can provide extra options to the template:
    {{Input|1=<nowiki>{{Prevnext|Article/section/previous-subsection|Article/section/next|This points to the previous section text|This is the next section}}</nowiki>}}
    This will be rendered as
    {{Prevnext|Article/section/previous-subsection|Article/section/next|This points to the previous section|This is the next section}}
    ----
     
    ==Software InfoBox==
     
    '''Software Info'''
    {|style="width: 100%" cellpadding="5"
    |- valign="center"
    | width="50%" |
    <div style="border: 1px solid darkgray; bakground-color: lightgray; padding: 10px; text-align: left;">
     
    * '''Name:''' Okteta [[Image:Okteta.png|right|48px]]
    * '''Description:''' Hex Editor
    * '''Categories:''' [[Applications/Utilities]]
    * '''Version:''' 0.5
    * '''Available for:''' 4.5
    * '''[http://utils.kde.org/projects/okteta Okteta Website]'''
    * '''[http://docs.kde.org/stable/en/kdeutils/okteta/index.html Okteta Handbook]'''
    </div>
    |}
    |}
    ----


    ::{|
    ==Boxes==
    |[[Image:help-hint.png]]||'''Tip'''
    {{Note|1=Now controlled by a template}}
    {{Warning|1=Another template}}
    {{Tip|1=and another template}}
    {{Attention|1=More than a note, but not a warning}}
    {{Being_Edited}}
    {{Construction}}
    {{Info|This is an ''Info'' box. It gives important additional information rendered in a box.}}
    {{Remember|1=This is for things that definitely must not be forgotten}}
    {{Remember|3=Don't Forget This!|1=You can use parameter number 3 to set an individual box heading:
    {{Input|1=<nowiki>{{Remember|3=Don't Forget This!|1=You can use...}}</nowiki>}}}}
     
    ----
     
    ==Table notes==
    class="tablecenter":
     
    {|class="tablecenter"
    |[[Image:Kmail-kde4.png|thumb|265px|<div style="text-align:center">The KMail Welcome Screen</div>]]|| '''KMail is the email component of Kontact, the integrated personal information manager of KDE.'''
    |}
    ----
    {|class="vertical-centered"
    |[[Image:Kmail-kde4.png|thumb|265px|The KMail Welcome Screen]]|| '''KMail is the email component of Kontact, the integrated personal information manager of KDE.'''
    |}
    |}
    class="vertical-centered" - table aligned left, text aligned vertically centered
    ----


    ::{|
    {|class="vertical-centered"
    |[[Image:dialog-warning.png|32px]]||'''Warning'''
    |[[Image:Applications-internet.png|48px|link=Special:myLanguage/Applications/Internet]]||colspan="3"|<h4>[[Special:myLanguage/Applications/Internet|<:translate><:!--T:1-->
    Internet and Networking<:/translate>]]</h4>
    |}
    |}


    {{Community-app}}
    <nowiki>class="vertical-centered wikitable" style="border: 1px solid grey;"</nowiki>
     
    Centered heading -
    {{Input|<syntaxhighlight lang="php" line>
    {| class="tablecenter" style="border:1px solid"
    ! colspan="2" style="background:#ffff99;text-align:center;" | Debugging
    |-
    | F10
    | Step over (gdb's "next")
    |-
    | F11
    | Step into (gdb's "step")
    |-
    | F12
    | Step out of (gdb's "finish")
    |}</syntaxhighlight>
    }}
     
    {| class="tablecenter" style="border:1px solid"
    ! colspan="2" style="background:#ffff99;text-align:center;" | Debugging
    |-
    | F10
    | Step over (gdb's "next")
    |-
    | F11
    | Step into (gdb's "step")
    |-
    | F12
    | Step out of (gdb's "finish")
    |}


    {{Community-app-footnote}}


    {{Being_Edited}}
    {|class="vertical-centered wikitable" style="border: 1px solid grey;"
    ! width="25%" | Description || width="25%" | Windows || width="25%" | Mac&nbsp;OS&nbsp;X || width="25%" | 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]]
    |}


    {{Construction}}


    {{Info|If you are looking for the Plasma FAQ, the current version is available [[Plasma/FAQ | on this page]].}}
    <nowiki>:{|class="tablecenter" style="border:1px solid darkgray;"</nowiki>


    ::{|align="center" cellpadding="8" style="border:1px solid darkgray;"
    :{|class="tablecenter" style="border:1px solid darkgray;"
    |<imagemap>Image:cwp7.png|200px
    |<imagemap>Image:cwp7.png|200px
    default [http://www.x.se/npw]
    default [http://www.x.se/npw]
    Line 61: Line 267:
    |}
    |}


    ---------------
    ----
     
    Link image and external url:
    ::{|
    |<imagemap>Image:Icalshare.png
    default [http://www.icalshare.com/]
    desc none
    </imagemap>|| - a huge collection of calendars with a broad range of topics
    |}
    ----
     
    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==
     
    NB: <nowiki>{{PAGENAME}}</nowiki> returns the page name without prefix. For this page it returns "Namespace". <nowiki>{{FULLPAGENAME}}</nowiki> returns both namespace and pagename; for this page, that is "Help:Namespace". (From http://meta.wikimedia.org/wiki/Help:Namespace#Custom_namespaces)
    NB: <nowiki>{{PAGENAME}}</nowiki> returns the page name without prefix. For this page it returns "Namespace". <nowiki>{{FULLPAGENAME}}</nowiki> returns both namespace and pagename; for this page, that is "Help:Namespace". (From http://meta.wikimedia.org/wiki/Help:Namespace#Custom_namespaces)
    ------------------
    ------------------
    Line 67: Line 292:
    [Tuesday 08 June 2010] [18:10:17] <Nikerabbit> annew: you can also include the graph on your user page directly: {{Special:TranslationStats/scale=hours;days=4;width=900}}
    [Tuesday 08 June 2010] [18:10:17] <Nikerabbit> annew: you can also include the graph on your user page directly: {{Special:TranslationStats/scale=hours;days=4;width=900}}
    [Tuesday 08 June 2010] [18:10:45] <Nikerabbit> or generate your own at http://userbase.kde.org/index.php?title=Special:TranslationStats
    [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?
    [18:20] <Nikerabbit> Nilli: use http://userbase.kde.org/Special:LanguageStats/sv as an entry point?
    ----
    [[MyTestPage]]

    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>

    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}}

    {{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.”
    

    Warning

    These are deprecated. Use {{Input} and {{Output}} templates instead

    Using syntaxhighlight

    {{Input|<syntaxhighlight lang="php" line>
    # Initialise common code
    $preIP = dirname( __FILE__ );
    require_once( "$preIP/includes/WebStart.php" );
    </syntaxhighlight>}}

    will result in

    # Initialise common code
    $preIP = dirname( __FILE__ );
    require_once( "$preIP/includes/WebStart.php" );
    

    For plain code, use "lang="bash" "


    Symbols


     See footnote



    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

    1. First item
      1. First sub-item
      2. Second sub-item.

    To improve display, a new class has been introduced.

    {{Input:1=<div class="manualtoc">

    1. First item
      1. First sub-item
      2. Second sub-item</nowiki>

    }}

    which results in

    1. First item
      1. First sub-item
      2. 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





    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


    Software InfoBox

    Software Info


    Boxes

    Note

    Now controlled by a template

    Warning

    Another template

    Tip

    and another template

    Attention

    More than a note, but not a warning

    Currently Being Edited

    This page is currently being edited.
    If this notice persists for an unreasonable time, please either notify irc.freenode.org #kde-www or report on Claus chr's Talk page

    Note: Pages should not normally be marked for translation while they are being actively worked on


    Under Construction

    This is a new page, currently under construction!

    Information

    This is an Info box. It gives important additional information rendered in a box.

    Remember

    This is for things that definitely must not be forgotten

    Remember

    You can use parameter number 3 to set an individual box heading:
    {{Remember|3=Don't Forget This!|1=You can use...}}



    Table notes

    class="tablecenter":

    The KMail Welcome Screen
    KMail is the email component of Kontact, the integrated personal information manager of KDE.

    The KMail Welcome Screen
    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 -

    {| class="tablecenter" style="border:1px solid"
    ! colspan="2" style="background:#ffff99;text-align:center;" | Debugging
    |-
    |	F10 
    | Step over (gdb's "next") 
    |-
    |	F11 
    | Step into (gdb's "step") 
    |-
    |	F12
    | Step out of (gdb's "finish") 
    |}
    
    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;"

    Screenshot with neat border

    Link image and external url:

    - a huge collection of calendars with a broad range of topics

    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?


    MyTestPage