Difference between revisions of "User:Djonni/Template sandbox"

From GodWiki
Jump to: navigation, search
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:
:''Unstable'' Currently, these parameters take just the position number. This may (probably will) be changed somehow.
:''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>.

Revision as of 06:42, 15 October 2019

Deities of Godville
Djonni/Template sandbox 
πŸ“š Documentation

Example, for editing and testing.

Deities of Godville
God Djonni/Template sandbox εΊ™θˆŸη•œ  the Great
This is a subheader.
This is a caption.
Champion Djonniboy
Personality Adjective
Gender Divine
Domain God of perfectly shaped spoons
Motto In Ζ’or a penny! βœ”
The Forsakens Lament
Guild position Avatar of Lust; Daily Bugler
Guild rank Patriarch
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:

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)

A title to place before the God's name. In my user page, |title=God
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.
A title for after the God's name. In my user page, |postnomial=the Great
As per {{infobox}}
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
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.
If you must, you can.
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|}}}

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.
As per {{infobox}}
All as per existing {{Usergod}}
If supplied, the contents of this parameter will replace either Hero: or Heroine: in the label column. So, for example, |herolabel=Champion would result in Champion:   Djonniboy
The God's "domain", their area of influence in the world.

Guild parameters

A position in a guild's organisation.
Guild rank

Pantheon parameters

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 display text or templates.