Difference between revisions of "Template:CMBSiteInfo/doc"

From EVE University Wiki
Jump to: navigation, search
m (Added cleanup flag)
m (Rewrite doc.)
Line 1: Line 1:
{{cleanup|Update infobox code to use [[Template:Infobox]]. [[User:Arin Mara|Arin Mara]] ([[User talk:Arin Mara|talk]]) 18:16, 11 May 2022 (UTC)}}
+
; Description
;Description
+
: This template produces an infobox at the right side of the page containing basic information about a particular combat site.
:This template can be used to output a small table containing information about a particular combat site.
+
: This template also includes {{T|NPCTableCSS}}.
:This template also includes {{t|NPCTableCSS}}.
 
  
;Syntax
+
; Dependencies
 +
:; Uses
 +
:: {{T|Infobox}}
 +
:: {{T|Damagetype}}
 +
 
 +
; Syntax
 
<pre>{{CMBSiteInfo
 
<pre>{{CMBSiteInfo
|name=<Site name>
+
| name=  
|type=<Site type>
+
| type=  
|rating=<Site rating>
+
| rating=  
|location=<Site location>
+
| location=  
|ship limit=<Maximum allowed ship size>
+
| ship limit=  
|faction=<Opoposing faction in site>
+
| faction=  
|damage=<Best damage to deal (optional)>
+
| damage=  
|resist=<Damage to resist (optional)>
+
| resist=  
|signature strength=<Signature strength>
+
| signature strength=  
 
}}</pre>
 
}}</pre>
: Valid site types: ded, anomaly, unrated, expedition, chemical and COSMOS.
+
: Unused parameters will not be shown in the infobox.
: Valid factions: Angel, Guristas, Sansha, Blood Raider, Mordu, Amarr, Minmatar, Caldari, Khanid, Mercenaries, Rogue Drones, Triglavians. Full names are also supported.
+
:; name : Name of the site.
: If the optional parameters "damage" or "resist" are not given then they will be retrieved from the faction information.
+
:; type : Site type. One of anomaly, chemical, COSMOS, DED, expedition or unrated. This parameter produces a link to the relative article. The parameter is not case-sensitive.
;Sample output
+
:; rating : The site rating. e.g. 5/10
 +
:; location : Where the site is found e.g. Highsec or a specific system or constellation etc.
 +
:; Ship limit : Maximum allowed ship size.
 +
:; faction : The opposing faction in the site. Either one of the well-known factions in the table or free form. The well-known factions produce a link to the relative wiki article. The well-known factions are not case-sensitive.
 +
{| class="wikitable"style="margin-left: 5em;"
 +
|+ Well-known factions
 +
|- style="background: #444444;"
 +
! Full name !! Valid alternative(s)
 +
|-
 +
| Angel Cartel || Angel, Angels
 +
|-
 +
| Amarr Empire || Amarr
 +
|-
 +
| Ammatar
 +
|-
 +
| Blood Raider Covenant || Blood Raider, Blood Raiders
 +
|-
 +
| Caldari State || Caldari
 +
|-
 +
| EDENCOM
 +
|-
 +
| Gallente Federation || Gallente
 +
|-
 +
| Guristas pirates || Guristas
 +
|-
 +
| Khanid Kingdom || Khanid
 +
|-
 +
| Mercenaries || Mercenary
 +
|-
 +
| Minmatar Republic ||Minmatar
 +
|-
 +
| Mordu's Legion || Mordu, Mordu's
 +
|-
 +
| Rogue Drones
 +
|-
 +
| Sansha's Nation || Sansha, Sansha's
 +
|-
 +
| Serpentis
 +
|-
 +
| triglavians ||
 +
|}
 +
:; damage : Best damage to deal (optional)
 +
:; resist : Damage to resist (optional)
 +
::: For "damage" and "resist" use {{T|Damagetype}}. When one of the well-known factions is used and nothing is entered the factions default values will be used.
 +
:; signature strength : Signature strength
 +
 
 +
; Sample
 +
{{CMBSiteInfo
 +
| name= Serpentis Lookout
 +
| type= unrated
 +
| rating=
 +
| location= High
 +
| ship limit= Battlecruiser
 +
| faction= Serpentis
 +
| damage=
 +
| resist=
 +
| signature strength= 10% in High Sec
 +
}}
 
<pre>{{CMBSiteInfo
 
<pre>{{CMBSiteInfo
|name = Serpentis Lookout
+
| name= Serpentis Lookout
|type = unrated
+
| type= unrated
|rating = Unrated
+
| rating=  
|location = High
+
| location= High
|ship limit= Battlecruiser
+
| ship limit= Battlecruiser
|faction= Serpentis
+
| faction= Serpentis
|signature strength =10% in High Sec  
+
| damage=
 +
| resist=
 +
| signature strength= 10% in High Sec  
 
}}</pre>
 
}}</pre>
::gives:
+
::gives...
{{CMBSiteInfo
 
|name = Serpentis Lookout
 
|type = unrated
 
|rating = Unrated
 
|location = High
 
|ship limit= Battlecruiser
 
|faction= Serpentis
 
|signature strength =10% in High Sec
 
}}
 
 
 
  
<includeonly>[[Category:Infobox templates|{{PAGENAME}}]]<!-- Any categories for the template itself --></includeonly>
+
<includeonly>[[Category:Infobox templates]]<!-- Any categories for the template itself --></includeonly>
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
+
<noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 08:25, 28 May 2022

Description
This template produces an infobox at the right side of the page containing basic information about a particular combat site.
This template also includes {{NPCTableCSS}}.
Dependencies
Uses
{{Infobox}}
{{Damagetype}}
Syntax
{{CMBSiteInfo
| name= 
| type= 
| rating= 
| location= 
| ship limit= 
| faction= 
| damage= 
| resist= 
| signature strength= 
}}
Unused parameters will not be shown in the infobox.
name
Name of the site.
type
Site type. One of anomaly, chemical, COSMOS, DED, expedition or unrated. This parameter produces a link to the relative article. The parameter is not case-sensitive.
rating
The site rating. e.g. 5/10
location
Where the site is found e.g. Highsec or a specific system or constellation etc.
Ship limit
Maximum allowed ship size.
faction
The opposing faction in the site. Either one of the well-known factions in the table or free form. The well-known factions produce a link to the relative wiki article. The well-known factions are not case-sensitive.
Well-known factions
Full name Valid alternative(s)
Angel Cartel Angel, Angels
Amarr Empire Amarr
Ammatar
Blood Raider Covenant Blood Raider, Blood Raiders
Caldari State Caldari
EDENCOM
Gallente Federation Gallente
Guristas pirates Guristas
Khanid Kingdom Khanid
Mercenaries Mercenary
Minmatar Republic Minmatar
Mordu's Legion Mordu, Mordu's
Rogue Drones
Sansha's Nation Sansha, Sansha's
Serpentis
triglavians
damage
Best damage to deal (optional)
resist
Damage to resist (optional)
For "damage" and "resist" use {{Damagetype}}. When one of the well-known factions is used and nothing is entered the factions default values will be used.
signature strength
Signature strength
Sample
Site Details
Serpentis Lookout
Type Unrated Complex
Found in High
Max ship size Battlecruiser
Faction Serpentis
Best damage to deal Kinetic damage KinThermal damage Th
Damage to resist Thermal damage ThKinetic damage Kin
Sig. strength 10% in High Sec
{{CMBSiteInfo
| name= Serpentis Lookout
| type= unrated
| rating= 
| location= High
| ship limit= Battlecruiser
| faction= Serpentis
| damage= 
| resist= 
| signature strength= 10% in High Sec 
}}
gives...