Difference between revisions of "User:Djonni/Template sandbox"
m (Aesthetic test of plain Pantheon links) (Tags: Mobile edit, Mobile web edit) |
m (Documenting yesterday's changes to pantheon parameters.) |
||
Line 197: | Line 197: | ||
;gladiatorship | ;gladiatorship | ||
;storytelling | ;storytelling | ||
β | :''Unstable'' | + | :''Unstable'' If these parameters are given a numeric value (for example, {{para|might|1234}}), they will display a link to the pantheon position by calling {{tlc|Pantheon link|text{{=}}none|plain{{=}}yes|<var>pantheon</var>|<var>number</var>}}, like so: {{Pantheon link|text=none|plain=yes|might|1234}}. If provided with any non-numeric value, the value of the parameter will be displayed exactly as given. So, if {{para|might|text or templates}}, the cell will display <code>text or templates</code>. |
}}</noinclude> | }}</noinclude> |
Revision as of 06:42, 15 October 2019
Djonni/Template sandbox |
---|
π Documentation
Example, for editing and testing.
God Djonni/Template sandbox εΊθη the Great | |
---|---|
This is a subheader. | |
| |
Champion | Djonniboy |
Personality | Adjective |
Gender | Divine |
Domain | God of perfectly shaped spoons |
Motto | In Ζor a penny! β |
βοΈGuild | |
The Forsakens Lament | |
Guild position | Avatar of Lust; Daily Bugler |
Guild rank | Patriarch |
πPantheons | |
Gratitude | eth |
Might | pith |
Templehood | 1.5st |
Gladiatorship | 1/3th |
Storytelling | test |
{{User:Djonni/Template sandbox| <!--|highlighthex = FFDD88--> |title = God <!--|name = Djonni--> |postnomial = the Great |subheader=This is a subheader. |temple = 23rd of January, 2015 |animalist = 2nd of December, 2018 |ark = 2nd of March, 2019 |avatar = Moloch_the_god.gif |hero = Djonniboy |herolabel = Champion |gender = Divine |guild = The Forsakens Lament |position = Avatar of Lust; Daily Bugler |rank = Patriarch |personality = Adjective |domain = God of perfectly shaped spoons |motto = In Ζor a penny! [http://godvillegame.com/forums/show_topic/2481 β] |gratitude = e |might = pi |templehood = 1.5 |gladiatorship = 1/3 |storytelling = test }}
Brief documentation of parameters.
This template is NOT stable. You're welcome to use and test it, but be aware, I may make changes without warning. If I do see anyone using it, I'll drop you a message on your talk page if something changes.
This is a list of pages (therefore users) that link to this page:
- Talk:Main Page β (β links)
- Template talk:Hero β (β links)
- User talk:FeRDNYC β (β links)
- User talk:Djonni β (β links)
- User:Some atheist (transclusion) β (β links)
- User:Arkhen Thean (transclusion) β (β links)
- User:Jaguar of Awesome (transclusion) β (β links)
- User:Emptysora (transclusion) β (β links)
- User:Elantien/Sandbox (transclusion) β (β links)
- User talk:Arkhen Thean β (β links)
- User:Mykus Aditus (transclusion) β (β links)
I have (hopefully) incorporated all variables used in {{Usergod}}
, so that this can be a drop-in replacement. (TODO: examine the Usergod code to ensure I haven't missed any undocumented variables)
- title
- A title to place before the God's name. In my user page,
|title=God
- name
- The name of the God. This is only required if the current
{{PAGENAME}}
is not the God's name. So, should basically never be needed, I expect.
- All parameters of the {{medal}} template
- These will correctly render as medals in {{God}}. Considering also creating an Achievements section below Pantheons which would show these somehow.
- postnomial
- A title for after the God's name. In my user page,
|postnomial=the Great
- subheader
- As per {{infobox}}
- highlighthex
- This is a tricky/clever one which I know, with respect, that FeRDNYC will hate. Don't worry, I intend to implement a fuller set of colour and styling parameters! But honestly, take a look at the code. Clever, right? Single variable, and BAM, coherent colour scheme.
- This parameter takes a six-character hex code for the highlight colour (headers, row labels), without a # in front, in RRGGBB format. For example,
|highlighthex=FFBB88
- headercolor
- datacolor
- Unstable These parameters can be used instead of
|highlighthex=RRGGBB
to specify a color for the headers and labels (with|headercolor=
) and the data cells (with|datacolor=
). These parameters will cause|highlighthex=
to be ignored in the relevant places. - Any valid HTML color value can be set here. Hex values (including the leading #:
#RRGGBB
), color names (purple
), etc.
- bordercolor
- If you must, you can.
- subheaderstyle
- imagestyle
- captionstyle
- abovestyle
- belowstyle
- navstyle
- headerstyle
- labelstyle
- datastyle
- Know CSS? Want to place your own custom CSS into any of these fields? Go ahead! The contents of these parameters will be passed directly to
{{Infobox}}
after the default styles, meaning that the values you supply here will overwrite and replace what comes before them. This will allow you to create your own interesting, spectaular, creative and horrible styles for your Usergod infobox. With great power comes greatly ugly infoboxes. - Below is the way the style parameters here are placed, for clarity:
| subheaderstyle = background: {{{captioncolor|{{{highlighthex|#F2F3F4}}}33}}}; border-bottom: 2px solid {{{bordercolor|#f8f9fa}}}; {{{subheaderstyle|}}} | imagestyle = padding: 0; background: {{{imagecolor|{{{highlighthex|#F2F3F4}}}33}}}; border-bottom: 2px solid {{{bordercolor|#f8f9fa}}}; {{{imagestyle|}}} | captionstyle = background: {{{captioncolor|{{{highlighthex|#F2F3F4}}}33}}}; border-bottom: 2px solid {{{bordercolor|#f8f9fa}}}; {{{captionstyle|}}} | abovestyle = background: {{{headercolor|{{{highlighthex|#F2F3F4}}}}}}; border-bottom: 2px solid {{{bordercolor|#f8f9fa}}}; {{{abovestyle|}}} | belowstyle = background: {{{headercolor|{{{highlighthex|#F2F3F4}}}}}}; border-bottom: 2px solid {{{bordercolor|#f8f9fa}}}; {{{belowstyle|}}} | navstyle = background: {{{headercolor|{{{highlighthex|#F2F3F4}}}}}}; padding-right:0.5em; {{{navstyle|}}} | headerstyle = background: {{{headercolor|{{{highlighthex|#F2F3F4}}}}}}; border-bottom: 2px solid {{{bordercolor|#f8f9fa}}}; {{{headerstyle|}}} | labelstyle = background: {{{headercolor|{{{highlighthex|#F2F3F4}}}}}}; vertical-align: top; min-width: 8em; border-bottom: 2px solid {{{bordercolor|#f8f9fa}}}; {{{labelstyle|}}} | datastyle = background: {{{datacolor|{{{highlighthex|#F2F3F4}}}33}}}; vertical-align: top; min-width: 12em; border-bottom: 2px solid {{{bordercolor|#f8f9fa}}}; {{{datastyle|}}}
- avatar
- As {{Usergod}},
except that for now this uses a placeholder image. I've since taken a took, and there are users of Usergod who haven't put avatar images in, so this will be changed.
- caption
- As per {{infobox}}
- hero
- heroine
- personality
- gender
- motto
- town
- guild
- All as per existing {{Usergod}}
- herolabel
- If supplied, the contents of this parameter will replace either
Hero:
orHeroine:
in the label column. So, for example,|herolabel=Champion
would result inChampion: Djonniboy
- domain
- The God's "domain", their area of influence in the world.
Guild parameters
- position
- A position in a guild's organisation.
- rank
- Guild rank
Pantheon parameters
- gratitude
- might
- templehood
- gladiatorship
- storytelling
- Unstable If these parameters are given a numeric value (for example,
|might=1234
), they will display a link to the pantheon position by calling{{Pantheon link|text=none|plain=yes|pantheon|number}}
, like so: 1234th . If provided with any non-numeric value, the value of the parameter will be displayed exactly as given. So, if|might=text or templates
, the cell will displaytext or templates
.