Difference between revisions of "Template:Directories box/doc"

From blackwiki
Jump to navigation Jump to search
imported>Buaidh
imported>Þjarkur
(+hatnote)
 
(17 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 +
{{Redirect|Template:Lists|bulleted and unbulleted lists|Template:HTML lists|tagging articles as needing to be converted into prose|Template:List}}
 
{{Documentation subpage}}
 
{{Documentation subpage}}
===Use===
 
 
This template creates a floating box linking to the directories of [[Wikipedia]] [[Wikipedia:WikiProject|WikiProjects]], [[Wikipedia:Portal|portals]], and [[Wikipedia:Regional notice boards|regional notice boards]].
 
This template creates a floating box linking to the directories of [[Wikipedia]] [[Wikipedia:WikiProject|WikiProjects]], [[Wikipedia:Portal|portals]], and [[Wikipedia:Regional notice boards|regional notice boards]].
  
The syntax for this template is:
+
===Use===
  '''<nowiki>{{lists|border-c=|border-w=|info-c|float=}}</nowiki>'''
+
The complete syntax for this template is:
 +
  '''<nowiki>{{Dbox|align=|talign=}}</nowiki>'''
 
where:
 
where:
*'''border-c=''' is an optional border color (see the [[list of colors]])
+
*'''<kbd>align=</kbd>''' an optional floating box alignment parameter.
**border-c=#999999 (default)
+
**<kbd>align=left</kbd>
*'''border-w=''' is an optional border width in pixels
+
**<kbd>align=right</kbd> (default)
**border-w=1 (default)
+
*'''<kbd>talign=</kbd>''' an optional text alignment parameter.
*'''info-c=''' is an optional background color
+
**<kbd>talign=left</kbd>
**info-c=#f7f7f7 (default)
+
**<kbd>talign=center</kbd> (default)
*'''align=''' is an optional linkbox alignment
+
**<kbd>talign=right</kbd>
**align=left
+
**<kbd>talign=justify</kbd>
**align=center
+
This template creates the floating linkbox shown below:
**align=right (default)
+
{{Dbox|align=left}}
{{lists}}
 
This template creates the floating linkbox shown at the right:
 
 
{{clear}}
 
{{clear}}
  
 
===Restriction===
 
===Restriction===
This template may only be placed on pages with a prefix such as '''Category:''', '''Template:''', '''Wikipedia:''', or '''User:'''.  This template should not be placed in the [[Wikipedia:Namespace|main article namespace]] <nowiki>{{NS:0}}</nowiki>.
+
This template should not be placed in the [[Wikipedia:Namespace|main article namespace]] <kbd><nowiki>{{NS:0}}</nowiki></kbd>.
  
 
===See also===
 
===See also===
*This template combines Template:WPlist, Template:Plist, and Template:NBlist.
+
*This template is compatible with [[Template:WPbox]], [[Template:WGbox]], [[Template:TFbox]], [[Template:Pbox]], and [[Template:NBbox]].
*[[Wikipedia:WikiProject Council]]
+
*This template is invoked by [[Template:Plinks]].
**[[Wikipedia:WikiProject Council/Directory]]
+
*For help with this userbox template, please post a comment on the [[Template_talk:{{ROOTPAGENAME}}|template talk page]].
*[[Wikipedia:Portal]]
+
<includeonly>{{Sandbox other||
**[[Portal:Contents/Portals]]
 
*[[Wikipedia:Regional notice boards]]
 
<includeonly>
 
 
[[Category:Internal link templates]]
 
[[Category:Internal link templates]]
</includeonly>
+
}}</includeonly>

Latest revision as of 17:16, 8 June 2020

This template creates a floating box linking to the directories of Wikipedia WikiProjects, portals, and regional notice boards.

Use

The complete syntax for this template is:

{{Dbox|align=|talign=}}

where:

  • align= an optional floating box alignment parameter.
    • align=left
    • align=right (default)
  • talign= an optional text alignment parameter.
    • talign=left
    • talign=center (default)
    • talign=right
    • talign=justify

This template creates the floating linkbox shown below:

Restriction

This template should not be placed in the main article namespace {{NS:0}}.

See also