Main Page | Recent changes | Edit this page | Page history

Printable version | Disclaimers | Privacy policy

Not logged in
Log in / create account | Help
 

sl.Wiki:Templates/Internal

From sl.Wiki

Hint
Note: The category list at the bottom might not be correct, because of the template samples.

Please keep thoriwng these posts up they help tons.

Code What does it looks like Comment
{{!}}
template
| This template simply adds a pipe character into other templates. Handle with care!
{{Directory2plain|language}}
template
{{Directory2plain|en}} expands to: Redanig this makes my decisions easier than taking candy from a baby. Template to translate the word "directory" to different languages. This template is used for creating backlinks to the directory pages. The parameters are case-sensitive.

Parameters:

  1. The ISO 3166-1 code of the target language (i.e. the language to display).
{{ISO2plain|target language|text language}}
template
{{ISO2plain|en|de}} expands to:

German

Template to translate a ISO 3166-1 into to plain text of given language. This template is mainly used by other templates. The parameters are case-sensitive.

Parameters:

  1. The ISO 3166-1 code of the target language (i.e. the language to display).
  2. The ISO 3166-1 code for the language to be translated into plain text.
{{NS2plain|namespace identifier}}
template
{{NS2plain|ET}} expands to: Enemy Territory Template to get the "long" version text for a given namespace. The parameters are case-sensitive.

Parameters:

  1. The namepace identifier. Currently supported are:
    • sl
    • sl.Wiki
    • sl.help
    • RtCW
    • ET
    • ETQW
    • FarCry

{{NS List}}
template
{{NS List|*|}} expands to:
  • sl
  • sl.Wiki
  • sl.help
  • RtCW
  • ET
  • ETQW
  • FarCry


{{NS List||,}} expands to: sl, sl.Wiki, sl.help, RtCW, ET, ETQW, FarCry

Lists all currently defined/used custom namespaces.

Parameters:

  1. Prefix, text to prepend to each namespace identifier.
  2. Suffix, text to append to all namespaces but the last one.
{{Lang List}}
template
{{Lang List| *|}} expands to: Impressive brain power at work! Great asnwer!

{{Lang List||,}} expands to: Impressive brain power at work! Great asnwer!

Lists all currently defined/used languages by their ISO 3166-1 code.

Parameters:

  1. Prefix, text to prepend to each country code.
  2. Suffix, text to append to all country codes but the last one.
  • Tab_td_head
  • Tab_td_body
  • Tab_td_tail
  • Tab_lr_head
  • Tab_lr_body
  • Tab_lr_body
Templates to format a table with {{Tab_td}} resp. {{Tab_lr}}, see Text Formating for exmples.
{{Translated|status|namespace|article name|language}}
template
Marks an article as translated

Parameters:

  1. Status, can be one of the following:
    • o - original language, adds the article to the global and
    • u - update needed, the main article was changed, so the translations need revision. Adds the article to the "translation needed" category and inserts a link to the "In other languages" box in the lower left.
    • t - translated, the fully article is tranlated. Inserts a link to the "In other languages" box in the lower left.
  2. namespace of the article
  3. the name of the article in the language given below (names for tranlated articles usually differ from the original name)
  4. The ISO 3166-1 code for the language the article was translated to.
{{Translation needed|language|check1|check2|...}}
template
Adds the current article to the language specific "translation needed" category, if its not one of the given languages.

ATM a list with up to 9 languages to are supported.

Parameters:

  • 1. if this langugage is not one of the folling ones, then add the article to the "translation needed" categories
  • 2,3,4,5,6,7,8,9,10 - language list to check
{{TNT2plain|language}}
template
{{TNT2plain|en}} expands to: Haha. I woke up down today. You've ceheerd me up! Template to get the correct "Translation needed" category name for a certain language.

(TNT = "Translation needed" text)

Parameters:

  1. The ISO 3166-1 code of the target language (i.e. the language to display).


We need more insights like this in this trhaed.



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

This page has been accessed 729 times. This page was last modified on 17 December 2006, at 06:48.


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

Edit this page
Discuss this page
Page history
What links here
Related changes

Special pages