Difference between revisions of "Template:Sidebar/doc"

From EVE University Wiki
Jump to: navigation, search
m (Update dependencies.)
m (Put used by in columns to reduce real-estate height. Add link.)
Line 1: Line 1:
 
; Description
 
; Description
: This template is a metatemplate for the creation of sidebar templates, i.e. boxes that are vertically-aligned [[:Category:Navigational templates|navigational template]]s.  
+
: This template is a [[:wikt:metatemplate|metatemplate]] for the creation of sidebar templates, i.e. boxes that are vertically-aligned [[:Category:Navigational templates|navigational template]]s.  
 
: This template is converted from the last non-lua version of Wikipedia [https://en.wikipedia.org/w/index.php?oldid=609911857 Sidebar]
 
: This template is converted from the last non-lua version of Wikipedia [https://en.wikipedia.org/w/index.php?oldid=609911857 Sidebar]
  
Line 7: Line 7:
 
:: {{T|Navbar}}
 
:: {{T|Navbar}}
 
:; Used by
 
:; Used by
 +
<div style="max-width: max-content; column-width: 18em; column-count: 3; column-gap: 1em;>
 
:: {{Tl|Corplinks}}
 
:: {{Tl|Corplinks}}
 
:: {{Tl|Exploration links}}
 
:: {{Tl|Exploration links}}
Line 23: Line 24:
 
:: {{Tl|Weapon Systems Links}}
 
:: {{Tl|Weapon Systems Links}}
 
:: {{Tl|Wormhole Links}}
 
:: {{Tl|Wormhole Links}}
 +
 
:: {{Tl|AmarrEpicArcNav}}
 
:: {{Tl|AmarrEpicArcNav}}
 
:: {{Tl|AngelEpicArcNav}}
 
:: {{Tl|AngelEpicArcNav}}
Line 29: Line 31:
 
:: {{Tl|GuristasEpicArcNav}}
 
:: {{Tl|GuristasEpicArcNav}}
 
:: {{Tl|MinmatarEpicArcNav}}
 
:: {{Tl|MinmatarEpicArcNav}}
 
+
</div>
 
; Syntax
 
; Syntax
 
:; For UnuWiki navigational sidebar <!-- This syntax has a number of parameters omitted. Use of these parameters is discouraged for the navigational sidebar. But they are left in in the template to avoid breaking it and to have them still available when wanted later.-->
 
:; For UnuWiki navigational sidebar <!-- This syntax has a number of parameters omitted. Use of these parameters is discouraged for the navigational sidebar. But they are left in in the template to avoid breaking it and to have them still available when wanted later.-->
Line 69: Line 71:
 
::; name : The name of the sidebar's page. <nowiki>{{subst:PAGENAME}}</nowiki> can be used. May be omitted if no navbar is used (<code>navbar</code> must be <code>off</code>).
 
::; name : The name of the sidebar's page. <nowiki>{{subst:PAGENAME}}</nowiki> can be used. May be omitted if no navbar is used (<code>navbar</code> must be <code>off</code>).
 
::; topimage : Image at the top of the sidebar. Use standard wiki mark-up i.e. <nowiki>[[File:filename.png|64px]]</nowiki>
 
::; topimage : Image at the top of the sidebar. Use standard wiki mark-up i.e. <nowiki>[[File:filename.png|64px]]</nowiki>
::; topcaption : Caption appear under <code>topimage</code>.
+
::; topcaption : Caption to appear under <code>topimage</code>.
 
::; pretitle : Pre-title of the sidebar. Appears above <code>title</code>
 
::; pretitle : Pre-title of the sidebar. Appears above <code>title</code>
 
::; title : Title of the sidebar
 
::; title : Title of the sidebar

Revision as of 13:46, 23 July 2023

Description
This template is a metatemplate for the creation of sidebar templates, i.e. boxes that are vertically-aligned navigational templates.
This template is converted from the last non-lua version of Wikipedia Sidebar
Dependencies
Uses
{{Navbar}}
Used by
{{Corplinks}}
{{Exploration links}}
{{Incursions links}}
{{Incursions sites}}
{{Industry Links}}
{{Legality}}
{{MissionLinks}}
{{Navigation Links}}
{{PlanetaryIndustryNav}}
{{ShipTypes}}
{{Skillplan Navbar}}
{{Skills Links}}
{{Structures}}
{{Triglavian links}}
{{Weapon Systems Links}}
{{Wormhole Links}}
{{AmarrEpicArcNav}}
{{AngelEpicArcNav}}
{{CaldariEpicArcNav}}
{{GallenteEpicArcNav}}
{{GuristasEpicArcNav}}
{{MinmatarEpicArcNav}}
Syntax
For UnuWiki navigational sidebar
The UniWiki navigational sidebar uses a subset of the available parameters and only the parameters used are documented.
{{Sidebar
| name = {{subst:PAGENAME}}

| topimage = 
| topcaption = 

| pretitle = 

| title = 

| image = 
| caption = 

| above = 

| heading1 = 
| content1 = 

| heading2 = 
| content2 = 

| heading3 = 
| content3 = 

<!-- More heading<x>, content<x> blocks as required up to a maximum of 35 -->

| below = 
| navbar = off

}}
Parameters
name
The name of the sidebar's page. {{subst:PAGENAME}} can be used. May be omitted if no navbar is used (navbar must be off).
topimage
Image at the top of the sidebar. Use standard wiki mark-up i.e. [[File:filename.png|64px]]
topcaption
Caption to appear under topimage.
pretitle
Pre-title of the sidebar. Appears above title
title
Title of the sidebar
image
Image below the title. Use standard wiki mark-up i.e. [[File:filename.png|64px]]
caption
Caption to appear under image.
above
Text to appear above the heading/content sections.
heading<x>
x is 1 till 35 - text in the heading of a section.
content<x>
x is 1 till 35 - Content of a section. One or more links separated by <br>.
below
Text to appear below the heading/content sections.
navbar
Controls the use of navbar. Use off to deactivate (If not deactivated name must be filled in).



Sample
{{Sidebar
| topimage = [[File:Agent.png]]

| title = Sidebar title

| heading1 = Heading 1
| content1 = 
link 1-1<br>
link 1-2<br>
link 1-3<br>

| heading2 = Heading 2
| content2 = 
link 2-1<br>
link 2-2<br>
link 2-3<br>

| navbar = off

}}
Note
This documentation does not include all possible parameters. Only the parameters for use in the UniWiki navigational sidebar are documented. Reason: lack of time, seeing no use for them now. And being plain lazy -- Evon R'al (talk) 11:39, 4 June 2023 (UTC)