Mudanças entre as edições de "Tlg"

De Wiki Coolab
Ir para navegação Ir para pesquisar
EquationNote>Patrick87
(Allow empty parameters to be specified (whatever this is good for). At least it simplifies documentation.)
EquationNote>Patrick87
(Update linking logic so "anypage" is not needed anymore; remove unused and undocumented LANG and SISTER parameters)
Linha 3: Linha 3:
 
<span style="white-space:nowrap;">
 
<span style="white-space:nowrap;">
 
--><!--
 
--><!--
 +
 
   -- begin tt style if tt=yes or code=yes given
 
   -- begin tt style if tt=yes or code=yes given
 
-->{{#if:{{{tt|}}}{{{code|}}}|<code>}}<!--
 
-->{{#if:{{{tt|}}}{{{code|}}}|<code>}}<!--
Linha 11: Linha 12:
 
   -- begin boldface if bold=yes given
 
   -- begin boldface if bold=yes given
 
-->{{#if:{{{bold|}}}|'''}}<!--
 
-->{{#if:{{{bold|}}}|'''}}<!--
  -- begin link if not nolink=yes; add any LANG and SISTER prefixes
+
 
-->{{#if:{{{nolink|}}}||{{!(}}{{!(}}{{{LANG|}}}{{{SISTER|}}}<!--
+
-- create actual link (if not nolink=yes)
  -- specify page to link to (unless nolink=yes)
+
-->{{#if:{{{nolink|}}}
-->{{#if:{{{1|}}}|{{#if:{{{anypage|}}}||{{ns:Template}}:}}{{{1|}}}|{{FULLPAGENAME}}}}{{!}}}}<!--
+
      |<!-- nolink=yes -->
 +
      |{{#ifeq:{{padleft:|1|{{{1}}}}} <!-- check whether we have a colon at the beginning -->
 +
        |:
 +
        |{{!(}}{{!(}}:{{FULLPAGENAME:{{{1}}}}} <!-- if yes: link to article ns or assume other valid link, e.g. Interwikilink -->
 +
        |{{!(}}{{!(}}:{{#switch:{{NAMESPACE:{{{1}}}}}
 +
              |{{ns:0}}|{{ns:10}}={{ns:10}}:{{PAGENAME:{{{1}}}}} <!-- No ns given: we want to link to template ns -->
 +
              |#default={{FULLPAGENAME:{{{1}}}}}<!--
 +
        -->}}<!--
 +
    -->}}{{!}}<!-- <<--- pipe character in link
 +
-->}}<!--
 +
 
 +
-- create link text
 
   -- opening brace if braceinside=yes
 
   -- opening brace if braceinside=yes
 
-->{{#if:{{{braceinside|}}}|<nowiki>{{</nowiki>}}<!--
 
-->{{#if:{{{braceinside|}}}|<nowiki>{{</nowiki>}}<!--
Linha 23: Linha 35:
 
   -- end of link, unless nolink=yes
 
   -- end of link, unless nolink=yes
 
-->{{#if:{{{nolink|}}}||]]}}<!--
 
-->{{#if:{{{nolink|}}}||]]}}<!--
 +
 
   -- end boldface if bold=yes given
 
   -- end boldface if bold=yes given
 
-->{{#if:{{{bold|}}}|'''}}<!--
 
-->{{#if:{{{bold|}}}|'''}}<!--
 
   -- begin italic style if italic=yes given
 
   -- begin italic style if italic=yes given
 
-->{{#if:{{{italic|}}}|<span style="font-style: italic;">}}<!--
 
-->{{#if:{{{italic|}}}|<span style="font-style: italic;">}}<!--
  -- add the remaining parameters
+
 
 +
-- add parameters
 
-->{{#ifeq:{{{2|}}}|{{{2|x}}}|&#124;{{{2}}}}}<!--
 
-->{{#ifeq:{{{2|}}}|{{{2|x}}}|&#124;{{{2}}}}}<!--
 
-->{{#ifeq:{{{3|}}}|{{{3|x}}}|&#124;{{{3}}}}}<!--
 
-->{{#ifeq:{{{3|}}}|{{{3|x}}}|&#124;{{{3}}}}}<!--
Linha 39: Linha 53:
 
-->{{#ifeq:{{{11|}}}|{{{11|x}}}|&#124;{{{11}}}}}<!--
 
-->{{#ifeq:{{{11|}}}|{{{11|x}}}|&#124;{{{11}}}}}<!--
 
-->{{#if:{{{12|}}}|&#124;''...''}}<!--
 
-->{{#if:{{{12|}}}|&#124;''...''}}<!--
 +
 
   -- end italic style if italic=yes given
 
   -- end italic style if italic=yes given
 
-->{{#if:{{{italic|}}}|</span>}}<!--
 
-->{{#if:{{{italic|}}}|</span>}}<!--

Edição das 13h31min de 19 de maio de 2013

Erro de script: Nenhum módulo desse tipo "documentation".