Difference between revisions of "Template:Hubs"
Jump to navigation
Jump to search
Template documentation
Joelmartin (talk | contribs) m (Text replacement - "</translate>" to "") |
Joelmartin (talk | contribs) m (Text replacement - "<!--T:(.*)-->" to "") |
||
Line 5: | Line 5: | ||
<table style="margin:{{#ifeq: {{{1|none}}}|right|{{dir|{{pagelang}}|0 1em 0.5em 0|0 0 0.5em 1em}}|{{dir|{{pagelang}}|0 0 0.5em 0.5em|0 0.5em 0.5em 0}}}}; float:{{#ifeq: {{{1|none}}}|right|{{dir|{{pagelang}}|left|right}}|{{{1|none}}}}};{{#ifeq: {{{1|none}}}|center|margin:0 auto;}} background-color:#f8f9fa; border:1px solid #a2a9b1" cellpadding="5" cellspacing="0"><tr> | <table style="margin:{{#ifeq: {{{1|none}}}|right|{{dir|{{pagelang}}|0 1em 0.5em 0|0 0 0.5em 1em}}|{{dir|{{pagelang}}|0 0 0.5em 0.5em|0 0.5em 0.5em 0}}}}; float:{{#ifeq: {{{1|none}}}|right|{{dir|{{pagelang}}|left|right}}|{{{1|none}}}}};{{#ifeq: {{{1|none}}}|center|margin:0 auto;}} background-color:#f8f9fa; border:1px solid #a2a9b1" cellpadding="5" cellspacing="0"><tr> | ||
<td>[[Image:Community_Noun_project_2280.svg|{{#if:{{{user|}}}|30px|20px}}]]</td> | <td>[[Image:Community_Noun_project_2280.svg|{{#if:{{{user|}}}|30px|20px}}]]</td> | ||
− | <td>{{#if:{{{user|}}}|<span style="font-size:110%; font-weight:bold">}}{{ll|User hub| | + | <td>{{#if:{{{user|}}}|<span style="font-size:110%; font-weight:bold">}}{{ll|User hub| Users}}{{#if:{{{user|}}}|</span>|}}</td> |
<td style="border-{{dir|{{pagelang}}|right|left}}:1px solid #a2a9b1">[[File:Octicons-terminal.svg|{{#if:{{{admin|}}}|30px|20px}}]]</td> | <td style="border-{{dir|{{pagelang}}|right|left}}:1px solid #a2a9b1">[[File:Octicons-terminal.svg|{{#if:{{{admin|}}}|30px|20px}}]]</td> | ||
− | <td>{{#if:{{{admin|}}}|<span style="font-size:110%; font-weight:bold">|}}{{ll|Sysadmin hub| | + | <td>{{#if:{{{admin|}}}|<span style="font-size:110%; font-weight:bold">|}}{{ll|Sysadmin hub| System Administrators}}{{#if:{{{admin|}}}|</span>|}}</td> |
<td style="border-{{dir|{{pagelang}}|right|left}}:1px solid #a2a9b1">[[File:Source code project 1171.svg|{{#if:{{{dev|}}}|30px|20px}}]]</td> | <td style="border-{{dir|{{pagelang}}|right|left}}:1px solid #a2a9b1">[[File:Source code project 1171.svg|{{#if:{{{dev|}}}|30px|20px}}]]</td> | ||
− | <td>{{#if:{{{dev|}}}|<span style="font-size:110%; font-weight:bold">|}}{{ll|Developer hub| | + | <td>{{#if:{{{dev|}}}|<span style="font-size:110%; font-weight:bold">|}}{{ll|Developer hub| Developers}}{{#if:{{{dev|}}}|</span>|}}</td> |
<td style="border-{{dir|{{pagelang}}|right|left}}:1px solid #a2a9b1">[[File:OOjs UI icon language-ltr.svg|{{#if:{{{trans|}}}|30px|20px}}]]</td> | <td style="border-{{dir|{{pagelang}}|right|left}}:1px solid #a2a9b1">[[File:OOjs UI icon language-ltr.svg|{{#if:{{{trans|}}}|30px|20px}}]]</td> | ||
− | <td>{{#if:{{{trans|}}}|<span style="font-size:110%; font-weight:bold">|}}{{ll|Translator hub| | + | <td>{{#if:{{{trans|}}}|<span style="font-size:110%; font-weight:bold">|}}{{ll|Translator hub| Translators}}{{#if:{{{trans|}}}|</span>|}}</td> |
</tr></table> | </tr></table> | ||
| #default= | | #default= | ||
Line 19: | Line 19: | ||
− | ==Usage== | + | ==Usage== |
+ | |||
− | |||
The template can be centered or right aligned by passing in the alignment as its first parameter. | The template can be centered or right aligned by passing in the alignment as its first parameter. | ||
− | + | ||
If the page containing the template belongs to a specific area of documentation (i.e. user, administrator, developer or translator), an additional parameter can also be set which makes bold and enlarges the corresponding icon(s). | If the page containing the template belongs to a specific area of documentation (i.e. user, administrator, developer or translator), an additional parameter can also be set which makes bold and enlarges the corresponding icon(s). | ||
Line 36: | Line 36: | ||
− | ===Examples=== | + | ===Examples=== |
<table style="background-color:#f8f9fa; border:1px solid #a2a9b1" width="100%" cellpadding="5" cellspacing="0" border="1"> | <table style="background-color:#f8f9fa; border:1px solid #a2a9b1" width="100%" cellpadding="5" cellspacing="0" border="1"> |
Latest revision as of 14:34, 21 December 2019
![]() |
Users | ![]() |
System Administrators | ![]() |
Developers | ![]() |
Translators |

Usage
The template can be centered or right aligned by passing in the alignment as its first parameter.
If the page containing the template belongs to a specific area of documentation (i.e. user, administrator, developer or translator), an additional parameter can also be set which makes bold and enlarges the corresponding icon(s).
{{hubs | <center|right> | <dev|admin|user|trans> = true }}
Examples
{{hubs|center}} |
|
||||||||
{{hubs|right}} |
|
||||||||
{{hubs|user=true}} |
|
||||||||
{{hubs|admin=true|dev=true}} |
|
||||||||
{{hubs|right|dev=true}} |
|