Editing Template:Asbox/doc
From Guild of Archivists
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
<includeonly>{{High-risk|1,900,000+}}</includeonly> | |||
{{lua|Module:Asbox}} | {{lua|Module:Asbox}} | ||
{{Mbox templates (small)}} | {{Mbox templates (small)}} | ||
Line 55: | Line 56: | ||
If the image is called with an icon template, <code>icon</code> is set to the full syntax of the template; that's the name of the template, plus any arguments (separated with '''|''' ), including the <code>{{</code> and <code>}}</code> around it. Icon can also be used to provide the full image markup (include the opening and closing square brackets), if special image settings such as "border" are to be used. If the image is called explicitly <code>image</code> is the name of the image :- <code>pix</code> will likely be required as well, the default value for <code>pix</code> is 40x30. | If the image is called with an icon template, <code>icon</code> is set to the full syntax of the template; that's the name of the template, plus any arguments (separated with '''|''' ), including the <code>{{</code> and <code>}}</code> around it. Icon can also be used to provide the full image markup (include the opening and closing square brackets), if special image settings such as "border" are to be used. If the image is called explicitly <code>image</code> is the name of the image :- <code>pix</code> will likely be required as well, the default value for <code>pix</code> is 40x30. | ||
<code>imagealt</code> may be used to override the default alt text which is set to "Stub icon". | <code>imagealt</code> may be used to override the default [[WP:Alternate text for images|alt text]] which is set to "Stub icon". | ||
===<code>pix</code>=== | ===<code>pix</code>=== | ||
Line 89: | Line 90: | ||
| name || The full page name of the template itself. | | name || The full page name of the template itself. | ||
|- | |- | ||
| demo || Has no effect in article space. Prevents category output. Set to anything to enable. (Even 'no' or 'false' will enable it!)<br>{{Red|New}} (Jan 2015): If demo is set, it will show pseudo-categories. If {{para|demo|art}} then the pseudo-cats shown will only be those visible in article space (i.e. no error/hidden cats). Set {{para|demo|doc}} to preview the documentation page as well (and all cats). | | demo || Has no effect in article space. Prevents category output. Set to anything to enable. (Even 'no' or 'false' will enable it!)<br>{{Red|New}} (Jan 2015): If demo is set, it will show pseudo-categories. If {{para|demo|art}} then the pseudo-cats shown will only be those visible in article space (i.e. no error/hidden cats). Set {{para|demo|doc}} to preview the documentation page as well (and all cats). See: [[Template:Asbox/testcases]] | ||
|} | |} | ||
==Examples== | |||
===Using <code>image</code>=== | |||
Based on {{tl|Østfold-geo-stub}}: | |||
{{demo|br=produces:|demo_kill_categories=yes | |||
|<nowiki>{{Asbox | |||
| image = Østfold_våpen.svg | |||
| pix = 30 | |||
| subject = [[Østfold]] location | |||
| name = Template:Østfold-geo-stub | |||
| category = Østfold geography stubs | |||
| tempsort = * | |||
}} | |||
</nowiki>}} | |||
===Using <code>icon</code> and <code>category1</code>=== | |||
Using <code>icon</code> allows more flexibility in some circumstances than <code>image</code> and <code>pix</code>, since it can be used with templates. Based on {{tl|Wales-footy-bio-stub}}: | |||
{{demo|br=produces:|demo_kill_categories=yes | |||
|<nowiki>{{Asbox | |||
| icon = {{soccer icon|Wales|50}} | |||
| subject = biographical | |||
| qualifier = related to Welsh association football | |||
| category = Welsh football biography stubs | |||
| tempsort = * | |||
| name = Template:Wales-footy-bio-stub | |||
}} | |||
</nowiki>}} | |||
==WhatLinksHere== | ==WhatLinksHere== | ||
Line 181: | Line 209: | ||
==See also== | ==See also== | ||
* [[Wikipedia talk:WikiProject Stub sorting/Archive11#Stub template standardisation]] | |||
{{Mbox templates see also}} | {{Mbox templates see also}} | ||