Vorlage:Asbox: Unterschied zwischen den Versionen

K
95 Versionen von wikivoyage:Vorlage:Asbox importiert
imported>MSGJ
(rmv redundant logic)
K (95 Versionen von wikivoyage:Vorlage:Asbox importiert)
 
(15 dazwischenliegende Versionen von 5 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
<table class="metadata plainlinks stub" style="background: transparent;"><tr>
<table class="metadata plainlinks stub" style="background: transparent;"  role="presentation"><tr>
{{#if:{{{icon|}}}{{{image|}}}
{{#if:{{{icon|}}}{{{image|}}}
  |<td>{{#if:{{{icon|}}}
  |<td>{{#if:{{{icon|}}}
Zeile 6: Zeile 6:
  }}</td>
  }}</td>
}}
}}
<td>''This {{{subject|}}} {{{article|article}}} {{{qualifier|}}} is a [[Wikipedia:stub|stub]].  You can help Wikipedia by [{{fullurl:{{FULLPAGENAME}}|action=edit}} expanding it].''{{#if:{{{note|}}}|<br /><span style="font-style: normal; font-size: smaller;">{{{note|}}} }}</td></tr></table><includeonly><!--
<td>''Dieser {{{subject|}}} {{{article|Artikel}}} {{{qualifier|}}} ist ein [[Wikivoyage:Stubs|Stub]].  Die kannst Wikivoyage helfen, in dem du ihn [{{fullurl:{{FULLPAGENAME}}|action=edit}} erweiterst].''{{#if:{{{name|}}}
|{{navbar|{{{name}}}|mini=yes|style=position: absolute; right: 15px; display: none;}}
}}{{#if:{{{note|}}}
|<br /><span style="font-style: normal; font-size: smaller;">{{{note}}}
}}</td>
</tr></table>{{#ifeq:{{NAMESPACE}}|{{ns:0}}<!--Article space-->|<!--


  *** Stub article category sorted by DEFAULTSORT or PAGENAME. ***
  *** Stub category ***
-->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!--


-->{{#ifeq:{{NAMESPACE}}||[[Category:{{{category}}}]]}}<!--
  *** Optional second stub category ***
 
-->{{#if:{{{category1|}}}|[[Category:{{{category1}}}]]}}<!--
*** Template category - sorted by " tempsort". ***
 
-->{{#ifeq:{{NAMESPACE}}|Template|{{#ifeq:{{{tempsort|}}}|no||[[Category:{{{category}}}| {{{tempsort|{{PAGENAME}}}}}]]}}|}}<!--
 
  *** Is there a second stub category? ***
 
-->{{#if:{{{category1|}}}|<!--
 
  *** Stub article second category sorted by DEFAULTSORT or PAGENAME. ***
 
  -->{{#ifeq:{{NAMESPACE}}||[[Category:{{{category1}}}]]}}<!--
 
  *** Template second category - sorted by " tempsort1". ***
 
  -->{{#ifeq:{{NAMESPACE}}|Template|[[Category:{{{category1}}}| {{{tempsort1|{{PAGENAME}}}}}]]|}}<!--


*** Optional third stub category ***
-->{{#if:{{{category2|}}}|[[Category:{{{category2}}}]]}}<!--
-->}}<!--
-->}}<!--


*** Is there a third stub category? ***
*** check for valid name parameter and transclude /templatepage on template page ***
 
-->{{#if:{{{demo|<noinclude>yes</noinclude>}}}
-->{{#if:{{{category2|}}}|<!--
  |<!--Demonstration version-->
 
  |{{#switch:{{FULLPAGENAME:{{{name|}}}}}
  *** Stub article third category sorted by DEFAULTSORT or PAGENAME. ***
    |{{FULLPAGENAME}}=<!--Template page-->{{Asbox/templatepage
 
      |image    = {{{image|}}}
  -->{{#ifeq:{{NAMESPACE}}||[[Category:{{{category2}}}]]}}<!--
      |pix      = {{{pix|}}}
 
      |imagealt  = {{{imagealt|}}}
  *** Template third category - sorted by " tempsort2". ***
      |icon      = {{{icon|}}}
 
      |subject  = {{{subject|}}}
  -->{{#ifeq:{{NAMESPACE}}|Template|[[Category:{{{category2}}}| {{{tempsort2|{{PAGENAME}}}}}]]|}}<!--
      |article   = {{{article|}}}
 
      |qualifier = {{{qualifier|}}}
-->}}<!--
      |category  = {{{category|}}}
 
      |tempsort  = {{{tempsort|}}}
*** exclude in print category ***
      |category1 = {{{category1|}}}
 
      |tempsort1 = {{{tempsort1|}}}
-->{{#ifeq:{{NAMESPACE}}|Template|[[Category:Exclude in print]]|}}<!--
      |category2 = {{{category2|}}}
 
      |tempsort2 = {{{tempsort2|}}}
 
      |note      = {{{note|}}}
--></includeonly><!--
      |name      = {{{name|}}}
 
    }}
*** transclude /templatepage on template page ***
    |{{#titleparts:{{FULLPAGENAME}}|1}}=<!--Is a subtemplate, e.g. a sandbox version. Don't display documentation.-->
 
    |#default={{#ifeq:{{NAMESPACE}}|Template
-->{{#ifeq:{{FULLPAGENAME:{{{name|}}}}}|{{FULLPAGENAME}}
      |<!--{{ombox
  |{{Asbox/templatepage
        |type=content
    |image    = {{{image|¬}}}
        |text=It appears that the ''name'' parameter of this template is undefined or incorrect. If this is the stub template, please set {{para|name|{{FULLPAGENAME}}}}. If this is a demonstration please set {{para|demo|yes}}.
    |pix      = {{{pix|¬}}}
      }}-->[[Category:Stub message boxes needing attention|{{#if:{{{name|}}}|E|W}}{{PAGENAME}}]]
    |subject   = {{{subject|¬}}}
    }}
    |qualifier = {{{qualifier|¬}}}
    |category  = {{{category|¬}}}
    |tempsort  = {{{tempsort|¬}}}
    |category1 = {{{category1|¬}}}
    |tempsort1 = {{{tempsort1|¬}}}
    |category2 = {{{category2|¬}}}
    |tempsort2 = {{{tempsort2|¬}}}
    |note      = {{{note|¬}}}
    |name      = {{{name}}}
   }}
   }}
}}<!--
}}<noinclude>
 
{{Dokumentation}}
--><includeonly>{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|{{#ifeq:{{NAMESPACE}}|Template|[[Category:Stub message boxes|{{PAGENAME}}]]<!--
 
*** Maintenance categories ***
 
-->{{#if:{{{image|}}}
|<!-- uses image= , no maintenance category required -->|{{#if:{{{icon|}}}
|[[Category:Stub message boxes using icon parameter]]
|[[Category:Stub message boxes without images]]}}
}}{{#if:{{{imagealt|}}}
|[[Category:Stub message boxes using imagealt parameter]]
}}{{#if:{{{category|}}}|<!-- has category= -->
|[[Category:Stub message boxes without category parameter]]
}}{{#if:{{{name|}}}|<!-- has name=, make sure it matches -->{{#ifeq: {{{name}}} | {{FULLPAGENAME}} |<!-- name matches -->
|[[Category:Stub message boxes with erroneous name parameter]]}}
|[[Category:Stub message boxes without name parameter]]
}}{{#ifexist:{{FULLPAGENAME}}/doc|[[Category:Stub message boxes with documentation subpages]]
}}<!--
 
-->}}}}</includeonly><noinclude><!--
 
*** Documentation ***
 
-->{{documentation}}
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>