Difference between revisions of "Template:Squadron"
Template page
m (Automatic linking for taskforce, taskgroup and headquarters. Set taskforce up for category linking as well. Didn't do flagship just in of none USS flagships and didn't want to touch that can of worms just yet.) |
m |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Squadrons]]{{#if: {{{taskforce|}}}|[[Category:{{{taskforce}}}]]|<!-- do nothing -->}}{{DEFAULTSORT:{{{name}}}}} | <infobox theme="bravopadded"> | ||
<image source="seal"/> | |||
<title source="name"> | |||
<default>{{PAGENAME}}</default><format>'''{{{name|}}}'''</format> | |||
</title> | |||
<data source="unit"><label>Unit</label><format>[[{{{unit|}}}]]</format></data> | |||
<data source="taskforce"><label>Task Force</label><format>[[{{{taskforce|}}}]]</format></data> | |||
<data source="taskgroup"><label>Task Group</label><format>[[{{{taskforce|}}}#{{{taskgroup|}}}|{{{taskgroup|}}}]]</format></data> | |||
<data source="flagship"><label>Flagship</label></data> | |||
<header>{{#if:{{{co|}}}{{{xo|}}}|Leadership}}</header> | |||
<data source="co"><label>Commanding Officer</label></data> | |||
<data source="xo"><label>Executive Officer</label></data> | |||
<header>{{#if:{{{headquarters|}}}{{{mission|}}}|Assignment}}</header> | |||
<data source="headquarters"><label>Headquarters</label><format>[[{{{headquarters|}}}]]</format></data> | |||
<data source="mission"><label>Mission</label></data> | |||
<header name="footer">[[Template:Squadron]]</header> | |||
</infobox> | |||
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Squadrons]]{{#if: {{{taskforce|}}}|[[Category:{{{taskforce}}}]]|<!-- do nothing -->}}{{#if: {{{unit|}}}|[[Category:{{{unit}}}]]|<!-- do nothing -->}}{{DEFAULTSORT:{{{name}}}}} | |||
}} | }} | ||
</includeonly><noinclude> | </includeonly> | ||
<noinclude> | |||
==Squadron== | ==Squadron== | ||
This infobox exists for the purpse of providing and uniform method for displaying squadron information. The code snippet below should be copied in its entirety and set at the top of a new article. For rows with no values, simply leave the line blank and it will not render in the final infobox. | |||
==Notes== | |||
*Name - Just enter the squadron's name here. No need for formattig. | |||
*CO - This should be linked for your BFMS character page. | |||
*XO - This should be linked for your BFMS character page. | |||
*Unit - This is only to be used by RPGs and ships belonging to BFSS members. Leave this blank. | |||
==Code== | |||
<pre> | <pre> | ||
{{Squadron | {{Squadron | ||
Line 69: | Line 36: | ||
| seal = | | seal = | ||
| unit = | | unit = | ||
| taskforce = | | taskforce = | ||
| taskgroup = | | taskgroup = | ||
| flagship = | | flagship = | ||
| co = | | co = | ||
| xo = | | xo = | ||
| | | headquarters = | ||
| mission = | | mission = | ||
}}</pre> | }} | ||
</pre> | |||
==Example== | ==Example== | ||
{{Squadron | {{Squadron | ||
| name = Arcturus Squadron | | name = Arcturus Squadron | ||
| seal = [[File:ArcturusSeal.png]] | | seal = [[File:ArcturusSeal.png|200px]] | ||
| unit = Fourth Fleet Operations | | unit = Fourth Fleet Operations | ||
| taskforce = Task Force 17 | | taskforce = Task Force 17 | ||
Line 90: | Line 57: | ||
| co = [[bfms_char:15254|VADM Elizabeth Hayden]] | | co = [[bfms_char:15254|VADM Elizabeth Hayden]] | ||
| xo = [[bfms_char:14961|CAPT Michael Lancaster]] | | xo = [[bfms_char:14961|CAPT Michael Lancaster]] | ||
| mission = Deep Space Exploration | | mission = Deep Space Exploration | ||
| templatemode = nocats | | templatemode = nocats | ||
}} | }} | ||
<pre> | <pre> | ||
{{Squadron | {{Squadron | ||
Line 106: | Line 71: | ||
| co = [[bfms_char:15254|VADM Elizabeth Hayden]] | | co = [[bfms_char:15254|VADM Elizabeth Hayden]] | ||
| xo = [[bfms_char:14961|CAPT Michael Lancaster]] | | xo = [[bfms_char:14961|CAPT Michael Lancaster]] | ||
| mission = Deep Space Exploration | | mission = Deep Space Exploration | ||
}} | }} | ||
</pre> | </pre> | ||
{{clear}} | {{clear}} | ||
[[Category:Infobox Templates]] | [[Category:Infobox Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 11:27, 23 August 2024
Squadron
This infobox exists for the purpse of providing and uniform method for displaying squadron information. The code snippet below should be copied in its entirety and set at the top of a new article. For rows with no values, simply leave the line blank and it will not render in the final infobox.
Notes
- Name - Just enter the squadron's name here. No need for formattig.
- CO - This should be linked for your BFMS character page.
- XO - This should be linked for your BFMS character page.
- Unit - This is only to be used by RPGs and ships belonging to BFSS members. Leave this blank.
Code
{{Squadron | name = | seal = | unit = | taskforce = | taskgroup = | flagship = | co = | xo = | headquarters = | mission = }}
Example
{{Squadron | name = Arcturus Squadron | seal = [[File:ArcturusSeal.png]] | unit = Fourth Fleet Operations | taskforce = Task Force 17 | taskgroup = Task Group 9 | headquarters = Deep Space 17 | flagship = [[USS Arcturus|USS ''Arcturus'']] | co = [[bfms_char:15254|VADM Elizabeth Hayden]] | xo = [[bfms_char:14961|CAPT Michael Lancaster]] | mission = Deep Space Exploration }}