Wikipedia:Portability of code

From Wikipedia

ns: project · · rev-ID : 2411 · ar · arc · dv · fa · he · ug · ur · yi
Navigation

Contents

[edit] scope

  • ‎"Portability of code" is a concept to share the same content / page source between different wikies with a minimal amount of "adaptations".‎ This can be acieved with different techniques:‎
  1. ‎links should use "generic namespaces only"; use "{{ns:namespace}}" for "local" links and "<English_namespace_name>" for "inter project" links‎
  2. ‎"interproject links" to MediaWiki foundation wikies can be achieved via the "predefined" interwiki prefixes (as commons:; other predefined prefixes are: MediaZilla:, wikimedia: etc).‎
  3. ‎"Mediawiki messages" ‎(System messages)‎ should be used in "{{int:foo}}" notation when refering to the content language‎
  4. ‎"text" should be properly embed in the page; its location should not be influenced by the bidirectional algorithm rendering the page in any language. This is achieved using the following rules by page "designers":‎
    1. ‎"paragraphs" and "blocks of text" should be embeded by the author depending on the directionality of the script of the chosen language:‎
‎fixed LTR text‎
‎fixed RTL text‎
‎variable "text" whichs directionality depends on the script of the "content language"; in this case variables as "{{CONTENTDIR}}" and "{{CONTENTMARK}}" are used; additional variables as "{{BEFORE}}" and "{{AFTER}}" (see BEFORE and AFTER) are required in order to display images and floating objects at the right place‎
  • note: The translation of the "Mediawiki messages" ‎(System messages)‎ in different languages is never synchronized. It is possible (with an improuved MediaWiki software / with careful page design) to "overcome" this "handicap ".‎

[edit] portable code used in this wiki

note: The content of that pages can be "copied and pasted" between the wikies.‎

[edit] adaptations used to support portability

‎"Configurating" portability on "your" wiki:‎

[edit] walking the path

  • ‎"LTR:project:FAQ's" lists more proposed magic words / predefined template required for further developments of the content and page code.‎
  • ‎The / most Wikimedia Foundations wiki are using caching. This is why neither the "content" of the pages nor the "directionality" of the (special) pages changes when using "uselang=xx". Other wikies may follow other strategies. The caching argument should never be the end of the line.‎

[edit] comments

  • ‎"Wiktionaries" can use titles starting with "lower" case letters.‎
  • I never tested "{{LCFIRST:{{PAGENAMEE}}}}.‎
Gangleri | w: Th | T 12:02, 29 March 2006 (UTC)
Navigation
generic heading