Template:Asbox: Difference between revisions

From FamilySearch Wiki
No edit summary
No edit summary
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<table class="metadata plainlinks stub" style="background: transparent;"><tr>
<table class="metadata plainlinks stub" style="background: transparent; margin-bottom: 0px;"><tr>
<span class="fck_mw_template">{{#if:{{{icon|}}}{{{image|}}}fckLR |&lt;td style=&quot;vertical-align: middle;&quot;&gt;{{#if:{{{icon|}}}fckLR  |{{{icon}}}fckLR  |[[File:{{{image}}}|{{#if:{{{pix|}}}|{{{pix}}}|40x30}}px|alt={{{imagealt|Stub icon}}}]]fckLR }}&lt;/td&gt;fckLR}}</span>
{{#if:{{{icon|}}}{{{image|}}}
<td style="vertical-align: middle;"><i>This <span class="fck_mw_template">{{{subject|}}}</span> <span class="fck_mw_template">{{{article|article}}}</span> <span class="fck_mw_template">{{{qualifier|}}}</span> is a <a href="FamilySearch Wiki:Stub">stub</a>.  You can help FamilySearch Wiki by [{{fullurl:{{FULLPAGENAME}}|action=edit}} expanding it].</i><span class="fck_mw_template">{{#if:{{{name|}}}fckLR |{{navbar|{{{name}}}|mini=yes|style=position:absolute; right:15px; font-size:smaller; display:none;}}fckLR}}</span><span class="fck_mw_template">{{#if:{{{note|}}}fckLR |&lt;br /&gt;&lt;span style=&quot;font-style: normal; font-size: smaller;&quot;&gt;{{{note}}}fckLR}}</span></td>
|<td style="vertical-align: middle;">{{#if:{{{icon|}}}
</tr></table><span class="fck_mw_template">{{#ifeq:{{NAMESPACE}}|{{ns:0}}<!--Article space-->|<!--
  |{{{icon}}}
  |[[File:{{{image}}}|{{#if:{{{pix|}}}|{{{pix}}}|40x30}}px|alt={{{imagealt|Stub icon}}}]]
}}</td>
}}
<td style="vertical-align: middle;">''This {{{subject|}}} {{{article|article}}} {{{qualifier|}}} is a [[FamilySearch Wiki:stub|stub]].  You can help by [{{fullurl:{{FULLPAGENAME}}|action=edit}} expanding it].'' {{{inline note|}}}{{#if:{{{note|}}}
|<br /><span style="{{{notestyle|font-style: normal; font-size: smaller;}}}">{{{note}}}
}}</td>
</tr></table>{{#ifeq:{{NAMESPACE}}|{{ns:0}}<!--Article space-->|<!--


  *** Stub category ***
  *** Stub category ***
Line 12: Line 19:
  *** Optional third stub category ***
  *** Optional third stub category ***
-->{{#if:{{{category2|}}}|[[Category:{{{category2}}}]]}}<!--
-->{{#if:{{{category2|}}}|[[Category:{{{category2}}}]]}}<!--
-->}}</span><!--
-->}}<!--


*** check for valid name parameter and transclude /templatepage on template page ***
*** check for valid name parameter and transclude /templatepage on template page ***
--><span class="fck_mw_template">{{#if:{{{demo|<span class="fck_mw_noinclude" _fck_mw_customtag="true" _fck_mw_tagname="noinclude">yes</span>}}}fckLR  |<!--Demonstration version-->fckLR  |{{#switch:{{FULLPAGENAME:{{{name|}}}}}fckLR    |{{FULLPAGENAME}}=<!--Template page-->{{Asbox/templatepagefckLR      |image    = {{{image|}}}fckLR      |pix      = {{{pix|}}}fckLR      |imagealt  = {{{imagealt|}}}fckLR      |icon      = {{{icon|}}}fckLR      |subject  = {{{subject|}}}fckLR      |article  = {{{article|}}}fckLR      |qualifier = {{{qualifier|}}}fckLR      |category  = {{{category|}}}fckLR      |tempsort  = {{{tempsort|}}}fckLR      |category1 = {{{category1|}}}fckLR      |tempsort1 = {{{tempsort1|}}}fckLR      |category2 = {{{category2|}}}fckLR      |tempsort2 = {{{tempsort2|}}}fckLR      |note      = {{{note|}}}fckLR      |name      = {{{name|}}}fckLR    }}fckLR    |{{#titleparts:{{FULLPAGENAME}}|1}}=<!--Is a subtemplate, e.g. a sandbox version. Don't display documentation.-->fckLR    |#default={{#ifeq:{{NAMESPACE}}|TemplatefckLR      |<!--{{ombox
-->{{#if:{{{demo|<noinclude>yes</noinclude>}}}
  |<!--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|}}}
      |doc      = {{{doc|
==General information==
{{Stub documentation}}
}}}
    }}
    |{{#titleparts:{{FULLPAGENAME}}|1}}=<!--Is a subtemplate, e.g. a sandbox version. Don't display documentation.-->
    |#default={{#ifeq:{{NAMESPACE}}|Template
      |<!--{{ombox
         |type=content
         |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}}.
         |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}}]]fckLR    }}fckLR  }}fckLR}}</span><span class="fck_mw_noinclude" _fck_mw_customtag="true" _fck_mw_tagname="noinclude">fckLRfckLR{{documentation}}fckLR&lt;!-- Add categories and inter-wikis to the /doc subpage, not here! --&gt;fckLR</span>
       }}-->[[Category:Stub message boxes needing attention|{{#if:{{{name|}}}|E|W}}{{PAGENAME}}]]
    }}
  }}
}}<noinclude>
 
{{documentation}}[[Category:Article message boxes]]
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
</noinclude>

Latest revision as of 12:13, 2 July 2021

[create] Documentation icon Template documentation