Template:Emblem: Difference between revisions

Jump to navigation Jump to search
some documentation
(major factions; tweaking with size)
(some documentation)
Line 1: Line 1:
<includeonly>[[File:{{#switch: {{lc: {{{1|}}}}}
<includeonly>[[File:{{#switch: {{lc: {{{1|}}}}}


<!-- CARDASSIANS -->
| cardassian union = {{#switch: {{lc: {{{variant|}}}}}
| cardassian union = {{#switch: {{lc: {{{variant|}}}}}
| grey | gray = Cardassian Union-Gray.png
| grey | gray = Cardassian Union-Gray.png
| #default = Cardassian Union.png}}
| #default = Cardassian Union.png}}


<!-- FEDERATION -->
|federation | united federation of planets | UFP = {{#switch: {{lc: {{{variant|}}}}}
|federation | united federation of planets | UFP = {{#switch: {{lc: {{{variant|}}}}}
| grey | gray = UFP-Gray.png
| grey | gray = UFP-Gray.png
| #default = UFP.png}}
| #default = UFP.png}}


<!-- KATHESIS PACT -->
| kathesis pact = {{#switch: {{lc: {{{variant|}}}}}
| kathesis pact = {{#switch: {{lc: {{{variant|}}}}}
| grey | gray = Kathesis Pact-Gray.png
| grey | gray = Kathesis Pact-Gray.png
| #default = Kathesis Pact.png}}
| #default = Kathesis Pact.png}}


<!-- KLINGON EMPIRE -->
| klingon empire = {{#switch: {{lc: {{{variant|}}}}}
| klingon empire = {{#switch: {{lc: {{{variant|}}}}}
| grey | gray = Klingon Empire-Gray.png
| grey | gray = Klingon Empire-Gray.png
| #default = Klingon Empire.png}}
| #default = Klingon Empire.png}}


<!-- ROMULAN REPUBLIC -->
|romulan republic = {{#switch: {{lc: {{{variant|}}}}}
|romulan republic = {{#switch: {{lc: {{{variant|}}}}}
| grey | gray = Romulan Republic-Gray.png
| grey | gray = Romulan Republic-Gray.png
| #default = Romulan Republic.png}}
| #default = Romulan Republic.png}}


<!-- ROMULAN STAR EMPIRE -->
|romulan star empire = {{#switch: {{lc: {{{variant|}}}}}
|romulan star empire = {{#switch: {{lc: {{{variant|}}}}}
| grey | gray = Romulan Star Empire-Gray.png
| grey | gray = Romulan Star Empire-Gray.png
| #default = Romulan Star Empire.png}}
| #default = Romulan Star Empire.png}}


<!-- THOLIAN ASSEMBLY -->
|tholian assembly = {{#switch: {{lc: {{{variant|}}}}}
|tholian assembly = {{#switch: {{lc: {{{variant|}}}}}
| grey | gray = Tholian Assembly-Gray.png
| grey | gray = Tholian Assembly-Gray.png
| #default = Tholian Assembly.png}}
| #default = Tholian Assembly.png}}


<!-- DEFAULT EMBLEM -->
| #default = Nologo.png
| #default = Nologo.png
}} |{{{size|20x20px}}} | {{{1|}}} {{#if: {{{link|}}} | {{!}} link= {{{link}}}}}]]{{#ifeq: {{{text|}}} | no ||&nbsp;<span style="font-size:{{{font size|95%}}};{{{tstyle|}}}">{{#ifeq: {{lc: {{{link|}}}}} | no | {{{text|{{{1|}}}}}} | [[{{{link|{{{1|}}}}}}|{{{text|{{{link|{{{1|}}}}}}}}}]]}}</span>}}</includeonly><!--
}}<!--


--><noinclude>{{UnderConstruction|Jovenan}}
EMBLEM OPTIONS
--> |{{{size|20x20px}}} | {{{1|}}} {{#if: {{{link|}}} | {{!}} link= {{{link}}}}}]]<!--


Faction/country emblem picker + name. For ship logo picker, see [[Template:Logo]].
TEXT OPTIONS
-->{{#ifeq: {{{text|}}} | no ||&nbsp;<span style="font-size:{{{font size|95%}}};{{{tstyle|}}}">{{#ifeq: {{lc: {{{link|}}}}} | no | {{{text|{{{1|}}}}}} | [[{{{link|{{{1|}}}}}}|{{{text|{{{link|{{{1|}}}}}}}}}]]}}</span>}}</includeonly><!--
 
--><noinclude>{{Documentation|Content={{UnderConstruction|Jovenan}}
 
Displays a small emblem (such as a seal, arms or flag) for a [[Factions|faction]], planetary government or similar entity. For ship logo picker, see [[Template:Logo]].
 
== Usage ==
Simple usage:
<pre>{{Emblem | }}</pre>
 
More complex usage:
<pre>{{Emblem | | variant = | link = }}</pre>
 
Full usage:
<pre>{{Emblem | | variant = | link = | text = | size = | font size = | tstyle = }}</pre>
 
'''Unnamed parameter''' determines the emblem of which entity is shown. If the entity is not on the list or is spelled differently, a placeholder is displayed. Unless ''text'' or ''link'' parameters are used, the name of the entity is displayed as spelled in the unnamed parameter. Note: Different capitalizations are accepted by the emblem picker, but not by the links! If you see the correct emblem but a red link, check your capitalization or use ''text'' or ''link'' parameters. The only mandatory parameter.
 
'''variant''' determines which variant of is used for the emblem if multiple exist. Some entities may have, for example, a grey variant, historical variants or flags. Unless determined, a default emblem is displayed.
 
'''link''' changes the link of the emblem and the text following it. If “no” entered, disables links. If ''text'' parameter is not given and ''link'' is, the value of the ''link'' parameter is displayed as text.
 
'''size''' determines the size of the emblem. Use standard wiki image size options. Defaults to 20x20px.
 
'''font size''' determines the size of the text after the emblem. Use standard wiki font size options. Defaults to 95%.
 
'''tstyle''' allows further text formatting options. Use CSS.
 
== Examples ==


{{Emblem|Federation}} <br>
{{Emblem|Federation}} <br>
Line 43: Line 81:
{{Emblem|Tholian Assembly}} <br>
{{Emblem|Tholian Assembly}} <br>
{{Emblem|Kathesis Pact}}
{{Emblem|Kathesis Pact}}
 
}}</noinclude>
</noinclude>
1,769

edits

Navigation menu