Difference between revisions of "Template:Asbox"
From Self-sufficiency
(rmv redundant logic) |
(moving maintenance categories to /templatepage, pass icon and imagealt as well) |
||
Line 48: | Line 48: | ||
-->{{#ifeq:{{NAMESPACE}}|Template|[[Category:Exclude in print]]|}}<!-- | -->{{#ifeq:{{NAMESPACE}}|Template|[[Category:Exclude in print]]|}}<!-- | ||
+ | *** check for valid name parameter and transclude /templatepage on template page *** | ||
− | + | -->{{#switch:{{FULLPAGENAME:{{{name|}}}}} | |
− | + | |{{FULLPAGENAME}}={{Asbox/templatepage | |
− | + | |image = {{{image|}}} | |
− | + | |pix = {{{pix|}}} | |
− | -->{{# | + | |imagealt = {{{imagealt|}}} |
− | + | |icon = {{{icon|}}} | |
− | |image = {{{image| | + | |subject = {{{subject|}}} |
− | |pix = {{{pix| | + | |qualifier = {{{qualifier|}}} |
− | |subject = {{{subject| | + | |category = {{{category|}}} |
− | |qualifier = {{{qualifier| | + | |tempsort = {{{tempsort|}}} |
− | |category = {{{category| | + | |category1 = {{{category1|}}} |
− | |tempsort = {{{tempsort| | + | |tempsort1 = {{{tempsort1|}}} |
− | |category1 = {{{category1| | + | |category2 = {{{category2|}}} |
− | |tempsort1 = {{{tempsort1| | + | |tempsort2 = {{{tempsort2|}}} |
− | |category2 = {{{category2| | + | |note = {{{note|}}} |
− | |tempsort2 = {{{tempsort2| | + | |name = {{{name|}}} |
− | |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}}}} | ||
+ | }}-->[[Category:Stub message boxes needing attention|{{#if:{{{name|}}}|E|W}}{{PAGENAME}}]] | ||
}} | }} | ||
}}<!-- | }}<!-- | ||
− | --> | + | --></includeonly><noinclude><!-- |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
*** Documentation *** | *** Documentation *** |
Revision as of 16:31, 25 August 2009
This article is a stub. You can help Wikipedia by expanding it. |
[edit]
Documentation