This wiki is closed in favour of the new wiki. Information shown is likely to be very out of date. |
Difference between revisions of "Template:Faction navigation"
From Discovery Wiki
Jump to navigationJump to searchRogueCharlie (talk | contribs) |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude>[[RogueCharlie]]'s faction navigation template.<!--</noinclude> | <noinclude>[[RogueCharlie]]'s faction navigation template.<!--</noinclude> | ||
− | + | {| style="width: 100%; background: transparent;" | |
− | {| style="width: 100%;" | ||
| align="center" | | | align="center" | | ||
{| cellpadding="5" cellspacing="1" style="font-size: 85%; background: {{{border}}}; text-align: left; margin-top: 12px;" | {| cellpadding="5" cellspacing="1" style="font-size: 85%; background: {{{border}}}; text-align: left; margin-top: 12px;" | ||
− | + | {{#if: {{{image|}}}|<nowiki /> | |
− | {{#if: {{{image|}}} | + | {{!}}- style="background: #000000;" |
− | |||
{{!}} rowspan="4" {{!}} {{{image}}} | {{!}} rowspan="4" {{!}} {{{image}}} | ||
|{{!}}- style="background: #1F1F1F;"}} | |{{!}}- style="background: #1F1F1F;"}} | ||
! colspan="2" style="font-size: 150%; text-align: center; background: {{{bgcolor}}}; color: {{{hdcolor}}};" |{{#if: {{{header|}}}|{{#switch: {{{header}}}|SERVER = {{{faction}}} on Discovery GC 24/7 RP| #default = {{{header}}}}}|{{#if:{{{faction|}}}|{{{faction}}} Navbar|Navbar}}}} | ! colspan="2" style="font-size: 150%; text-align: center; background: {{{bgcolor}}}; color: {{{hdcolor}}};" |{{#if: {{{header|}}}|{{#switch: {{{header}}}|SERVER = {{{faction}}} on Discovery GC 24/7 RP| #default = {{{header}}}}}|{{#if:{{{faction|}}}|{{{faction}}} Navbar|Navbar}}}} | ||
− | |- style="background: #262626" | + | |- {{#if: {{{linkbg|}}} | style="background: {{{linkbg}}}; color:{{{linkcolor}}};" | style="background: #262626; color:{{{linkcolor}}};"}} |
− | ! style="background:# | + | ! {{#if: {{{labelbg|}}} | style="background:{{{labelbg}}}; color: {{{labelcolor}}}; font-weight: bold;" | style="background: #171717; color: {{{labelcolor}}}; font-weight: bold;"}} | Wiki |
|{{#if: {{{pages|}}}|{{{pages}}}|''no pages specified.''}} | |{{#if: {{{pages|}}}|{{{pages}}}|''no pages specified.''}} | ||
− | |- style="background: #262626" | + | |- {{#if: {{{linkbg|}}} | style="background: {{{linkbg}}}; color:{{{linkcolor}}};" | style="background: #262626; color:{{{linkcolor}}};"}} |
− | ! style="background:# | + | ! {{#if: {{{labelbg|}}} | style="background:{{{labelbg}}}; color: {{{labelcolor}}}; font-weight: bold;" | style="background: #171717; color: {{{labelcolor}}}; font-weight: bold;"}} | Forum |
|{{#if: {{{forum|}}}|{{{forum}}}|''no pages specified.''}} | |{{#if: {{{forum|}}}|{{{forum}}}|''no pages specified.''}} | ||
− | |- style="background: #262626" | + | |- {{#if: {{{linkbg|}}} | style="background: {{{linkbg}}}; color:{{{linkcolor}}};" | style="background: #262626; color:{{{linkcolor}}};"}} |
− | ! style="background:# | + | ! {{#if: {{{labelbg|}}} | style="background:{{{labelbg}}}; color: {{{labelcolor}}}; font-weight: bold;" | style="background: #171717; color: {{{labelcolor}}}; font-weight: bold;"}}|{{#if: {{{label|}}}|{{{label}}}|See also}} |
|{{#if: {{{mypages|}}}|{{{mypages}}}|''no pages specified.''}} | |{{#if: {{{mypages|}}}|{{{mypages}}}|''no pages specified.''}} | ||
|} | |} | ||
|} | |} | ||
− | + | {{#ifeq:{{NAMESPACE}}|Template|| | |
{{#if:{{{faction|}}}|[[Category: {{{faction}}}|{{PAGENAME}}]]}} | {{#if:{{{faction|}}}|[[Category: {{{faction}}}|{{PAGENAME}}]]}} | ||
{{#if:{{{affiliation|}}}|[[Category: {{{affiliation}}}|{{PAGENAME}}]]}} | {{#if:{{{affiliation|}}}|[[Category: {{{affiliation}}}|{{PAGENAME}}]]}} | ||
{{#if:{{{category|}}}|[[Category: {{{category}}}|{{PAGENAME}}]]}} | {{#if:{{{category|}}}|[[Category: {{{category}}}|{{PAGENAME}}]]}} | ||
+ | }} | ||
<noinclude>--> | <noinclude>--> | ||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
− | {{ | + | {{Faction navigation |
|category = | |category = | ||
|faction = | |faction = | ||
Line 37: | Line 36: | ||
|bgcolor = | |bgcolor = | ||
|hdcolor = | |hdcolor = | ||
+ | |labelbg = | ||
+ | |labelcolor = | ||
+ | |linkbg = | ||
+ | |linkcolor = | ||
|header = | |header = | ||
|label = | |label = | ||
Line 53: | Line 56: | ||
* '''label''' - specify the label for the third line of links. | * '''label''' - specify the label for the third line of links. | ||
** Leave blank and the default "See also" is displayed. | ** Leave blank and the default "See also" is displayed. | ||
+ | * '''labelbg''' - Background color of the label cells. | ||
+ | * '''labelcolor''' - Font color of the label cells. | ||
+ | * '''linkbg''' - Background color of the links. | ||
+ | * '''linkcolor''' - Font color for non-link text. | ||
* '''mypages''' - specify the links you wish displayed on the third line of links. | * '''mypages''' - specify the links you wish displayed on the third line of links. | ||
* '''border''' - specify the color of the borders. | * '''border''' - specify the color of the borders. | ||
Line 62: | Line 69: | ||
** Leave blank and the image box will not appear. | ** Leave blank and the image box will not appear. | ||
* '''header''' - options: | * '''header''' - options: | ||
− | ** '''SERVER''' - will display "<nowiki>{{{faction}}}</nowiki> on Discovery | + | ** '''SERVER''' - will display "<nowiki>{{{faction}}}</nowiki> on Discovery GC 24/7 RP" |
** '''Leave blank''' - will display "<nowiki>{{{faction}}}</nowiki> Navbar". If no faction is specified it will simply say "Navbar". | ** '''Leave blank''' - will display "<nowiki>{{{faction}}}</nowiki> Navbar". If no faction is specified it will simply say "Navbar". | ||
** Write your own text to be displayed in the header. | ** Write your own text to be displayed in the header. | ||
== Result == | == Result == | ||
− | <pre>{{ | + | <pre>{{Faction navigation |
|category = RogueCharlie | |category = RogueCharlie | ||
|faction = Outcast Militia | |faction = Outcast Militia | ||
Line 81: | Line 88: | ||
|mypages = [[Antonio Lopez]] - [[Kraken|[OCM]Kraken~FA]] - [[Cassandra Ruiz]] - [[OCM Vesuvius|[OCM]Vesuvius]] - [[Alcara|[OCM]Alcara]] | |mypages = [[Antonio Lopez]] - [[Kraken|[OCM]Kraken~FA]] - [[Cassandra Ruiz]] - [[OCM Vesuvius|[OCM]Vesuvius]] - [[Alcara|[OCM]Alcara]] | ||
}}</pre> | }}</pre> | ||
− | {{ | + | {{Faction navigation |
|category = RogueCharlie | |category = RogueCharlie | ||
|faction = Outcast Militia | |faction = Outcast Militia | ||
Line 95: | Line 102: | ||
|mypages = [[Antonio Lopez]] - [[Kraken|[OCM]Kraken~FA]] - [[Cassandra Ruiz]] - [[OCM Vesuvius|[OCM]Vesuvius]] - [[Alcara|[OCM]Alcara]] | |mypages = [[Antonio Lopez]] - [[Kraken|[OCM]Kraken~FA]] - [[Cassandra Ruiz]] - [[OCM Vesuvius|[OCM]Vesuvius]] - [[Alcara|[OCM]Alcara]] | ||
}} | }} | ||
− | <pre>{{ | + | <pre>{{Faction navigation |
|category = | |category = | ||
|faction = Junker Salvaging, Inc. | |faction = Junker Salvaging, Inc. | ||
Line 107: | Line 114: | ||
|mypages = [[User:Maarek2469|Overseer Kuseth Ramor]] - [[Martin Esteban|Elder Martin Esteban]] - [[User:Phil1951|Elder Paddy McDuf]] | |mypages = [[User:Maarek2469|Overseer Kuseth Ramor]] - [[Martin Esteban|Elder Martin Esteban]] - [[User:Phil1951|Elder Paddy McDuf]] | ||
}}</pre> | }}</pre> | ||
− | {{ | + | {{Faction navigation |
|category = | |category = | ||
|faction = Junker Salvaging, Inc. | |faction = Junker Salvaging, Inc. | ||
Line 119: | Line 126: | ||
|mypages = [[User:Maarek2469|Overseer Kuseth Ramor]] - [[Martin Esteban|Elder Martin Esteban]] - [[User:Phil1951|Elder Paddy McDuf]] | |mypages = [[User:Maarek2469|Overseer Kuseth Ramor]] - [[Martin Esteban|Elder Martin Esteban]] - [[User:Phil1951|Elder Paddy McDuf]] | ||
}} | }} | ||
− | <pre>{{ | + | <pre>{{Faction navigation}} |
(no variables are used.)</pre> | (no variables are used.)</pre> | ||
− | {{ | + | {{Faction navigation}} |
[[Category:Templates|{{PAGENAME}}]] | [[Category:Templates|{{PAGENAME}}]] | ||
[[Category: RogueCharlie|{{PAGENAME}}]] | [[Category: RogueCharlie|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> |
Latest revision as of 21:52, 5 February 2012
RogueCharlie's faction navigation template.
Usage
{{Faction navigation |category = |faction = |affiliation = |image = |border = |bgcolor = |hdcolor = |labelbg = |labelcolor = |linkbg = |linkcolor = |header = |label = |pages = |forum = |mypages = }}
Variables:
- faction - the name of your faction will become a category and be used in the header. (example: Outcast Militia)
- affiliation - The NPC group your faction belongs to will become a category. (example: Outcasts)
- category - sets your custom category for your pages that use this template.
- pages - specify the faction wiki pages on this line.
- forum - specify the faction forum threads on this line.
- label - specify the label for the third line of links.
- Leave blank and the default "See also" is displayed.
- labelbg - Background color of the label cells.
- labelcolor - Font color of the label cells.
- linkbg - Background color of the links.
- linkcolor - Font color for non-link text.
- mypages - specify the links you wish displayed on the third line of links.
- border - specify the color of the borders.
- bgcolor - specify the background color for the header.
- hdcolor - specify the font color of the header.
- leave blank for forum default color.
- image - specify the image using full link code.
- Since you enter the full link code you can specify the size and other attributes for the image.
- Leave blank and the image box will not appear.
- header - options:
- SERVER - will display "{{{faction}}} on Discovery GC 24/7 RP"
- Leave blank - will display "{{{faction}}} Navbar". If no faction is specified it will simply say "Navbar".
- Write your own text to be displayed in the header.
Result
{{Faction navigation |category = RogueCharlie |faction = Outcast Militia |affiliation = Outcasts |image = [[image:Ocm siggy.jpg|center|link=Outcast Militia]] |border = #EF9E00 |bgcolor = #EF9E00 |hdcolor = #000000 |header = SERVER |label = My OCM Pages |pages = [[Outcast Militia|Main Page]] - [[OCM Roster|Members]] - [[OCM Ships|Ships]] - [[OCM Treaties|Treaties]] - [[OCM Outcast Laws|Laws]] - [[Criminals to the House of Malta|Criminals]] - [[Outcast Trade Routes|Trade Routes]] - [[Armory Inventories|Inventory]] - [[OCM Contributions|Contributions]] |forum = [http://www.discovery-usa.com/phpBB3/viewtopic.php?f=23&t=7824 Official Faction Feedback] - [http://www.discovery-usa.com/phpBB3/viewtopic.php?f=11&t=6024 Message Dump] - [http://www.discovery-usa.com/phpBB3/viewtopic.php?f=22&t=6009 Recruitment] - [http://www.discovery-usa.com/phpBB3/viewtopic.php?f=25&t=6214 Inventory] |mypages = [[Antonio Lopez]] - [[Kraken|[OCM]Kraken~FA]] - [[Cassandra Ruiz]] - [[OCM Vesuvius|[OCM]Vesuvius]] - [[Alcara|[OCM]Alcara]] }}
|
{{Faction navigation |category = |faction = Junker Salvaging, Inc. |affiliation = Junkers |image = [[image:JSI.png|center|100px]] |border = #888A85 |bgcolor = #1F1F1F |label = People |pages = [[Junker Salvaging, Inc.]] - [[JSI Resources]] - [[JSI Roster]] - [[Junker Trade Routes]] |forum = [http://www.discovery-usa.com/phpBB3/viewtopic.php?f=48&t=1949 Faction Information] - [http://www.discovery-usa.com/phpBB3/viewtopic.php?f=22&t=1985 Faction Recruitment] - [http://www.discovery-usa.com/phpBB3/viewtopic.php?f=11&t=2880 Faction Communications] |mypages = [[User:Maarek2469|Overseer Kuseth Ramor]] - [[Martin Esteban|Elder Martin Esteban]] - [[User:Phil1951|Elder Paddy McDuf]] }}
|
{{Faction navigation}} (no variables are used.)
|