Difference between revisions of "Template:Asbox"
From Self-sufficiency
(streamlined image code, removed some duplicate parser functions, improved readability) |
m |
||
(25 intermediate revisions by 8 users not shown) | |||
Line 2: | Line 2: | ||
{{#if:{{{icon|}}}{{{image|}}} | {{#if:{{{icon|}}}{{{image|}}} | ||
|<td>{{#if:{{{icon|}}} | |<td>{{#if:{{{icon|}}} | ||
− | |{{{icon}}} | + | |{{{icon}}} |
− | |[[File:{{{image}}}|{{#if:{{{pix|}}} | + | |[[File:{{{image}}}|{{#if:{{{pix|}}}|{{{pix}}}|40x30}}px|alt={{{imagealt|Stub icon}}}]] |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
}}</td> | }}</td> | ||
− | |||
}} | }} | ||
− | <td>''This {{ | + | <td>''This {{{subject|}}} {{{article|article}}} {{{qualifier|}}} is a [[Wikipedia:stub|stub]]. You can help ssf by [{{fullurl:{{FULLPAGENAME}}|action=edit}} expanding it].''{{#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 | + | *** Stub category *** |
+ | -->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!-- | ||
− | + | *** Optional second stub category *** | |
− | + | -->{{#if:{{{category1|}}}|[[Category:{{{category1}}}]]}}<!-- | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | *** | + | |
− | + | ||
− | -->{{#if:{{{category1|}}} | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
+ | *** Optional third stub category *** | ||
+ | -->{{#if:{{{category2|}}}|[[Category:{{{category2}}}]]}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
− | + | *** check for valid name parameter and transclude /templatepage on template page *** | |
− | + | -->{{#if:{{{demo|<noinclude>yes</noinclude>}}} | |
− | -->{{#if:{{{ | + | |<!--Demonstration version--> |
− | + | |{{#switch:{{FULLPAGENAME:{{{name|}}}}} | |
− | + | |{{FULLPAGENAME}}=<!--Template page-->{{Asbox/templatepage | |
− | + | |image = {{{image|}}} | |
− | + | |pix = {{{pix|}}} | |
− | + | |imagealt = {{{imagealt|}}} | |
− | + | |icon = {{{icon|}}} | |
− | + | |subject = {{{subject|}}} | |
− | + | |article = {{{article|}}} | |
− | + | |qualifier = {{{qualifier|}}} | |
− | + | |category = {{{category|}}} | |
− | + | |tempsort = {{{tempsort|}}} | |
− | + | |category1 = {{{category1|}}} | |
− | + | |tempsort1 = {{{tempsort1|}}} | |
− | + | |category2 = {{{category2|}}} | |
− | + | |tempsort2 = {{{tempsort2|}}} | |
− | + | |note = {{{note|}}} | |
− | + | |name = {{{name|}}} | |
− | + | }} | |
− | + | |{{#titleparts:{{FULLPAGENAME}}|1}}=<!--Is a subtemplate, e.g. a sandbox version. Don't display documentation.--> | |
− | + | |#default={{#ifeq:{{NAMESPACE}}|Template | |
− | + | |<!--{{ombox | |
− | + | |type=content | |
− | + | |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}}. | |
− | }} | + | }}-->[[Category:Stub message boxes needing attention|{{#if:{{{name|}}}|E|W}}{{PAGENAME}}]] |
− | + | }} | |
− | + | }} | |
+ | }}<noinclude><!-- | ||
*** Documentation *** | *** Documentation *** | ||
− | + | -->{{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> |
Latest revision as of 12:12, 17 February 2013
This article is a stub. You can help ssf by expanding it. |
[edit]
Documentation