| 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) (→Usage) |
RogueCharlie (talk | contribs) |
||
| 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.''}} | ||
|} | |} | ||
| Line 37: | Line 35: | ||
|bgcolor = | |bgcolor = | ||
|hdcolor = | |hdcolor = | ||
| + | |labelbg = | ||
| + | |labelcolor = | ||
| + | |linkbg = | ||
| + | |linkcolor = | ||
|header = | |header = | ||
|label = | |label = | ||
| Line 53: | Line 55: | ||
* '''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. | ||
Revision as of 06:11, 20 July 2011
RogueCharlie's faction navigation template.
Usage
{{Factionnav
|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
{{Factionnav
|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]]
}}
| |||||||||
{{Factionnav
|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]]
}}
| |||||||||
{{Factionnav}}
(no variables are used.)
| ||||||||