Template:Role Header: Difference between revisions

From Unitystation
(adding more variables + example usage)
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="background-color:#282C34; margin: .4em .8em .8em .4em; border-radius:.4em; padding:.4em;"><div style="color: white; margin-bottom:.2em; padding: .4em; border-radius:.2em; background-color:{{{departmentcolor|#41596D}}}; padding:.2em;"><center>'''{{{department}}} Department'''</center></div><div style="padding: .15em 0 .15em; overflow: auto; align-items: stretch; display: flex;"><div style="padding:.2em; border-radius: .4em; border: solid .2em; border-color:#41596D; background-color:#C7D6DD; width: 9em; height:inherit; float:left; margin-right: .5em;"><center>'''{{{Role}}}'''<hr>[[File:{{{Image|}}}|64px]]</center></div><div style="padding:.2em; border-radius: .4em; border: solid .2em; border-color:#41596D; background-color:#C7D6DD; width: 100%; height:inherit; float:left;text-align:left; margin-right: .5em;">
<div style="background-color:#282C34; margin: .4em .8em .8em .4em; border-radius:.4em; padding:.4em;"><div style="color: white; margin-bottom:.2em; padding: .4em; border-radius:.2em; background-color:{{{departmentcolor|#41596D}}}; padding:.2em;"><center>'''{{{department}}} Department'''</center></div><div style="padding: .15em 0 .15em; overflow: auto; align-items: stretch; display: flex;"><div style="padding:.2em; border-radius: .4em; border: solid .2em; border-color:#41596D; background-color:#C7D6DD; width: 9em; height:inherit; float:left; margin-right: .5em;"><center>'''{{{Role}}}'''<hr>[[File:{{{Image|}}}|96px]]</center></div><div style="padding:.2em; border-radius: .4em; border: solid .2em; border-color:#41596D; background-color:#C7D6DD; width: 100%; height:inherit; float:left;text-align:left; margin-right: .5em;">
'''Superiors:''' {{{superior|Not defined}}}
'''Superiors:''' {{{superior|Not defined}}}
<br>'''Difficulty:''' {{{difficulty|Not defined}}}
<br>'''Difficulty:''' {{{difficulty|Not defined}}}
<br>'''Completion:''' {{{completion|0%}}}
<br>'''Guides:''' {{{guides|Not defined}}}
<br>'''Guides:''' {{{guides|Not defined}}}
<br>'''Access:''' {{{access|Not defined}}}
<br>'''Access:''' {{{access|Not defined}}}
Line 10: Line 11:
<pre><nowiki>{{Role Header
<pre><nowiki>{{Role Header
  |role = Captain
  |role = Captain
|dificulty = High
| completion = 60%
  |departmentcolor = #41596D
  |departmentcolor = #41596D
  |department = Command
  |department = Command

Latest revision as of 20:17, 22 February 2023

{{{department}}} Department
{{{Role}}}
[[File:|96px]]

Superiors: Not defined
Difficulty: Not defined
Completion: 0%
Guides: Not defined
Access: Not defined
Colloquial Names: Not defined

Example Usage

{{Role Header
 |role = Captain
 |dificulty = High
 | completion = 60%
 |departmentcolor = #41596D
 |department = Command
 |superior = [[Central Command]]
 |guides = [[Guide to Faxes]]
 |access = [[Bridge]]
 |alt names = 'Cap'
}}