Template:Flagged: Difference between revisions

From TenthFleet
Jump to navigation Jump to search
m Map First Fleet to HomeFleet.png (First Fleet = Home Fleet)
m Add First Space Lord / 1SL flag (1SL_Main_Flag.png)
 
Line 1: Line 1:
<includeonly>{{#if:{{{2|}}}|[[File:{{{2}}}|25px|link={{{1}}}]]&nbsp;[[{{{1}}}]]|{{#switch:{{{1}}}
<includeonly>{{#if:{{{2|}}}|[[File:{{{2}}}|25px|link={{{1}}}]]&nbsp;[[{{{1}}}]]|{{#switch:{{{1}}}
|First Space Lord=[[File:1SL_Main_Flag.png|25px|link=First Space Lord]]&nbsp;
|1SL=[[File:1SL_Main_Flag.png|25px|link=1SL]]&nbsp;
|Second Fleet=[[File:SecondFleet.png|25px|link=Second Fleet]]&nbsp;
|Second Fleet=[[File:SecondFleet.png|25px|link=Second Fleet]]&nbsp;
|Third Fleet=[[File:ThirdFleet.png|25px|link=Third Fleet]]&nbsp;
|Third Fleet=[[File:ThirdFleet.png|25px|link=Third Fleet]]&nbsp;
Line 22: Line 24:
'''Parameter 2''' (optional): a flag image filename to use instead of the lookup — for authorities that have a flag but aren't in the map yet.
'''Parameter 2''' (optional): a flag image filename to use instead of the lookup — for authorities that have a flag but aren't in the map yet.


Because this wiki has no string functions, the flag filename can't be derived from the name automatically; mapped commands live in a <code><nowiki>{{#switch:}}</nowiki></code> inside the template. '''To add a flag''', add a line <code><nowiki>|Name=[[File:NameNoSpaces.png|25px|link=Name]]&nbsp;</nowiki></code>. Currently mapped: First (= Home), Second, Third, Sixth, Eighth, Tenth &amp; Home Fleet, Victoria Station, and the Royal Manticoran Navy.
Because this wiki has no string functions, the flag filename can't be derived from the name automatically; mapped commands live in a <code><nowiki>{{#switch:}}</nowiki></code> inside the template. '''To add a flag''', add a line <code><nowiki>|Name=[[File:NameNoSpaces.png|25px|link=Name]]&nbsp;</nowiki></code>. Currently mapped: the [[First Space Lord]] (and 1SL), First (= Home), Second, Third, Sixth, Eighth, Tenth &amp; Home Fleet, Victoria Station, and the Royal Manticoran Navy.


[[Category:Formatting]]
[[Category:Formatting]]
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 21:53, 14 July 2026

⚠ UnofficialThe Tenth Fleet wiki is an unofficial repository of TRMN orders and records. Per TRMN policy, the official sources are the TRMN Forums (all orders and information) and Mantipedia (the official wiki).

Flagged renders an authority's flag/crest at 25 px in front of a wikilink to that authority — handy for the reportsto and fleet fields of infoboxes.

Usage

  • {{Flagged|Tenth Fleet}} →  Tenth Fleet
  • {{Flagged|First Fleet}} (First Fleet = Home Fleet) →  First Fleet
  • {{Flagged|Task Group 92.1|TenthFleet.png}} (explicit flag override) →  Task Group 92.1

Parameter 1 (required): the authority's page name (also the link target). If it is one of the mapped commands below, its flag is shown automatically.

Parameter 2 (optional): a flag image filename to use instead of the lookup — for authorities that have a flag but aren't in the map yet.

Because this wiki has no string functions, the flag filename can't be derived from the name automatically; mapped commands live in a {{#switch:}} inside the template. To add a flag, add a line |Name=[[File:NameNoSpaces.png|25px|link=Name]] . Currently mapped: the First Space Lord (and 1SL), First (= Home), Second, Third, Sixth, Eighth, Tenth & Home Fleet, Victoria Station, and the Royal Manticoran Navy.