Vorlage:Ambox: Unterschied zwischen den Versionen

K
103 Versionen von wikivoyage:Vorlage:Ambox importiert
imported>MSGJ
K (fix my mistake)
K (103 Versionen von wikivoyage:Vorlage:Ambox importiert)
 
(40 dazwischenliegende Versionen von 11 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
{{#ifeq:{{{subst}}}|SUBST
<includeonly>{{#invoke:Message box|ambox}}</includeonly><noinclude>{{Dokumentation}}</noinclude>
|{{#if:{{{name|}}}
  |{{error|Template {{tlx|{{{name}}}}} has been incorrectly substituted.}}
}}[[Category:Pages with incorrectly substituted templates]]
}}{{#ifeq:{{{small}}}|left
|{{Ambox/core
  |small      = left
  |type      = {{{type|}}}
  |image      = {{#if:{{{smallimage|}}}
  |{{{smallimage}}}
  |{{{image|}}}
  }}
  |imageright = {{#if:{{{smallimageright|}}}
  |{{{smallimageright}}}
  |{{{imageright|}}}
  }}
  |style      = {{{style|}}}
  |textstyle  = {{{textstyle|}}}
  |text      = {{#if:{{{smalltext|}}}
  |{{{smalltext}}}
  |{{{text}}}
  }}
}}
|{{Ambox/core
  |type      = {{{type|}}}
  |image      = {{{image|}}}
  |imageright = {{{imageright|}}}
  |style      = {{{style|}}}
  |textstyle  = {{{textstyle|}}}
  |text      = {{{text}}}
  |date      = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}
  |{{#ifeq:{{{date|¬}}}|¬||{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
  |{{{date|}}}
  }}
}}
}}{{cat handler
|main={{#if:{{{cat|}}}
  |{{#if:{{{date|}}}
  |[[Category:{{{cat}}} {{{preposition|from}}} {{{date}}}]]{{#ifexist:Category:{{{cat}}} {{{preposition|from}}} {{{date}}}|
    |[[Category:Articles with invalid date parameter in template]]
  }}
  |[[Category:{{#if:{{{undated|}}}
    |{{{undated}}}
    |{{{cat}}}
  }}]]
  }}
}}{{#if:{{{all|}}}
  |[[Category:{{{all}}}]]
}}
|template={{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|[[Category:Article message boxes]]}}
}}{{#ifeq:{{FULLPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}
|{{documentation}}<!-- Transclude documentation on template page -->
}}<noinclude>
 
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>