Templat:Asbox/doc: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
doc |
k Robot: Perubahan kosmetika |
||
Baris 33:
}}</pre>
=== Parameters ===
==== <code>icon</code> or <code>image</code> ====
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 [[WP:Alternate text for images|alt text]] which is set to "Stub icon".
==== <code>pix</code> ====
The size of the image in pixels (no need to append px). Only ''required'' if <code>image</code> is used and this image requires a size different from the default maximum of 40x30 pixels. (Note that in the interests of standardising the formats of stub messages, images of size 40x30 are much preferred.)
==== <code>subject</code> and <code>qualifier</code> ====
This <code>subject</code> article <code>qualifier</code> is a stub...
Baris 49:
*This '''geography''' article '''about a place in Rohan''' is a stub...
*This '''elementary physics''' article is a stub...
*This
==== <code>category</code> ====
The stub category the articles should go in.
==== <code>tempsort</code> ====
If exists the stub template (and any other templates) will be put in its own category sorted as " " (space) followed by <code>tempsort</code>, otherwise it will be sorted with the value of " " (space) followed by the template name.
==== <code>category1</code> ====
An optional second stub category the articles should go in.
==== <code>tempsort1</code> ====
If exists the stub template (and any other templates) will be put in its own category sorted as " " (space) followed by <code>tempsort1</code>, otherwise it will be sorted with the value of " " (space) followed by the template name.
==== <code>category2</code> ====
An optional third stub category the articles should go in.
==== <code>tempsort2</code> ====
If exists the stub template (and any other templates) will be put in its own category sorted as " " (space) followed by <code>tempsort2</code>, otherwise it will be sorted with the value of " " (space) followed by the template name.
==== <code>note</code> ====
If exists the value will be added, as a "small" note, to the stub template.
==== <code>name</code> ====
The full page name of the template itself.
=== Examples ===
==== Using <code>image</code> ====
Based on {{tl|Østfold-geo-stub}}:
<pre><nowiki>
Baris 123:
=== Whatlinkshere ===
The page [{{fullurl:Special:WhatLinksHere/Template:Asbox|hideredirs=1&namespace=10&hidelinks=1}} here] should have a complete list of all templates using this template.
=== Navbar ===
This template contains:
<nowiki>{{navbar|{{{name}}}|mini=yes|style=position:absolute; right:15px; font-size:smaller; display:none;}}</nowiki>
allowing a user to specify with css that three links regarding the stub template are shown (see [{{fullurl:w:Template_talk:Asbox|oldid=313089738#Navbar}}]). A side effect is that a non-existing talk page of the stub template may show up on [[
=== See also ===
Baris 138:
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- PLEASE ADD CATEGORIES BELOW THIS LINE, THANKS. -->
[[
[[
<!-- PLEASE ADD INTERWIKIS BELOW THIS LINE, THANKS. -->
|